joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402940
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
mov dword [ebp - 8], 0
push edi
add esi, dword [0x45f8e0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4029a9
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b32c
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4029cb
mov byte ds:[edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x4029ec
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x4029ec
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x4029e6
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x4029ec
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.0041b32c
mov esp, ebp
pop ebp
ret
Function at 0x407e00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push ebx
push esi
push edi
push eax
call fcn.00403b60
add esp, 4
mov ebx, eax
mov dword [ebp - 0x20], ebx
push ebx
call fcn.0041b33f
add esp, 4
mov edi, eax
push ebx
push 0
push edi
call fcn.0041f350
add esp, 0xc
lea eax, [ebp + 0xc]
mov edx, ebx
push eax
push ecx
push dword [ebp + 8]
mov ecx, edi
push 0xffffffffffffffff
call fcn.00403b20
add esp, 0x10
push 0
push 0x40000000
push 4
push 0
push 0
push 0x40000000
push 0x45e378
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407ed7
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
test esi, esi
je 0x407ed0
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push ecx
push 0
push eax
push edi
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0xffffffff
push ebx
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], esi
mov byte [edi + eax - 1], 0xa
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
jmp 0x407ed1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0041b33a
mov ecx, dword [ebp - 8]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041b32c
mov esp, ebp
pop ebp
ret
Function at 0x407f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x45e7c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x45e596], 0
jne 0x407fb8
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.0041f350
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [eax]
test eax, eax
je 0x4080a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4080a9
lea eax, [ebp - 0x214]
push 0x5c
push eax
call fcn.0041ed20
add esp, 8
test eax, eax
je 0x407f91
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x214]
push eax
push str._sSteamLiteError.log
push 0xffffffffffffffff
push 0x104
push 0x45f1f8
call fcn.00401640
add esp, 0x14
mov byte [0x45e596], 1
push 0x45e7c0
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00403b60
add esp, 4
mov ebx, eax
mov dword [ebp - 0x22c], ebx
push ebx
call fcn.0041b33f
add esp, 4
mov edi, eax
push ebx
push 0
push edi
call fcn.0041f350
add esp, 0xc
lea eax, [ebp + 0xc]
mov edx, ebx
push eax
push ecx
push dword [ebp + 8]
mov ecx, edi
push 0xffffffffffffffff
call fcn.00403b20
add esp, 0x10
push 0x45e7c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0x40000000
push 4
push 0
push 0
push 0x40000000
push 0x45f1f8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4080d0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
test esi, esi
je 0x4080c9
mov eax, dword [ebp - 0x22c]
lea ecx, [ebp - 0x228]
push ecx
push 0
push eax
push edi
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0xffffffff
push ebx
movlpd qword [ebp - 0x228], xmm0
mov dword [ebp - 0x21c], 0xffffffff
mov dword [ebp - 0x218], esi
mov byte [edi + eax - 1], 0xa
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
jmp 0x4080ca
push 0x45e7c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041b32c
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x45e7c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call fcn.0041b33a
mov ecx, dword [ebp - 8]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041b32c
mov esp, ebp
pop ebp
ret
Function at 0x408100
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x20006
push 0
mov esi, ecx
mov dword [ebp - 8], 0
push esi
push 0x80000001
mov edi, edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40816a
lea eax, ds:[ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40818b
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041b32c
mov esp, ebp
pop ebp
ret

Function at 0x4081a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x45f6a4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20206
push 0
push str.SoftwareValveSteam
push 0x80000002
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x408213
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push str.SoftwareValveSteam
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40823a
push esi
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push str.SteamPID
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword ds:[ebp - 4]
xor ecx, ebp
call fcn.0041b32c
mov esp, ebp
pop ebp
ret

Function at 0x408260
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0x20006
push 0
mov esi, ecx
mov dword [ebp - 0xc], 0
push esi
push 0x80000001
mov ebx, edx
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop
test eax, eax
je 0x4082ca
lea eax, ds:[ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408308
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4082d0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword ds:[ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b32c
mov esp, ebp
pop ebp
ret
Function at 0x408320
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0x20206
push 0
push str.SoftwareValveSteam
push 0x80000002
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [eax]
test eax, eax
je 0x40838d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push str.SoftwareValveSteam
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4083c9
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408392
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.InstallPath
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041b32c
mov esp, ebp
pop ebp
ret

Function at 0x4083e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp byte [edi + 0x208], 0
jne 0x4083f9
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
push esi
push 0x100
call fcn.0041b33f
push 0x100
mov esi, eax
push 0
push esi
call fcn.0041f350
add esp, 0x10
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 0x80
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 4], eax
test eax, eax
jne 0x40844c
push esi
call fcn.0041b33a
add esp, 4
xor eax, eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8
push ebx
push eax
call fcn.0041b33f
push dword ds:[ebp - 4]
mov ebx, eax
push 0
push ebx
call fcn.0041f350
add esp, 0x10
push 0
push 0
push dword [ebp - 4]
push ebx
push 0xffffffffffffffff
push edi
push 0x80
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00428feb
push ebx
push 0x100
push esi
push 0
push dword [ebp + 0xc]
mov dword [eax], 0
push str.Steam
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4084f3
nop dword [eax]
call fcn.00428feb
cmp dword [eax], 0
jne 0x4084f3
test edi, edi
je 0x4084f3
cmp edi, 0xff
je 0x4084f3
cmp edi, 0xfe
je 0x4084f3
push ebx
call fcn.0041b33a
add esp, 4
mov eax, esi
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8
push 0x100
push 0
push esi
call fcn.00440bb0
push esi
call fcn.0041b33a
push ebx
call fcn.0041b33a
add esp, 0x14
xor eax, eax
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x408f40
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x1fe
lea eax, [ebp - 0x208]
mov dword [ebp - 0x20c], 0xff
push 0
push eax
mov esi, edx
call fcn.0041f350
add esp, 0xc
mov dword [ebp - 0x210], 0
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x409085
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409085
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x208]
push eax
push 0
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x409030
lea eax, [ebp - 0x208]
push eax
push esi
push str._s_s
push 0xffffffffffffffff
push 0xff
push 0x45eff8
call fcn.00401640
add esp, 0x18
cmp eax, 0xffffffff
jne 0x409021
push str._RegDelnodeRecurse__Failed_to_build_reg_path__r_n
call fcn.00407f00
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b32c
mov esp, ebp
pop ebp
ret
mov edx, 0x45eff8
mov ecx, 0x80000001
call fcn.00408f40
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x44a9fc
push 0xffffffffffffffff
push 0xff
push 0x45eff8
call fcn.00401640
add esp, 0x14
cmp eax, 0xffffffff
jne 0x409077
push str._RegDelnodeRecurse__Failed_to_build_reg_path___2__r_n
call fcn.00407f00
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b32c
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, 0x80000001
call fcn.00408f40
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041b32c
mov esp, ebp
pop ebp
ret
Function at 0x414c60
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov cx, word [0x45f40c]
push esi
mov si, dx
test cx, cx
jne 0x414ce5
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x230], ax
mov dword [ebp - 0x21e], eax
lea eax, [ebp - 0x230]
push eax
push 0xfffffffffffffff5
movups xmmword [ebp - 0x22e], xmm0
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x414cd7
push str.GetConsoleScreenBufferInfo__FALSE_r_n
nop dword [eax]
call fcn.00407f00
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b32c
mov esp, ebp
pop ebp
ret
mov cx, word [ebp - 0x22a]
mov word [0x45f40c], cx
xor eax, eax
cmp byte [ebp + 8], 0
mov word [ebp - 0x234], ax
lea eax, [ecx + esi]
cmove si, ax
push 0xfffffffffffffff5
mov word [ebp - 0x232], si
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp - 0x234]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x414db3
push 0x104
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0041f350
movsx eax, word [0x45f40c]
add esp, 0xc
shr esi, 0x10
push eax
movsx eax, si
push eax
push 0
push str.x:_d_ny:_d_nOrgY:_d
push 0xffffffffffffffff
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.00403be0
add esp, 0x1c
lea eax, [ebp - 0x218]
push 0x104
push 0
push eax
call fcn.0041f350
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetConsoleCursorPosition_Failed__Error:__lu_r_n_r_n_s_r_n
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00403be0
lea eax, [ebp - 0x218]
push eax
push 0x4551e0
call fcn.00407f00
add esp, 0x20
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041b32c
mov esp, ebp
pop ebp
ret

