joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5703f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d18
xor eax, eax
push ebp
push 0x570481
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404954
mov eax, dword [ebp - 4]
call fcn.00404b64
mov esi, eax
test esi, esi
jle 0x57045c
mov ebx, 1
lea eax, [ebp - 8]
call fcn.00404d34
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx - 1]
xor dx, 0x4d2
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x57043f
mov eax, edi
mov edx, dword [ebp - 8]
call fcn.00404910
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x570488
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048e0
ret

Function at 0x578524
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x5786a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x57f324]
cmp dword [eax], 0
je 0x578598
lea edx, [ebp - 4]
mov eax, dword [0x57f324]
mov eax, dword [eax]
mov eax, dword [eax + 0x2e4]
call fcn.0043efb8
mov eax, dword [ebp - 4]
mov edx, 0x5786b4
call fcn.00404c74
je 0x578678
lea edx, [ebp - 8]
mov eax, dword [0x57f324]
mov eax, dword [eax]
mov eax, dword [eax + 0x2e4]
call fcn.0043efb8
mov eax, dword [ebp - 8]
mov edx, 0x5786c4
call fcn.00404c74
je 0x578678
mov eax, dword [0x59872c]
cmp dword [eax + 0x3c], 0x14b
jge 0x5785b5
mov edx, 0x14b
mov eax, dword [0x59872c]
call fcn.0043e524
mov edx, dword [0x57ee00]
mov edx, dword [edx]
mov eax, dword [ebx + 0x2e8]
call fcn.00516454
mov edx, dword [0x57ee00]
mov edx, dword [edx]
mov eax, dword [ebx + 0x2e8]
call fcn.00516454
mov eax, dword [0x57ee00]
mov eax, dword [eax]
call fcn.0043f724
mov eax, dword [0x57f2ac]
cmp byte [eax], 0
je 0x57863f
mov eax, dword [0x57ee00]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d0]
cmp byte [eax + 0x24], 0
je 0x57863f
push 0x5786d4
lea eax, [ebp - 0x10]
mov edx, dword [0x57ee00]
mov edx, dword [edx]
mov edx, dword [edx + 0x2d0]
add edx, 0x24
call fcn.00404b08
push dword [ebp - 0x10]
push 0x5786fc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c24
mov eax, dword [ebp - 0xc]
call fcn.004709b4
mov eax, dword [0x57f2d4]
cmp byte [eax], 0
jne 0x578678
mov eax, dword [0x57f2ac]
cmp byte [eax], 0
je 0x578678
mov eax, 0x578728
call fcn.004709b4
push 3
push 0
push 0
push 0x5787ac
push 0x578804
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5786a7
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004048e0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048e0
ret
Function at 0x579570
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov eax, 0x578d70
call fcn.00407ed0
xor eax, eax
push ebp
push 0x5797c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x57f120]
mov eax, dword [eax]
call fcn.00464f34
mov eax, dword [0x57f120]
mov eax, dword [eax]
mov edx, 0x5797d8
call fcn.004649e0
push 0x5797e0
push 0
push 0
call sub.kernel32.dll_CreateMutexA
mov dword [0x598734], eax
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
je 0x5796fc
xor eax, eax
push ebp
push 0x579624
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [0x57f29c]
mov eax, dword [0x57f120]
mov eax, dword [eax]
mov edx, dword [0x5721ec]
call fcn.00464f54
mov ecx, dword [0x57ecf0]
mov eax, dword [0x57f120]
mov eax, dword [eax]
mov edx, dword [0x55a914]
call fcn.00464f54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x57962e
mov ecx, dword [0x57ee00]
mov eax, dword [0x57f120]
mov eax, dword [eax]
mov edx, dword [0x570178]
call fcn.00464f54
mov ecx, dword [0x57f2dc]
mov eax, dword [0x57f120]
mov eax, dword [eax]
mov edx, dword [0x55f888]
call fcn.00464f54
mov ecx, dword [0x57f0cc]
mov eax, dword [0x57f120]
mov eax, dword [eax]
mov edx, dword [0x56788c]
call fcn.00464f54
mov ecx, dword [0x57ee5c]
mov eax, dword [0x57f120]
mov eax, dword [eax]
mov edx, dword [0x55e970]
call fcn.00464f54
mov ecx, dword [0x57eff0]
mov eax, dword [0x57f120]
mov eax, dword [eax]
mov edx, dword [0x56d71c]
call fcn.00464f54
mov ecx, dword [0x57ee38]
mov eax, dword [0x57f120]
mov eax, dword [eax]
mov edx, dword [0x56d0f8]
call fcn.00464f54
mov ecx, dword [0x57ef1c]
mov eax, dword [0x57f120]
mov eax, dword [eax]
mov edx, dword [0x545ee0]
call fcn.00464f54
mov ecx, dword [0x57ed14]
mov eax, dword [0x57f120]
mov eax, dword [eax]
mov edx, dword [0x55b030]
call fcn.00464f54
mov eax, dword [0x57f120]
mov eax, dword [eax]
call fcn.00464fe8
jmp 0x579729
lea edx, [ebp - 0x10]
mov eax, 1
call fcn.00403324
cmp dword [ebp - 0x10], 0
jne 0x579729
push 0
mov ecx, 0x5797e8
mov edx, 0x5797f4
mov eax, dword [0x57f120]
mov eax, dword [eax]
call fcn.00465168
jmp 0x5797a6
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.00403324
cmp dword [ebp - 0x14], 0
je 0x57979b
mov dl, 1
mov eax, dword [0x467230]
call fcn.004673f4
mov ebx, eax
mov edx, 0x80000001
mov eax, ebx
call fcn.00467524
mov cl, 1
mov edx, 0x579810
mov eax, ebx
call fcn.004676d8
lea edx, [ebp - 0x18]
mov eax, 1
call fcn.00403324
mov ecx, dword [ebp - 0x18]
mov edx, 0x579834
mov eax, ebx
call fcn.00467d88
push 0
push 0
push 0xbd3
push 0
push 0x579840
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_PostMessageA
mov eax, dword [0x598734]
push eax
call sub.kernel32.dll_ReleaseMutex
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5797c8
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004048e0
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp int.00401219
Function at 0x4209ab
Capabilities:
Parse pe header

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

