joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462640
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x462657
add esp, 0xfffffff0
call fcn.00403adc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419ed8
mov eax, dword [0x487b24]
cmp word [eax + 2], 0
jne 0x46267f
mov eax, dword [0x487b24]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00463dc0
mov eax, dword [0x487c10]
cmp word [eax + 2], 0
jne 0x462699
mov eax, dword [0x487c10]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00463fb8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412160]
call fcn.00403788
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412160]
call fcn.00403788
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41c474]
call fcn.00423c54
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x462820
mov eax, dword [0x487a18]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424024
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x464568
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x487a18]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cbd0
test eax, eax
je 0x46278e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408d8c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cbf8
test eax, eax
je 0x4627a2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404778
mov eax, dword [0x4878a8]
cmp byte [eax], 0
jne 0x4627d6
mov eax, ebx
call fcn.00462948
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00464744
mov eax, ebx
call fcn.00465108
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x462816
call fcn.00403b34
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462bc8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x488be4]
cmp dword [eax + 0x30], 0
je 0x462c72
cmp dword [ebx + 0x94], 0
jne 0x462c6c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x462b58
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x462c6c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x462c32
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x462c6c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004144c8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x462c41
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4637d4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x463809
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004045f8
jmp 0x463816
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040455c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x464920
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x464961
mov eax, esi
call fcn.0044aad0
test al, al
je 0x464961
mov eax, dword [ebx + 0x84]
call fcn.0044a7cc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x464961
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044a7cc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x468028
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x468056
mov eax, ebx
call fcn.00468adc
cmp dword [ebx + 0x40], 0
je 0x46804f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4680c7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4680b9
cmp dword [ebx + 8], 0
je 0x468078
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46808a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4680b9
cmp dword [ebx + 8], 0
je 0x46806b
cmp eax, 3
je 0x46809d
dec eax
jne 0x46806b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46806b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46806b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4680e5
cmp dword [ebx + 0x14], 0xcc
je 0x4680e5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004680f0
pop ebx
ret
Function at 0x484dd8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, 0x484ba8
call fcn.0040631c
mov esi, dword [0x487be8]
mov edi, 0x488fe4
xor eax, eax
push ebp
push 0x484fcf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
call fcn.00463c28
mov ecx, dword [esi]
mov dl, 1
mov eax, dword [0x47c184]
call fcn.0045c3d0
mov edx, dword [0x487d90]
mov dword [edx], eax
mov eax, dword [0x487d90]
mov eax, dword [eax]
call fcn.00460728
mov eax, dword [0x487d90]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x88]
mov eax, dword [esi]
mov edx, 0x484fe8
call fcn.00463820
push 0
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x484ec0
push 0xff
push edi
push ebx
call sub.user32.dll_GetWindowTextA
test eax, eax
jle 0x484eb2
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00408f68
mov edx, dword [ebp - 0x14]
mov eax, 0x485008
call fcn.00404b0c
test eax, eax
je 0x484eb2
mov eax, dword [esi]
call fcn.00463dac
push 0
mov ecx, 0x485010
mov edx, 0x485028
mov eax, dword [esi]
call fcn.00463e50
push 0
push ebx
call sub.user32.dll_EnableWindow
call fcn.00404418
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x484e60
push 0x485044
push 0
push 0
call fcn.004065ac
mov ebx, eax
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
je 0x484fa0
mov ecx, dword [0x4879b8]
mov eax, dword [esi]
mov edx, dword [0x47f41c]
call fcn.00463c40
mov ecx, dword [0x487d94]
mov eax, dword [esi]
mov edx, dword [0x4788f8]
call fcn.00463c40
mov ecx, dword [0x487d90]
mov eax, dword [esi]
mov edx, dword [0x47c184]
call fcn.00463c40
mov ecx, dword [0x487ca4]
mov eax, dword [esi]
mov edx, dword [0x47c360]
call fcn.00463c40
mov ecx, dword [0x487cd4]
mov eax, dword [esi]
mov edx, dword [0x47d950]
call fcn.00463c40
mov ecx, dword [0x487d84]
mov eax, dword [esi]
mov edx, dword [0x47de58]
call fcn.00463c40
mov ecx, dword [0x487a00]
mov eax, dword [esi]
mov edx, dword [0x47e3b4]
call fcn.00463c40
mov ecx, dword [0x487990]
mov eax, dword [esi]
mov edx, dword [0x47eee8]
call fcn.00463c40
mov ecx, dword [0x487bb8]
mov eax, dword [esi]
mov edx, dword [0x478614]
call fcn.00463c40
mov eax, dword [0x487d90]
mov eax, dword [eax]
call fcn.00460580
mov eax, dword [esi]
call fcn.00463cc0
jmp 0x484fb3
push 0
mov ecx, 0x485054
mov edx, 0x48505c
mov eax, dword [esi]
call fcn.00463e50
push ebx
call sub.kernel32.dll_ReleaseMutex
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484fd6
lea eax, [ebp - 0x14]
call fcn.00404508
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1000f188
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x1000f197
pop dword [ebp - 0x10]
mov eax, 0x1000f197
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x3bcdd
push 0
mov eax, 0xeb3111bb
add eax, 0x24d02ea9
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x52e5
xor edx, edx
add edx, eax
mov ebx, 0x2aba7148
sub ebx, 0x1ab8eb48
add ebx, dword [ebp - 0x10]
mov esi, 0x23d51830
sub esi, 0x1b95e4f2
mov edi, dword [ebx]
add dword [ebp - 0xc], esi
xor edi, esi
sub dword [ebp - 8], edi
mov dword [edx], edi
add dword [ebp - 4], 0xe570f836
add edx, 0x6636bbf7
add edx, 0x99c9440d
add ebx, 0x510f8c27
add ebx, 0xaef073dd
loop 0x1000f1ed
add eax, 0x65569af8
add eax, 0x9aaaa36f
mov ebx, eax
add eax, 0xfe9049b7
add eax, 0x16fb64e
mov ecx, 0x2c49af72
sub ecx, 0x1c49af72
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x442490
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x35000]
push edi
jmp 0x4424aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4424b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4424a0
mov eax, 1
add ebx, ebx
jne 0x4424c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4424b8
jne 0x4424d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4424b8
xor ecx, ecx
sub eax, 3
jb 0x4424e8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44255a
mov ebp, eax
add ebx, ebx
jne 0x4424f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x442500
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x442524
inc ecx
add ebx, ebx
jne 0x442510
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x442505
jne 0x442521
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x442505
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x442544
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x442535
jmp 0x4424a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x442544
add edi, ecx
jmp 0x4424a6
pop esi
mov edi, esi
mov ecx, 0x1453
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x442562
cmp byte [edi], 6
jne 0x442562
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 0x442567
lea edi, [esi + 0x40000]
mov eax, dword [edi]
or eax, eax
je 0x4425df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x43164]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x43234]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x442594
mov ecx, edi
jns 0x4425c3
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 + 0x4323c]
or eax, eax
je 0x4425d9
mov dword [ebx], eax
add ebx, 4
jmp 0x4425b1
call dword [esi + 0x43238]
mov ebp, dword [esi + 0x43240]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x442613
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x402cd8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402d15
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402d35
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004049a8
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402f94
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404728
test esi, esi
jne 0x402fcb
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404818
jmp 0x402fec
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402dc8
mov dword [esp], eax
test esi, esi
je 0x402fec
cmp dword [ebx], 0
je 0x402fec
dec esi
jmp 0x402fd3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403308
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x514008], 0x8088405
inc edx
mov dword [ebx + 0x514008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403784
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x514024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40381c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4037fc
xor eax, eax
push ebp
push 0x4037f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403838
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4037fc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x514024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x514024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404520
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x52204c], 0
je 0x404581
cmp word [0x522220], 0xd7b2
jne 0x404549
cmp dword [0x522228], 0
jbe 0x404549
mov eax, 0x52221c
call dword [fcn.00522238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x514070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4045a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x514034], 0
jne 0x40459d
push 0
push 0x514068
push 0x514070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4046dc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402acc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x52204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0xc4046a4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406a24
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 0x406a8a
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.004049a8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403324
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406a74
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a91
lea eax, [ebp - 0x10]
call fcn.00404728
ret

