joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4853a8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4a813c]
cmp byte [eax + 0xc], 0
je 0x485515
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48550e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f9d78], 0
jne 0x4853fc
push 0x48551c
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x485524
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f9d78], eax
cmp dword [0x4a3208], 0
jne 0x4854f7
push 0x485534
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4a3208], eax
cmp dword [0x4a3208], 0
je 0x4854f7
push 0x485540
mov eax, dword [0x4a3208]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f9d7c], eax
push 0x485550
mov eax, dword [0x4a3208]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f9d80], eax
push 0x485564
mov eax, dword [0x4a3208]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f9d84], eax
push 0x48557c
mov eax, dword [0x4a3208]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f9d88], eax
push 0x485594
mov eax, dword [0x4a3208]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f9d8c], eax
push 0x4855a8
mov eax, dword [0x4a3208]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f9d90], eax
push 0x4855c0
mov eax, dword [0x4a3208]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f9d94], eax
push 0x4855d8
mov eax, dword [0x4a3208]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f9d98], eax
push 0x4855f4
mov eax, dword [0x4a3208]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f9d9c], eax
push 0x485600
mov eax, dword [0x4a3208]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f9da0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485515
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x488064
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x488080
call fcn.004899e0
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x48809c
test bl, 1
je 0x48809c
call fcn.004906a8
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x488280
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0048957c
test byte [ebp + 0xd], 0xc0
jne 0x4882a4
mov eax, dword [0x4a40a0]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4882b1
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4882de
je 0x4882f0
sub ecx, 0x100
je 0x4882fe
sub ecx, 0x100
je 0x488305
sub ecx, 0x100
je 0x4882f7
jmp 0x48830c
sub ecx, 0x600
je 0x488305
sub ecx, 0x100
je 0x4882f0
jmp 0x48830c
mov edi, 1
jmp 0x488311
mov edi, 2
jmp 0x488311
mov edi, 4
jmp 0x488311
mov edi, 5
jmp 0x488311
mov edi, 3
test byte [ebp + 0xd], 1
je 0x488338
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4a3b18]
test al, 0x80
je 0x488331
mov ebx, 0x80
jmp 0x48834a
mov ebx, 1
jmp 0x48834a
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x48834a
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x48835c
je 0x488365
dec eax
je 0x48836e
jmp 0x488377
mov dword [ebp - 4], SysReAllocStringLen
jmp 0x488386
mov dword [ebp - 4], 0x40000000
jmp 0x488386
mov dword [ebp - 4], 0xc0000000
jmp 0x488386
push 1
call fcn.00489974
pop ecx
mov ebx, eax
jmp 0x488476
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4883a2
sub eax, 0x10
je 0x4883a9
sub eax, 0x10
je 0x4883b2
sub eax, 0x10
je 0x4883bb
jmp 0x4883bb
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4883c2
mov dword [ebp - 8], 1
jmp 0x4883c2
mov dword [ebp - 8], 2
jmp 0x4883c2
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x48842f
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x488424
test byte [ebp + 0xd], 1
je 0x48841f
mov ebx, 0x50
jmp 0x488424
mov ebx, 2
push ebx
call fcn.00489974
pop ecx
mov ebx, eax
jmp 0x488476
mov edi, esi
push edi
call fcn.004881e4
pop ecx
test eax, eax
je 0x488443
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x48844f
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0048969c
add esp, 8
mov ebx, eax
inc eax
jne 0x488476
push 4
call fcn.00489974
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004895b0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x488638
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0048957c
test byte [ebp + 0xd], 0xc0
jne 0x48865c
mov eax, dword [0x4a40a0]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x488669
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x488696
je 0x4886a8
sub ecx, 0x100
je 0x4886b6
sub ecx, 0x100
je 0x4886bd
sub ecx, 0x100
je 0x4886af
jmp 0x4886c4
sub ecx, 0x600
je 0x4886bd
sub ecx, 0x100
je 0x4886a8
jmp 0x4886c4
mov edi, 1
jmp 0x4886c9
mov edi, 2
jmp 0x4886c9
mov edi, 4
jmp 0x4886c9
mov edi, 5
jmp 0x4886c9
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4886f0
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4a3b18]
test al, 0x80
je 0x4886e9
mov ebx, 0x80
jmp 0x488702
mov ebx, 1
jmp 0x488702
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov ebx, eax
cmp eax, 0xffffffff
jne 0x488702
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x488714
je 0x48871d
dec eax
je 0x488726
jmp 0x48872f
mov dword [ebp - 4], SysReAllocStringLen
jmp 0x48873e
mov dword [ebp - 4], 0x40000000
jmp 0x48873e
mov dword [ebp - 4], 0xc0000000
jmp 0x48873e
push 1
call fcn.00489974
pop ecx
mov ebx, eax
jmp 0x48882e
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x48875a
sub eax, 0x10
je 0x488761
sub eax, 0x10
je 0x48876a
sub eax, 0x10
je 0x488773
jmp 0x488773
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x48877a
mov dword [ebp - 8], 1
jmp 0x48877a
mov dword [ebp - 8], 2
jmp 0x48877a
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileW
mov esi, eax
cmp eax, 0xffffffff
jne 0x4887e7
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4887dc
test byte [ebp + 0xd], 1
je 0x4887d7
mov ebx, 0x50
jmp 0x4887dc
mov ebx, 2
push ebx
call fcn.00489974
pop ecx
mov ebx, eax
jmp 0x48882e
mov edi, esi
push edi
call fcn.004881e4
pop ecx
test eax, eax
je 0x4887fb
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x488807
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0048969c
add esp, 8
mov ebx, eax
inc eax
jne 0x48882e
push 4
call fcn.00489974
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004895b0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x488ba8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x488bc4
call fcn.004899e0
jmp 0x488be5
test byte [ebp + 0xc], 0x80
jne 0x488bcf
or ebx, 1
jmp 0x488bd2
and ebx, 0xfffffffe
push ebx
push esi
call sub.KERNEL32.DLL_SetFileAttributesA
dec eax
je 0x488be3
call fcn.004899e0
jmp 0x488be5
xor eax, eax
pop esi
pop ebx
pop ebp
ret