Function at 0x433160
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43318d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43318d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4060b6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a44
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.0040476c
test esi, esi
jne 0x402a7a
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.0040485c
jmp 0x402a98
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402958
mov edi, eax
test esi, esi
je 0x402a98
cmp dword [ebx], 0
je 0x402a98
dec esi
jmp 0x402a81
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403810
Capabilities:
Query or enumerate registry value

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

Function at 0x40456c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x483048], 0
je 0x4045cd
cmp word [0x48321c], 0xd7b2
jne 0x404595
cmp dword [0x483224], 0
jbe 0x404595
mov eax, 0x483218
call dword [0x483234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47e074
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 0x4045f4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47e034], 0
jne 0x4045e9
push 0
push 0x47e06c
push 0x47e074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404720
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.0040271c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x483049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4046e8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405a50
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 0x405c80
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ad3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405c80
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ad3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405c9c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405b5c
xor eax, eax
push ebp
push 0x405b55
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405898
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 0x405b3a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405cbc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405b3a
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 0x405b5c
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 0x405c76
cmp byte [ebp - 0xd], 0
jne 0x405ba3
cmp byte [ebp - 0x12], 0
je 0x405c76
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405bbc
dec ebx
cmp byte [ebx], 0x2e
je 0x405bcb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405bbb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405c76
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405c08
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 0x405c76
cmp byte [ebp - 0xd], 0
je 0x405c76
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 0x405c76
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 0x406348
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 0x4063ae
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.004049dc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403278
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406398
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4063b5
lea eax, [ebp - 0x10]
call fcn.0040476c
ret
Function at 0x40853c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0xc], eax
lea esi, [ebp - 8]
xor eax, eax
push ebp
push 0x4086e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 0x34
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4086f8
lea eax, [ebp - 0x114]
mov edx, ebx
call fcn.00404954
push dword [ebp - 0x114]
push 0x40871c
lea eax, [ebp - 0x110]
mov edx, 3
call fcn.00404aec
mov eax, dword [ebp - 0x110]
call fcn.00404c2c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4086b1
mov dword [esi], 0xff
push esi
lea eax, [ebp - 0x10b]
push eax
push esi
push 0
push 0x408720
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4086a8
lea eax, [ebp - 0xc]
call fcn.0040476c
mov dword [esi], 1
jmp 0x408634
lea eax, [ebp - 0x118]
mov edx, dword [esi]
mov dl, byte [ebp + edx - 0x10c]
call fcn.00404954
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 0xc]
call fcn.00404a34
inc dword [esi]
mov eax, dword [esi]
cmp byte [ebp + eax - 0x10c], 0
jne 0x408610
push 0x408730
push dword [ebp - 0xc]
push 0x40873c
lea eax, [ebp - 0x11c]
mov edx, 3
call fcn.00404aec
mov eax, dword [ebp - 0x11c]
push eax
lea eax, [ebp - 0x120]
mov ecx, 0x408758
mov edx, dword [ebp - 0xc]
call fcn.00404a78
mov eax, dword [ebp - 0x120]
push eax
push dword [ebp - 0xc]
push 0x408770
push 0x408794
lea eax, [ebp - 0x124]
mov edx, 3
call fcn.00404aec
mov eax, dword [ebp - 0x124]
pop edx
pop ecx
call fcn.00408060
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
inc ebx
cmp bl, 0x38
jne 0x408583
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4086e8
lea eax, [ebp - 0x124]
mov edx, 6
call fcn.00404790
lea eax, [ebp - 0xc]
call fcn.0040476c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404c2c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409d09
test al, 0x10
jne 0x409d0d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c6b0
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 0x40c6e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040485c
jmp 0x40c6f2
mov eax, ebx
mov edx, esi
call fcn.004047c0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c6fc
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 0x40c71d
mov al, byte [esp]
jmp 0x40c71f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40cda4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cc1c
mov eax, dword [0x482348]
cmp byte [eax], 0
je 0x40ce20
mov eax, dword [0x482150]
call fcn.00402eb4
call fcn.00402884
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.00409f10
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 0x40ce68
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ce56
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x482100]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x483664]
call fcn.0040585c
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 0x40d6e0
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 0x40d7b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404804
lea eax, [ebp - 8]
call fcn.00404c7c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c2c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d7a0
mov eax, ebx
call fcn.0040271c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d799
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.00404c2c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d783
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d7c8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d783
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 0x40d7a0
mov eax, dword [ebp - 0x10]
call fcn.0040273c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d7bd
lea eax, [ebp - 8]
call fcn.0040476c
ret

Function at 0x40dcc8
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 0x40dd2c
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.004049dc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409970
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dd33
lea eax, [ebp - 0xc]
call fcn.0040476c
ret
Function at 0x41b43c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041b268
dec esi
jne 0x41b45e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x41c5a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x483888
cmp dword [edi], 0
jne 0x41c61c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x483884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47e470
mov ecx, 2
call fcn.00402918
mov edx, 0x41c578
lea eax, [esi + 5]
call fcn.0041c598
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c598
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 0x41c5f1
mov dword [0x483884], 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 0x41dba0
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 0x41dba6
ret

Function at 0x420060
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4200b1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x420098
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x420088
jmp 0x4200b1
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x420099
pop ebx
mov esp, ebp
pop ebp
ret