joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009024
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
push 1
push 0
push 0
call dword [0x100255a4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10009103
lea eax, [ebp - 0x54]
mov dword [eax], 0x1271dfa9
mov dword [eax + 4], 0x1270df88
mov dword [eax + 8], 0x1266df89
mov dword [eax + 0xc], 0x124adf99
mov dword [eax + 0x10], 0x1270df93
mov dword [eax + 0x14], 0x1262df89
mov dword [eax + 0x18], 0x126fdf91
mov dword [eax + 0x1c], 0x1271df98
mov dword [eax + 0x20], 0x1203dffd
mov ecx, 9
xor dword [eax], 0x1203dffd
add eax, 4
dec ecx
jne 0x1000909e
push 0x14
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 4]
call dword [0x100255ac]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10009103
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0xc]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 8]
call dword [0x100255bc]
test eax, eax
jne 0x100090e4
jmp 0x10009103
cmp dword [ebp - 0x2c], 1
jne 0x100090ff
push 0
push 0
push dword [ebp - 8]
call dword [0x100255b4]
test eax, eax
jne 0x100090fd
jmp 0x10009103
jmp 0x100090c2
jmp 0x10009103
cmp dword [ebp - 8], 0
je 0x10009112
push dword [ebp - 8]
call dword [0x100255c8]
cmp dword [ebp - 4], 0
je 0x10009121
push dword [ebp - 4]
call dword [0x100255c8]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x10016d1c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
lea esi, str.c0aZ1h_
push dword [esi - 4]
call fcn.100068b8
mov edi, eax
test edi, edi
je 0x10016dcd
push esi
push edi
mov ecx, dword [esi - 4]
lodsb al, byte [esi]
xor al, 0x30
stosb byte es:[edi], al
dec ecx
test ecx, ecx
jne 0x10016d4c
pop edi
pop esi
mov esi, dword [esi - 4]
push dword [ebp + 0xc]
pop dword [ebp - 8]
lea eax, [esi*2]
push eax
push 8
push ebx
call dword [ebp - 8]
mov esi, eax
test esi, esi
je 0x10016dc7
push esi
push edi
call fcn.10016fa0
add esp, 8
lea esi, [esi + 0x83]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10016ddc
mov dword [0x1002515c], eax
lea esi, [esi + 0x41]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10016ddc
mov dword [0x10025154], eax
lea esi, [esi + 0xd7]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10016ddc
mov dword [0x10025158], eax
mov dword [ebp - 4], 1
push edi
call fcn.100068d4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10016fa0
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x10016fc4
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10016fac
add dl, dl
jne 0x10016fcf
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10017020
xor eax, eax
add dl, dl
jne 0x10016fdc
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x100170bd
add dl, dl
jne 0x10016feb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10016ff6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10017001
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1001700c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10017016
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10016fbb
mov eax, 1
add dl, dl
jne 0x1001702e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10017039
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10017025
sub eax, ebx
mov ebx, 1
jne 0x1001706c
mov ecx, 1
add dl, dl
jne 0x10017052
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1001705d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10017049
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10016fbb
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10017083
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1001708e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1001707a
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10016fbb
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x100170de
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10016fbb
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret
Function at 0x1001932c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, 0xfffefdfc
mov ecx, 0x40
mov ebx, dword [ebp + 0x10]
mov dword [ebx + ecx*4 - 4], eax
sub eax, 0x4040404
dec ecx
jne 0x1001933f
mov edi, dword [ebp + 0xc]
mov esi, 0x40
xor ebx, ebx
push ebp
mov ebp, dword [ebp + 0x10]
mov eax, ecx
xor edx, edx
div esi
mov al, cl
mov dl, byte [edi + edx]
add dl, byte [ebp + eax]
add dl, bl
mov bl, byte [ebp + edx]
mov dl, byte [ebp + ebx]
xchg byte [ebp + eax], dl
mov byte [ebp + ebx], dl
inc ecx
cmp ecx, 0x300
jne 0x10019359
pop ebp
xor ecx, ecx
mov edi, dword [ebp + 8]
mov esi, 0x20
push ebp
mov ebp, dword [ebp + 0x10]
mov eax, ecx
xor edx, edx
div esi
mov al, cl
mov dl, byte [edi + edx]
add dl, byte [ebp + eax]
add dl, bl
mov bl, byte [ebp + edx]
mov dl, byte [ebp + ebx]
xchg byte [ebp + eax], dl
mov byte [ebp + ebx], dl
inc ecx
cmp ecx, 0x300
jne 0x10019392
pop ebp
xor ecx, ecx
mov edi, dword [ebp + 0xc]
mov esi, 0x40
push ebp
mov ebp, dword [ebp + 0x10]
mov eax, ecx
xor edx, edx
div esi
mov al, cl
mov dl, byte [edi + edx]
add dl, byte [ebp + eax]
add dl, bl
mov bl, byte [ebp + edx]
mov dl, byte [ebp + ebx]
xchg byte [ebp + eax], dl
mov byte [ebp + ebx], dl
inc ecx
cmp ecx, 0x300
jne 0x100193cb
pop ebp
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x10019400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor eax, eax
mov ebx, dword [ebp + 0x14]
xor ecx, ecx
xor edx, edx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test esi, esi
je 0x1001944c
push ebp
mov ebp, dword [ebp + 0x10]
mov dl, byte [ebp + ecx]
add dl, bl
mov bl, byte [ebp + edx]
mov dl, byte [ebp + ebx]
mov dl, byte [ebp + edx]
inc dl
mov al, byte [ebp + edx]
xor byte [edi], al
mov dl, byte [ebp + ebx]
xchg byte [ebp + ecx], dl
mov byte [ebp + ebx], dl
inc cl
inc edi
dec esi
test esi, esi
jne 0x1001941d
pop ebp
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x10019454
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, 6
lodsd eax, dword [esi]
bswap eax
ror eax, 0xd
mov edx, eax
not edx
lodsd eax, dword [esi]
rol eax, 0xb
bswap eax
xor eax, edx
stosd dword es:[edi], eax
lodsd eax, dword [esi]
rol eax, 9
bswap eax
mov edx, eax
not edx
stosd dword es:[edi], eax
lodsd eax, dword [esi]
rol eax, 7
bswap eax
xor eax, edx
mov edx, eax
not edx
stosd dword es:[edi], eax
rol eax, 5
xor eax, edx
stosd dword es:[edi], eax
lea esi, [edi - 0x10]
dec ebx
test ebx, ebx
jne 0x10019465
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x47d1c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4a000]
push edi
jmp 0x47d1da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47d1e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d1d0
mov eax, 1
add ebx, ebx
jne 0x47d1f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47d204
jne 0x47d223
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d223
dec eax
add ebx, ebx
jne 0x47d210
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x47d1e8
add ebx, ebx
jne 0x47d21f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47d275
xor ecx, ecx
sub eax, 3
jb 0x47d23b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47d2aa
sar eax, 1
mov ebp, eax
jmp 0x47d246
add ebx, ebx
jne 0x47d246
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d214
inc ecx
add ebx, ebx
jne 0x47d254
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d214
add ebx, ebx
jne 0x47d261
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47d256
jne 0x47d272
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47d256
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47d294
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47d286
jmp 0x47d1d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47d294
add edi, ecx
jmp 0x47d1d6
pop esi
mov edi, esi
mov ecx, 0x32cb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47d2b2
cmp byte [edi], 0xe
jne 0x47d2b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x47d2b7
lea edi, [esi + 0x7a000]
mov eax, dword [edi]
or eax, eax
je 0x47d32f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x81aec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x81bb4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47d2e4
mov ecx, edi
jns 0x47d313
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x81bb8]
or eax, eax
je 0x47d329
mov dword [ebx], eax
add ebx, 4
jmp 0x47d301
call dword [esi + 0x81bc8]
mov ebp, dword [esi + 0x81bbc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47d363
sub esp, 0xffffff80
jmp 0x43f47b
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x435320
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2a000]
push edi
or ebp, 0xffffffff
jmp 0x435342
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x435349
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x435338
mov eax, 1
add ebx, ebx
jne 0x43535b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x435350
jne 0x43536c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x435350
xor ecx, ecx
sub eax, 3
jb 0x435380
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4353f2
mov ebp, eax
add ebx, ebx
jne 0x43538b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x435398
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4353bc
inc ecx
add ebx, ebx
jne 0x4353a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43539d
jne 0x4353b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43539d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4353dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4353cd
jmp 0x43533e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4353dc
add edi, ecx
jmp 0x43533e
pop esi
mov edi, esi
mov ecx, 0x84f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4353fa
cmp byte [edi], 6
jne 0x4353fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4353ff
lea edi, [esi + 0x33000]
mov eax, dword [edi]
or eax, eax
je 0x43546e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x36238]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x362ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43542c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x362f0]
or eax, eax
je 0x435468
mov dword [ebx], eax
add ebx, 4
jmp 0x435449
call dword [esi + 0x362f4]
popal
jmp 0x416f64
Function at 0x42a985
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42a9c4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42a9c4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42a9c4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42a9c4
cmp dword [ecx + 0x74], 0xe
jbe 0x42a9c4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42f3af
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x4e61f4
push str.FlsAlloc
push 0x1f
call fcn.0042f19a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42f3e3
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e5668]
call esi
jmp 0x42f3e9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42f42d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x4e6218
push str.FlsGetValue
push 0x21
call fcn.0042f19a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42f464
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e5668]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42f46c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x4e622c
push str.FlsSetValue
push 0x22
call fcn.0042f19a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42f4a6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4e5668]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x42fad7
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042fa59
Function at 0x43110d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4311aa
push ebx
push esi
call fcn.004310d6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0043106a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x431157
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4311a9
push edi
push eax
call fcn.0042e0b6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x431177
call fcn.0042e07c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4311a8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043106a
add esp, 0x20
test eax, eax
jne 0x431196
push edi
call fcn.0042e07c
jmp 0x43119e
push ebx
call fcn.0042e07c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4311ad
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4311be
pop esi
ret
push ebx
push edi
push esi
call fcn.004310d6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042e0b6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4311e6
push ebx
push esi
push edi
call fcn.0043d170
add esp, 0xc
push 0
call fcn.0042e07c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x431940
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043145b

