joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push 0x43e19c
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40215a
mov dword [ebp - 8], 0x43e1b4
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00420700
add esp, 4
push eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402114
push 0x43e1e4
push 0x44d698
call fcn.004049e0
add esp, 8
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.0040ca20
push 0x43e1c4
push eax
call fcn.004049e0
add esp, 8
mov dword [ebp - 0x18], eax
push 0x4089b0
mov ecx, dword [ebp - 0x18]
call fcn.0040cbf0
nop
jmp 0x40214f
push 0x43e1f0
push 0x44d748
call fcn.004049e0
add esp, 8
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.0040ca20
mov dword [ebp - 0x24], eax
push 0x4089b0
mov ecx, dword [ebp - 0x24]
call fcn.0040cbf0
nop
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov esp, ebp
pop ebp
ret

Function at 0x402160
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0
push 0x43e208
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40219c
push 0x43e224
push 0x44d698
call fcn.004049e0
add esp, 8
mov dword [ebp - 4], eax
push 0x4089b0
mov ecx, dword [ebp - 4]
call fcn.0040cbf0
nop
jmp 0x4021d7
push 0x43e254
push 0x44d748
call fcn.004049e0
add esp, 8
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.0040ca20
mov dword [ebp - 0x10], eax
push 0x4089b0
mov ecx, dword [ebp - 0x10]
call fcn.0040cbf0
nop
mov esp, ebp
pop ebp
ret

Function at 0x4021e0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push str.NewDirectory
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40221a
push 0x43e290
push 0x44d698
call fcn.004049e0
add esp, 8
mov dword [ebp - 4], eax
push 0x4089b0
mov ecx, dword [ebp - 4]
call fcn.0040cbf0
nop
jmp 0x402255
push 0x43e2c0
push 0x44d748
call fcn.004049e0
add esp, 8
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.0040ca20
mov dword [ebp - 0x10], eax
push 0x4089b0
mov ecx, dword [ebp - 0x10]
call fcn.0040cbf0
nop
mov esp, ebp
pop ebp
ret
Function at 0x402260
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x44c080]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x4022dd
push 0x43e310
push 0x44d7f8
call fcn.00404d10
add esp, 8
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.00404d10
add esp, 8
push str.__GetCurrentDirectory_.
push eax
call fcn.00404d10
add esp, 8
mov dword [ebp - 0x214], eax
push 0x4089f0
mov ecx, dword [ebp - 0x214]
call fcn.0040cbf0
nop
jmp 0x40232a
push 0x43e33c
push 0x44d748
call fcn.004049e0
add esp, 8
mov dword [ebp - 0x21c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x218], eax
mov edx, dword [ebp - 0x218]
push edx
mov ecx, dword [ebp - 0x21c]
call fcn.0040ca20
mov dword [ebp - 0x220], eax
push 0x4089b0
mov ecx, dword [ebp - 0x220]
call fcn.0040cbf0
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b605
mov esp, ebp
pop ebp
ret

Function at 0x402340
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x43e364
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x40237a
push 0x43e37c
push 0x44d698
call fcn.004049e0
add esp, 8
mov dword [ebp - 4], eax
push 0x4089b0
mov ecx, dword [ebp - 4]
call fcn.0040cbf0
nop
jmp 0x4023b5
push 0x43e3b8
push 0x44d748
call fcn.004049e0
add esp, 8
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.0040ca20
mov dword [ebp - 0x10], eax
push 0x4089b0
mov ecx, dword [ebp - 0x10]
call fcn.0040cbf0
nop
mov esp, ebp
pop ebp
ret

Function at 0x4023c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x44c080]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x43e3e0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x402442
push 0x43e424
push 0x44d7f8
call fcn.00404d10
add esp, 8
lea ecx, [ebp - 0x204]
push ecx
push eax
call fcn.00404d10
add esp, 8
push str.__GetEnvironmentVariable_.
push eax
call fcn.00404d10
add esp, 8
mov dword [ebp - 0x20c], eax
push 0x4089f0
mov ecx, dword [ebp - 0x20c]
call fcn.0040cbf0
nop
jmp 0x40248f
push 0x43e45c
push 0x44d748
call fcn.004049e0
add esp, 8
mov dword [ebp - 0x214], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x210], eax
mov edx, dword [ebp - 0x210]
push edx
mov ecx, dword [ebp - 0x214]
call fcn.0040ca20
mov dword [ebp - 0x218], eax
push 0x4089b0
mov ecx, dword [ebp - 0x218]
call fcn.0040cbf0
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b605
mov esp, ebp
pop ebp
ret
Function at 0x4024a0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x43e484
push str.MY_VAR
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x4024df
push 0x43e4b0
push 0x44d698
call fcn.004049e0
add esp, 8
mov dword [ebp - 4], eax
push 0x4089b0
mov ecx, dword [ebp - 4]
call fcn.0040cbf0
nop
jmp 0x40251a
push 0x43e4fc
push 0x44d748
call fcn.004049e0
add esp, 8
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.0040ca20
mov dword [ebp - 0x10], eax
push 0x4089b0
mov ecx, dword [ebp - 0x10]
call fcn.0040cbf0
nop
mov esp, ebp
pop ebp
ret

