joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402da4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402dfd
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402c40
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402c40
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402de7
inc ebx
jmp 0x402dd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e04
lea eax, [ebp - 8]
call fcn.00404460
ret

Function at 0x402e0c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404460
test esi, esi
jne 0x402e43
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.00404550
jmp 0x402e64
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c40
mov dword [esp], eax
test esi, esi
je 0x402e64
cmp dword [ebx], 0
je 0x402e64
dec esi
jmp 0x402e4b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4034b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x426020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403550
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403530
xor eax, eax
push ebp
push 0x403529
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 0x40356c
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 0x403530
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x426020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x426020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4042dc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x42804c], 0
je 0x40433d
cmp word [0x428220], 0xd7b2
jne 0x404305
cmp dword [0x428228], 0
jbe 0x404305
mov eax, 0x42821c
call dword [0x428238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x42606c
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 0x404364
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x426030], 0
jne 0x404359
push 0
push 0x426064
push 0x42606c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4064cc
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 0x406532
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.004046d0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040307c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40651c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406539
lea eax, [ebp - 0x10]
call fcn.00404460
ret

Function at 0x40ace8
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 0x40ad21
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404550
jmp 0x40ad2a
mov eax, ebx
mov edx, esi
call fcn.004044b4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ad34
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 0x40ad55
mov al, byte [esp]
jmp 0x40ad57
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c23c
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 0x40c2a0
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.004046d0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407eec
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c2a7
lea eax, [ebp - 0xc]
call fcn.00404460
ret

Function at 0x41c370
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x428884
cmp dword [edi], 0
jne 0x41c3ec
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x428880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x42645c
mov ecx, 2
call fcn.00402c00
mov edx, 0x41c348
lea eax, [esi + 5]
call fcn.0041c368
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c368
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 0x41c3c1
mov dword [0x428880], 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 0x41e998
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x41ea2c
push 0
mov eax, ebx
call fcn.00404920
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x41ea07
mov eax, esi
call fcn.00404720
inc eax
push eax
mov eax, esi
call fcn.00404920
push eax
push 1
push 0
mov eax, edi
call fcn.00404920
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x41ea22
mov ecx, dword [0x4276c4]
mov dl, 1
mov eax, dword [0x41cf8c]
call fcn.0040b570
call fcn.00403e98
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x424278
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00406024
xor eax, eax
push ebp
push 0x4243af
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
call fcn.0041e8f8
xor eax, eax
push ebp
push 0x424382
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
movzx ebx, word [eax + 0x30]
dec ebx
test ebx, ebx
jl 0x424367
inc ebx
xor esi, esi
lea eax, [ebp - 0x18]
push eax
push esi
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
call fcn.0041e8f8
mov eax, dword [ebp - 0x18]
and eax, 2
cmp eax, 2
jne 0x42435f
mov eax, dword [ebp - 0x18]
and eax, 1
dec eax
jne 0x42435f
lea eax, [ebp - 0x10]
push eax
push esi
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x20]
call fcn.0041e8f8
lea eax, [ebp - 0x14]
call fcn.00405fb0
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x38]
call fcn.0041e8f8
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.0041e8f8
lea eax, [edi + 4]
mov edx, dword [ebp - 0x14]
call fcn.00405fc8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.004241e0
inc esi
dec ebx
jne 0x4242da
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424389
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x4c]
ret
Function at 0x425098
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push esi
push edi
push eax
push edx
mov eax, dword [eax]
mov edx, dword [edx]
mov ebx, 0
mov esi, 0
mov edi, dword [0x4299ac]
shl edi, 2
xor edx, dword [esi + 0x428924]
ror edx, 0x10
mov bl, dh
mov ecx, dword [ebx*4 + 0x4289ac]
mov bl, dl
add ecx, dword [ebx*4 + 0x428dac]
rol edx, 0x10
mov bl, dh
xor ecx, dword [ebx*4 + 0x4291ac]
mov bl, dl
add ecx, dword [ebx*4 + 0x4295ac]
xor eax, ecx
xchg edx, eax
add esi, 4
cmp esi, edi
jne 0x4250b5
xchg edx, eax
xor eax, dword [esi + 0x428924]
xor edx, dword [esi + 0x428928]
mov ebx, edx
pop edx
mov dword [edx], ebx
mov ebx, eax
pop eax
mov dword [eax], ebx
pop edi
pop esi
pop ecx
pop ebx
ret