Function at 0x434a16
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042eb35
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x434a85
cmp esi, dword [ebp - 4]
je 0x434a80
cmp dword [ebp + 0xc], 0
je 0x434a80
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x434a5d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00434568
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x434a87
xor eax, eax
inc eax
jmp 0x434a87
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x434aec
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x59e414]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0042eb35
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0042eb35
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x434b63
cmp word [ecx], dx
je 0x434b63
mov eax, dword [0x4e74d4]
push edi
dec eax
push eax
push 0x4e73c0
call fcn.00434a8b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x434bd6
cmp word [eax], dx
je 0x434bd6
mov eax, dword [edi]
test eax, eax
je 0x434b87
cmp word [eax], dx
je 0x434b87
lea eax, [ebp - 0x10]
push eax
call fcn.0043446e
jmp 0x434b90
lea eax, [ebp - 0x10]
push eax
call fcn.00434509
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x434c00
mov eax, dword [0x4e73bc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4e70b0
call fcn.00434a8b
add esp, 0xc
test al, al
je 0x434c00
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x434bcb
cmp word [eax], di
je 0x434bcb
lea eax, [ebp - 0x10]
push eax
call fcn.0043446e
pop ecx
jmp 0x434c02
lea eax, [ebp - 0x10]
push eax
call fcn.00434509
jmp 0x434bc8
mov eax, dword [edi]
test eax, eax
je 0x434bed
cmp word [eax], dx
je 0x434bed
lea eax, [ebp - 0x10]
push eax
call fcn.00434423
pop ecx
jmp 0x434c00
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x434ccb
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00434910
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x434ccb
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x434ccb
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x434ccb
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x434c58
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042f5ac
test ebx, ebx
je 0x434cc6
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042f5ac
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x434ccb
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x434ccb
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004370ab
add esp, 0x10
xor eax, eax
inc eax
jmp 0x434ccd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042acb5
leave
ret
Function at 0x439fa3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x59fa48]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x439fe3
cmp byte [ebx], 0xa
jne 0x439fe3
or byte [edi + eax + 0x28], 4
jmp 0x439fe8
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x43a0e7
mov dl, byte [eax]
cmp dl, 0x1a
je 0x43a0ca
inc eax
cmp dl, 0xd
je 0x43a014
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x43a03a
cmp eax, ecx
jae 0x43a048
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x439ffc
jmp 0x43a0e7
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43a0c5
cmp dword [ebp - 0x10], 0
je 0x43a0c5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x59fa48]
test byte [eax + edi + 0x28], 0x48
je 0x43a09f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43a08a
mov byte [esi], dl
jmp 0x43a09b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x59fa48]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43a0e7
cmp byte [ebp - 1], 0xa
jne 0x43a0ae
cmp esi, ebx
jne 0x43a0ae
mov byte [esi], 0xa
jmp 0x43a0e6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00439da8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43a0e7
mov byte [esi], 0xd
jmp 0x43a0e6
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x59fa48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43a0e4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43a0e7
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret