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

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x44fbd8]
je 0x42ebdb
inc edi
cmp edi, 0x17
jb 0x42ebcc
cmp edi, 0x17
jae 0x42ed5b
push ebp
push 3
call fcn.00436a87
cmp eax, 1
pop ecx
je 0x42ed27
push 3
call fcn.00436a87
test eax, eax
pop ecx
jne 0x42ec0f
cmp dword [0x44f414], 1
je 0x42ed27
cmp ebx, 0xfc
je 0x42ed5a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x453518
push ebp
call fcn.004276e7
add esp, 0xc
test eax, eax
je 0x42ec45
push esi
push esi
push esi
push esi
push esi
call fcn.0042c6e8
add esp, 0x14
push 0x104
mov esi, 0x453531
push esi
push 0
mov byte [0x453635], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42ec89
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004276e7
add esp, 0xc
test eax, eax
je 0x42ec89
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042c6e8
add esp, 0x14
push esi
call fcn.00427080
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42ecce
push esi
call fcn.00427080
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45382c
push 0x441bd4
sub ecx, eax
push ecx
push eax
call fcn.00429115
add esp, 0x14
test eax, eax
je 0x42ecce
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042c6e8
add esp, 0x14
jmp 0x42ecd0
xor esi, esi
push 0x441bd0
push ebx
push ebp
call fcn.004277d3
add esp, 0xc
test eax, eax
je 0x42ecf0
push esi
push esi
push esi
push esi
push esi
call fcn.0042c6e8
add esp, 0x14
push dword [edi*8 + 0x44fbdc]
push ebx
push ebp
call fcn.004277d3
add esp, 0xc
test eax, eax
je 0x42ed12
push esi
push esi
push esi
push esi
push esi
call fcn.0042c6e8
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004368ca
add esp, 0xc
jmp 0x42ed5a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42ed5a
cmp ebp, 0xffffffff
je 0x42ed5a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44fbdc]
push dword [esi]
call fcn.00427080
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4368ca
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042d3a5
xor ebx, ebx
cmp dword [0x453be4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4369a0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x436a80
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x442d74
push edi
call esi
cmp eax, ebx
je 0x436a80
push eax
call fcn.0042d337
mov dword [esp], 0x442d64
push edi
mov dword [0x453be4], eax
call esi
push eax
call fcn.0042d337
mov dword [esp], 0x442d50
push edi
mov dword [0x453be8], eax
call esi
push eax
call fcn.0042d337
mov dword [0x453bec], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00427474
test eax, eax
pop ecx
pop ecx
je 0x43696e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042c6e8
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4369a0
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042d337
cmp eax, ebx
pop ecx
mov dword [0x453bf4], eax
je 0x4369a0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042d337
pop ecx
mov dword [0x453bf0], eax
mov eax, dword [0x453bf0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x436a25
cmp dword [0x453bf4], ecx
je 0x436a25
push eax
call fcn.0042d3ae
push dword [0x453bf4]
mov esi, eax
call fcn.0042d3ae
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x436a25
cmp edi, ebx
je 0x436a25
call esi
cmp eax, ebx
je 0x4369f2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4369f2
test byte [ebp - 0x18], 1
jne 0x436a25
lea eax, [ebp - 0x10]
push eax
call fcn.004274ab
test eax, eax
pop ecx
je 0x436a0d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042c6e8
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x436a1c
or dword [ebp + 0x10], 0x200000
jmp 0x436a60
or dword [ebp + 0x10], 0x40000
jmp 0x436a60
mov eax, dword [0x453be8]
cmp eax, dword [ebp - 8]
je 0x436a60
push eax
call fcn.0042d3ae
cmp eax, ebx
pop ecx
je 0x436a60
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x436a60
mov eax, dword [0x453bec]
cmp eax, dword [ebp - 8]
je 0x436a60
push eax
call fcn.0042d3ae
cmp eax, ebx
pop ecx
je 0x436a60
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x453be4]
call fcn.0042d3ae
cmp eax, ebx
pop ecx
je 0x436a80
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x436a82
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43ab4c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44f418]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0043aae1
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00426f30
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x43ab9b
cmp dword [ebp - 0x1c], 5
jb 0x43abb3
jmp 0x43abaf
cmp dword [ebp - 0x10], 1
jne 0x43abb3
cmp dword [ebp - 0x1c], 4
ja 0x43abaf
jne 0x43abb3
cmp dword [ebp - 0x18], 0
jbe 0x43abb3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x443618
call fcn.0043a9b5
test eax, eax
jge 0x43abd4
mov byte [0x453d44], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004256ab
add ebp, 0x78
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x26100d38
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x30874fb0
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4026c0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x402730
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401460
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x36d7bba
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x1a9b5211
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x46b8ed
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 0x46b90e
jl 0x46b905
test edi, edi
jne 0x46b90e
xor eax, eax
xor edx, edx
jmp 0x46b9cf
cmp dword [ebx + 0x38], 0
je 0x46b923
push eax
push edi
push dword [ebp + 8]
call fcn.00457024
jmp 0x46b9cf
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x46b96a
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x46b96a
cmp eax, edi
jb 0x46b944
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0046f950
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 0x46b970
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x46b9c4
mov ecx, ebx
call fcn.0046b258
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x46b9af
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00478e22
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 0x46b9c4
jmp 0x46b982
test edx, edx
je 0x46b9c4
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00478e22
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 0x46dfa3
Capabilities:
Parse pe header

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

Function at 0x4802b8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4932d8
push 0x4932d0
push str.FlsAlloc
push 0x1f
call fcn.00480180
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4802ec
push dword [ebp + 8]
mov ecx, esi
call dword [0x48e1bc]
call esi
jmp 0x4802f2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x480336
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4932e8
push 0x4932e0
push str.FlsGetValue
push 0x21
call fcn.00480180
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48036d
push dword [ebp + 8]
mov ecx, esi
call dword [0x48e1bc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x480375
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4932f0
push 0x4932e8
push str.FlsSetValue
push 0x22
call fcn.00480180
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4803af
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x48e1bc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x48292b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0046d400
mov eax, dword [0x49c040]
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.0047f1d6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x48296d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x482ac9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0048bf50
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x49ddd8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00483b01
mov ecx, dword [esi*4 + 0x49ddd8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x482ac2
cmp eax, dword [ecx + edi + 0x24]
jne 0x482ac2
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x482ac2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00483b01
add esp, 0x14
test edx, edx
jl 0x482ac2
jg 0x482a38
test eax, eax
jb 0x482ac2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x482ac2
jl 0x482a52
cmp dword [ebp - 0x1008], eax
ja 0x482ac2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x482a70
test ebx, ebx
je 0x482aa9
cmp ecx, edi
jae 0x482aa9
mov al, byte [ecx]
cmp al, 0xd
jne 0x482a8a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x482a96
cmp byte [ecx + 1], 0xa
jne 0x482a96
inc ecx
jmp 0x482a96
movzx eax, al
movsx eax, byte [eax + 0x49c300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x482a70
cmp edx, ebx
jne 0x482a70
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x482ac7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0046d99e
leave
ret
Function at 0x482f99
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 + 0x49ddd8]
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 0x482fd9
cmp byte [ebx], 0xa
jne 0x482fd9
or byte [edi + eax + 0x28], 4
jmp 0x482fde
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 0x4830dd
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4830c0
inc eax
cmp dl, 0xd
je 0x48300a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x483030
cmp eax, ecx
jae 0x48303e
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 0x482ff2
jmp 0x4830dd
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 0x4830bb
cmp dword [ebp - 0x10], 0
je 0x4830bb
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x49ddd8]
test byte [eax + edi + 0x28], 0x48
je 0x483095
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x483080
mov byte [esi], dl
jmp 0x483091
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x49ddd8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4830dd
cmp byte [ebp - 1], 0xa
jne 0x4830a4
cmp esi, ebx
jne 0x4830a4
mov byte [esi], 0xa
jmp 0x4830dc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00483b1f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4830dd
mov byte [esi], 0xd
jmp 0x4830dc
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x49ddd8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4830da
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4830dd
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4830e6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x49ddd8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48312c
cmp word [ebx], dx
jne 0x48312c
or byte [eax + edi + 0x28], 4
jmp 0x483131
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x483294
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x483274
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x483172
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4831a8
cmp eax, edx
jae 0x4831b6
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x48314d
jmp 0x483294
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48326f
cmp dword [ebp - 0x18], 0
je 0x48326f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x49ddd8]
test byte [eax + edi + 0x28], 0x48
je 0x483245
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x483209
mov word [esi], cx
jmp 0x483240
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x49ddd8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x49ddd8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x49ddd8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x483294
pop eax
cmp word [ebp - 4], ax
jne 0x483255
cmp esi, ebx
jne 0x483255
mov word [esi], ax
jmp 0x483291
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00483b1f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x483294
push 0xd
pop eax
jmp 0x483250
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x49ddd8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x48328e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x483294
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4853fb
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 0x485498
push ebx
push esi
call fcn.004853c4
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.0048409d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x485445
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x485497
push edi
push eax
call fcn.0047e265
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x485465
call fcn.0047e22b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x485496
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0048409d
add esp, 0x20
test eax, eax
jne 0x485484
push edi
call fcn.0047e22b
jmp 0x48548c
push ebx
call fcn.0047e22b
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 0x48773b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0047df40
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 0x4877aa
cmp esi, dword [ebp - 4]
je 0x4877a5
cmp dword [ebp + 0xc], 0
je 0x4877a5
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x487782
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0048728d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4877ac
xor eax, eax
inc eax
jmp 0x4877ac
xor eax, eax
pop edi
pop esi
leave
ret