Function at 0x4893e4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp ebx, dword [0x4a3fd0]
jb 0x489408
push 6
call fcn.00489974
pop ecx
jmp 0x48949f
push ebx
call fcn.004895c0
pop ecx
mov esi, dword [ebx*4 + 0x4fa2f4]
push 0x24
push 0
push edi
call fcn.00486c5c
add esp, 0xc
push esi
call sub.KERNEL32.DLL_GetFileType
dec eax
je 0x48943c
dec eax
je 0x489434
dec eax
je 0x48948e
jmp 0x489494
mov word [edi + 4], 0x2000
jmp 0x489494
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
push esi
call sub.KERNEL32.DLL_GetFileTime
dec eax
je 0x48945a
call fcn.004899e0
mov esi, eax
jmp 0x489496
push 0
push esi
call sub.KERNEL32.DLL_GetFileSize
push eax
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
test byte [ebx*4 + 0x4a3fd5], 1
je 0x48947d
xor eax, eax
jmp 0x489482
mov eax, 1
push eax
push edi
call fcn.004923a0
add esp, 0x18
jmp 0x489494
mov word [edi + 4], 0x1000
xor esi, esi
push ebx
call fcn.00489654
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4894a8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.00486620
pop ecx
mov ebx, eax
test eax, eax
jne 0x4894cc
xor eax, eax
jmp 0x489575
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x4894ed
cmp esi, 0x104
jb 0x4894f8
push ebx
call fcn.00486630
pop ecx
xor eax, eax
jmp 0x489575
cmp byte [ebx + 1], 0x3a
jne 0x489528
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x489528
push ebx
call fcn.00486630
pop ecx
xor eax, eax
jmp 0x489575
inc esi
test edi, edi
je 0x48956b
cmp esi, dword [ebp + 0x10]
jbe 0x48953d
push ebx
call fcn.00486630
pop ecx
xor eax, eax
jmp 0x489575
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.00486630
pop ecx
mov eax, edi
jmp 0x489575
push esi
push ebx
call fcn.00486640
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x48b140
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push eax
call fcn.00489d60
pop ecx
mov edi, eax
cmp eax, 0xffffffff
jne 0x48b162
or eax, 0xffffffff
jmp 0x48b1d9
test esi, esi
jne 0x48b18a
lea edx, [ebp - 0x20]
push edx
call sub.KERNEL32.DLL_GetLocalTime
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 0x20]
push eax
call sub.KERNEL32.DLL_SystemTimeToFileTime
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
jmp 0x48b1b7
lea ecx, [ebp - 8]
push ecx
mov eax, dword [esi]
push eax
call fcn.0048afe0
add esp, 8
mov ebx, eax
cmp eax, 1
jne 0x48b1cb
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [esi + 4]
push ecx
call fcn.0048afe0
add esp, 8
mov ebx, eax
cmp eax, 1
jne 0x48b1cb
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 0x10]
push eax
push edi
call sub.KERNEL32.DLL_SetFileTime
mov ebx, eax
cmp ebx, 1
jne 0x48b1d4
xor eax, eax
jmp 0x48b1d9
call fcn.004899e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48d2ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0x200
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.00486d00
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.00486e0c
pop ecx
mov edx, 0x200
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.00486e0c
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x4a4ce5
lea ecx, [ebp - 0x200]
push ecx
call fcn.00486d00
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.00486e0c
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.0048e464
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x48d3fd
push esi
call fcn.00486e0c
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.00486e0c
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.00486620
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x48d3d4
xor eax, eax
jmp 0x48d484
push esi
call fcn.00486e0c
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.00486e0c
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.00486c5c
add esp, 0xc
jmp 0x48d43d
mov edi, dword [ebx + 0x24]
push edi
call fcn.00486e0c
pop ecx
push eax
push esi
call fcn.00486e0c
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.00486e0c
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.00486640
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x48d43d
xor eax, eax
jmp 0x48d484
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.00486d00
add esp, 8
push 0x4a4ce7
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00486d00
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.00486d00
add esp, 8
push 0x4a4ce9
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00486d00
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x490640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4906a2
call fcn.004905f0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00486e0c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00486e0c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x490720
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4a52f4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4907fa
cmp dword [0x4a52f0], 0
jne 0x4907fa
cmp dword [0x4a54f4], 0
je 0x4907b4
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004904d0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x49079a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004904d0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x49079a
lea ebx, [ebp - 0x84]
jmp 0x49079b
inc ebx
call fcn.004906dc
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x490835
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4a52f8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00486e0c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4a52fb
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x490835
cmp dword [0x4a52f0], 0
je 0x490814
cmp dword [0x4a52f0], 0xffffffff
je 0x490835
push esi
call dword [0x4a52f0]
pop ecx
mov eax, dword [0x4a52f4]
test eax, eax
je 0x490835
cmp dword [0x4a52f4], 0xffffffff
je 0x490835
cmp byte [eax], 0
je 0x490835
push esi
push eax
call fcn.00490640
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x497750
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
lea eax, [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
push 0x1000
lea ecx, [ebp - 0x1000]
push ecx
call fcn.0048a9d0
add esp, 0x10
lea eax, [ebp - 0x1000]
push eax
call sub.KERNEL32.DLL_OutputDebugStringA
mov esp, ebp
pop ebp
ret
Function at 0x405e04
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405e6a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404450
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ea4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405e54
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e71
lea eax, [ebp - 0x10]
call fcn.004041e0
ret

Function at 0x40ae28
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ae61
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042d0
jmp 0x40ae6a
mov eax, ebx
mov edx, esi
call fcn.00404234
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ae74
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ae95
mov al, byte [esp]
jmp 0x40ae97
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b52c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b394
mov eax, dword [0x453060]
cmp byte [eax], 0
je 0x40b5a8
mov eax, dword [0x452e88]
call fcn.00402d10
call fcn.00402bb4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408618
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b5f0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b5de
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x452e38]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x454664]
call fcn.00405270
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40be4c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bf22
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404278
lea eax, [ebp - 8]
call fcn.004046f0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046a0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bf0c
mov eax, ebx
call fcn.00402a28
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bf05
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046a0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40beef
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bf34
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40beef
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf0c
mov eax, dword [ebp - 0x10]
call fcn.00402a58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf29
lea eax, [ebp - 8]
call fcn.004041e0
ret

Function at 0x40c3fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c460
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404450
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408194
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c467
lea eax, [ebp - 0xc]
call fcn.004041e0
ret

Function at 0x41a608
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x454884
cmp dword [edi], 0
jne 0x41a684
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x454880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4523ec
mov ecx, 2
call fcn.00402c48
mov edx, 0x41a5e0
lea eax, [esi + 5]
call fcn.0041a600
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a600
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41a659
mov dword [0x454880], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41b898
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41b89e
ret