Function at 0x4030a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x43eae4
push 0x44d698
call fcn.004049e0
add esp, 8
mov dword [ebp - 4], eax
push 0x4089b0
mov ecx, dword [ebp - 4]
call fcn.0040cbf0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4180b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x4180d0
jl 0x4180c7
cmp dword [ebp + 0xc], 0
ja 0x4180d0
xor eax, eax
xor edx, edx
jmp 0x418212
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x4180f2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00418220
jmp 0x418212
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
call fcn.0040f730
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x418162
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00408f00
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00415000
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00412d50
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.00414f20
nop
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x418203
mov ecx, dword [ebp - 8]
call fcn.004119d0
mov dword [ebp - 0x20], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x4181d2
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.0042242c
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x4181d0
xor eax, eax
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
sbb edx, eax
mov eax, ecx
jmp 0x418212
jmp 0x41817e
cmp dword [ebp - 4], 0
jbe 0x418203
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.0042242c
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4189b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4189d7
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4189da
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0041898c
pop esi
leave
ret 8
Function at 0x41c45e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41c49d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41c49d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41c49d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41c49d
cmp dword [ecx + 0x74], 0xe
jbe 0x41c49d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42ce0f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0041c570
mov eax, dword [0x44c080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0042b6ea
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42ce51
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42cfc8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041b620
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x44e0e0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0042e02e
mov ecx, dword [esi*4 + 0x44e0e0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x42cfc1
cmp eax, dword [edi + ecx + 0x24]
jne 0x42cfc1
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42cfc1
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042e02e
add esp, 0x14
cmp edx, esi
jl 0x42cfc1
jg 0x42cf1c
cmp eax, esi
jb 0x42cfc1
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x42cfc1
jl 0x42cf3e
cmp dword [ebp - 0x1008], eax
ja 0x42cfc1
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x42cf63
cmp ebx, esi
je 0x42cfa8
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x42cfa8
mov al, byte [ecx]
cmp al, 0xd
jne 0x42cf89
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42cf95
cmp byte [ecx + 1], 0xa
jne 0x42cf95
inc ecx
jmp 0x42cf95
movzx eax, al
movsx eax, byte [eax + 0x44c340]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42cf6f
cmp edx, ebx
jne 0x42cf6f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x42cfc6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041b605
leave
ret
Function at 0x42d415
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x42d42f
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x42d446
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x42d49e
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00433680
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x42d49e
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x42d49e
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x42d49e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x42d498
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x42d49a
xor bl, bl
mov al, bl
jmp 0x42d4a0
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x42d4ba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x44e0e0]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42d4fc
cmp byte [ebx], 0xa
jne 0x42d4fc
or byte [edi + eax + 0x28], 4
jmp 0x42d501
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42d604
mov cl, byte [eax]
cmp cl, 0x1a
je 0x42d5df
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x42d530
mov eax, dword [ebp - 8]
jmp 0x42d550
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x42d56c
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x42d54a
add eax, 2
mov cl, 0xa
jmp 0x42d54d
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x42d512
jmp 0x42d604
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 0x42d5da
cmp dword [ebp - 0x10], 0
je 0x42d5da
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x44e0e0]
test byte [eax + edi + 0x28], 0x48
je 0x42d5b9
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x42d5a9
mov byte [esi], 0xa
jmp 0x42d603
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x44e0e0]
mov byte [eax + edi + 0x2a], cl
jmp 0x42d603
cmp byte [ebp - 1], 0xa
jne 0x42d5c3
cmp esi, ebx
je 0x42d5a4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042e04c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42d604
mov byte [esi], 0xd
jmp 0x42d603
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x44e0e0]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x42d601
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x42d604
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42d60d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x44e0e0]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x42d651
push 0xa
pop esi
cmp word [ebx], si
jne 0x42d651
or byte [eax + edi + 0x28], 4
jmp 0x42d656
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x42d7c1
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x42d799
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x42d6a3
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x42d6cd
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x42d6ec
push 0xa
pop ebx
cmp word [edx], bx
jne 0x42d6ba
push ebx
add eax, 4
pop edx
jmp 0x42d6c2
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x42d668
jmp 0x42d7c1
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42d794
cmp dword [ebp - 0x14], 0
je 0x42d794
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x44e0e0]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x42d770
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x42d738
mov word [esi], ax
jmp 0x42d7be
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x44e0e0]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x44e0e0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x44e0e0]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x42d7be
cmp word [ebp - 4], ax
jne 0x42d77a
cmp esi, ebx
je 0x42d730
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042e04c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42d7c1
push 0xd
pop eax
jmp 0x42d730
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x44e0e0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x42d7bb
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x42d7c1
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x432a2f
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 0x432acc
push ebx
push esi
call fcn.004329f8
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.00431721
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x432a79
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x432acb
push edi
push eax
call fcn.0042e230
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x432a99
call fcn.00429dd0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x432aca
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00431721
add esp, 0x20
test eax, eax
jne 0x432ab8
push edi
call fcn.00429dd0
jmp 0x432ac0
push ebx
call fcn.00429dd0
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 0x432acf
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x432ae0
pop esi
ret
push ebx
push edi
push esi
call fcn.004329f8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042e230
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x432b08
push ebx
push esi
push edi
call fcn.0041c5d0
add esp, 0xc
push 0
call fcn.00429dd0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x43325f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00432d7b

Function at 0x435679
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00429bf8
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 0x4356e8
cmp esi, dword [ebp - 4]
je 0x4356e3
cmp dword [ebp + 0xc], 0
je 0x4356e3
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4356c0
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004351ce
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4356ea
xor eax, eax
inc eax
jmp 0x4356ea
xor eax, eax
pop edi
pop esi
leave
ret