Function at 0x425110
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push esi
push eax
push edx
mov eax, dword [eax]
mov edx, dword [edx]
mov ebx, 0
mov esi, dword [0x4299ac]
inc esi
shl esi, 2
xor edx, dword [esi + 0x428924]
ror edx, 0x10
mov bl, dh
mov ecx, dword [ebx*4 + 0x4289ac]
mov bl, dl
add ecx, dword [ebx*4 + 0x428dac]
rol edx, 0x10
mov bl, dh
xor ecx, dword [ebx*4 + 0x4291ac]
mov bl, dl
add ecx, dword [ebx*4 + 0x4295ac]
xor eax, ecx
xchg edx, eax
sub esi, 4
cmp esi, 4
jne 0x425128
xchg edx, eax
xor eax, dword [0x428928]
xor edx, dword [0x428924]
mov ebx, edx
pop edx
mov dword [edx], ebx
mov ebx, eax
pop eax
mov dword [eax], ebx
pop esi
pop ecx
pop ebx
ret
Function at 0x425408
Capabilities:
Encrypt data using blowfish

Disassembly:
push esi
push edi
mov dword [0x4299ac], 0x10
mov esi, 0x42655c
mov edi, 0x428924
mov ecx, 0x422
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret

Function at 0x4256cc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x1004], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x425772
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1000]
mov ecx, 0x20
mov edx, 0x1000
call fcn.0040305c
cmp ebx, 0xff
jne 0x425725
lea eax, [ebp - 0x1000]
push eax
push 0x1000
call sub.kernel32.dll_GetTempPathA
jmp 0x425736
push 0
push ebx
lea eax, [ebp - 0x1000]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
lea eax, [ebp - 0x1004]
lea edx, [ebp - 0x1000]
mov ecx, 0x1000
call fcn.00404550
mov eax, dword [ebp - 0x1004]
mov edx, esi
call fcn.00407c74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x425779
lea eax, [ebp - 0x1004]
call fcn.00404460
ret
Function at 0x403314
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404b64
test esi, esi
jne 0x40334a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404c54
jmp 0x403368
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403218
mov edi, eax
test esi, esi
je 0x403368
cmp dword [ebx], 0
je 0x403368
dec esi
jmp 0x403351
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403af4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4b5020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b8c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403b6c
xor eax, eax
push ebp
push 0x403b65
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 0x403ba8
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 0x403b6c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4b5020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4b5020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4049c4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b804c], 0
je 0x404a25
cmp word [0x4b8220], 0xd7b2
jne 0x4049ed
cmp dword [0x4b8228], 0
jbe 0x4049ed
mov eax, 0x4b821c
call dword [0x4b8238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404a4c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b502c], 0
jne 0x404a41
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4063e4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406614
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406467
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406614
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406467
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406630
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4064f0
xor eax, eax
push ebp
push 0x4064e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406220
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4064ce
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406650
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4064ce
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4064f0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40660a
cmp byte [ebp - 0xd], 0
jne 0x406537
cmp byte [ebp - 0x12], 0
je 0x40660a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406550
dec ebx
cmp byte [ebx], 0x2e
je 0x40655f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40654f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40660a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40659c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40660a
cmp byte [ebp - 0xd], 0
je 0x40660a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40660a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4091f8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40924a
test eax, edx
je 0x40924d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40920d
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x409233
add ecx, 4
js 0x409223
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409230
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x409259
test edx, edx
jne 0x409200
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405004
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409c51
test al, 0x10
je 0x409c55
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40cb3c
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 0x40cb75
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404c54
jmp 0x40cb7e
mov eax, ebx
mov edx, esi
call fcn.00404bb8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cb88
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 0x40cbaa
movzx eax, byte [esp]
jmp 0x40cbac
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d23c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d0b4
mov eax, dword [0x4b7318]
cmp byte [eax], 0
je 0x40d2b8
mov eax, dword [0x4b70d0]
call fcn.004034bc
call fcn.00403084
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.00409e48
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 0x40d300
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d2ee
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b7064]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ba7f8]
call fcn.004061c8
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 0x40dbb8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40dc8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404bfc
lea eax, [ebp - 4]
call fcn.0040505c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405004
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40dc78
mov eax, ebx
call fcn.00402f28
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40dc71
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 - 4]
call fcn.00405004
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40dc5b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40dca0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40dc5b
mov eax, dword [ebp - 0x14]
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 0x40dc78
mov eax, dword [ebp - 0x10]
call fcn.00402f44
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc95
lea eax, [ebp - 4]
call fcn.00404b64
ret

Function at 0x420844
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4bc9f4
cmp dword [edi], 0
jne 0x4208c0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4bc9f0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4b5b68
mov ecx, 2
call fcn.00403118
mov edx, 0x42081c
lea eax, [esi + 5]
call fcn.0042083c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042083c
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 0x420895
mov dword [0x4bc9f0], 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 0x4243d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405004
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x424430
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4b7484]
mov dl, 1
mov eax, dword [0x423ee4]
call fcn.0040d408
call fcn.00404570
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00423fec
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x425660
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 0x425666
ret