Function at 0x409a9c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x409acd
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x409ad4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x409b05
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bf8
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x409c12
test byte [ebp - 0xc], 0x10
jne 0x409c16
xor eax, eax
jmp 0x409c18
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x409c24
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bf8
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x409f50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404bf8
push eax
call sub.kernel32.dll_CreateDirectoryA_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x40ce58
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40cea0
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.00404818
jmp 0x40ceab
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.0040477c
mov esp, ebp
pop ebp
ret 4

Function at 0x40ceb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40cee2
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x40cee8
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret

Function at 0x40d670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x400
lea ecx, [ebp - 0x44c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040d4b8
mov eax, dword [0x521060]
cmp byte [eax], 0
je 0x40d703
mov eax, dword [0x520bfc]
call fcn.00403138
call fcn.00402c58
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x44c]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44c]
call fcn.00409f7c
push eax
lea eax, [ebp - 0x44c]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40d748
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d739
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x520b54]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x522668]
call fcn.00405e90
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov esp, ebp
pop ebp
ret
Function at 0x40e190
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40e26e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004047c0
lea eax, [ebp - 0xc]
call fcn.00404c48
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404bf8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40e258
mov eax, dword [ebp - 0x10]
call fcn.00402acc
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x40e251
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404bf8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e23b
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x40e27c
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e23b
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e258
mov eax, dword [ebp - 0x18]
call fcn.00402afc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e275
lea eax, [ebp - 0xc]
call fcn.00404728
ret

Function at 0x40ea34
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40ea9e
push dword fs:[eax]
mov dword fs:[eax], esp
push 7
lea eax, [ebp - 0xf]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xf]
mov ecx, 7
call fcn.004049a8
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409760
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eaa5
lea eax, [ebp - 0x14]
call fcn.00404728
ret