Function at 0x414ec0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
xorps xmm0, xmm0
push esi
push 0xfffffffffffffff5
mov word [ebp - 0x24], ax
movups xmmword [ebp - 0x22], xmm0
mov dword [ebp - 0x12], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x414f49
lea eax, ds:[ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x414f49
movsx eax, word [ebp - 0x24]
push edi
movsx edi, word [ebp - 0x22]
imul edi, eax
lea eax, [ebp - 8]
push eax
push 0
push edi
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
test eax, eax
je 0x414f48
lea eax, [ebp - 0xc]
push eax
push 0
push edi
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
je 0x414f48
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041b32c
mov esp, ebp
pop ebp
ret
Function at 0x41bf93
Capabilities:
Parse pe header

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

Function at 0x41d930
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x41d951
jl 0x41d948
test edi, edi
jne 0x41d951
xor eax, eax
xor edx, edx
jmp 0x41da12
cmp dword [ebx + 0x38], 0
je 0x41d966
push eax
push edi
push dword [ebp + 8]
call fcn.0041da20
jmp 0x41da12
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x41d9ad
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x41d9ad
cmp eax, edi
jb 0x41d987
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0041edd0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x41d9b3
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x41da07
mov ecx, ebx
call fcn.0041d071
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x41d9f2
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0042d950
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x41da07
jmp 0x41d9c5
test edx, edx
je 0x41da07
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0042d950
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x434a21
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 0x434abe
push ebx
push esi
call fcn.004349ea
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.004333b2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x434a6b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x434abd
push edi
push eax
call fcn.00430030
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x434a8b
call fcn.0042ffe0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x434abc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004333b2
add esp, 0x20
test eax, eax
jne 0x434aaa
push edi
call fcn.0042ffe0
jmp 0x434ab2
push ebx
call fcn.0042ffe0
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 0x43783b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042fc61
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 0x4378aa
cmp esi, dword [ebp - 4]
je 0x4378a5
cmp dword [ebp + 0xc], 0
je 0x4378a5
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x437882
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00437378
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4378ac
xor eax, eax
inc eax
jmp 0x4378ac
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x437917
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45c040]
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.0042fc61
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.0042fc61
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 0x43798e
cmp word [ecx], dx
je 0x43798e
mov eax, dword [0x4470d4]
push edi
dec eax
push eax
push 0x446fc0
call fcn.004378b0
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x437a01
cmp word [eax], dx
je 0x437a01
mov eax, dword [edi]
test eax, eax
je 0x4379b2
cmp word [eax], dx
je 0x4379b2
lea eax, [ebp - 0x10]
push eax
call fcn.0043727e
jmp 0x4379bb
lea eax, [ebp - 0x10]
push eax
call fcn.00437319
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x437a2b
mov eax, dword [0x446fbc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x446cb0
call fcn.004378b0
add esp, 0xc
test al, al
je 0x437a2b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4379f6
cmp word [eax], di
je 0x4379f6
lea eax, [ebp - 0x10]
push eax
call fcn.0043727e
pop ecx
jmp 0x437a2d
lea eax, [ebp - 0x10]
push eax
call fcn.00437319
jmp 0x4379f3
mov eax, dword [edi]
test eax, eax
je 0x437a18
cmp word [eax], dx
je 0x437a18
lea eax, [ebp - 0x10]
push eax
call fcn.00437233
pop ecx
jmp 0x437a2b
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 0x437af6
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00437735
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x437af6
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x437af6
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x437af6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x437a83
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00431dd7
test ebx, ebx
je 0x437af1
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00431dd7
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x437af6
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 0x437af6
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0043e566
add esp, 0x10
xor eax, eax
inc eax
jmp 0x437af8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b32c
leave
ret