joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59a4b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x59a5d0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
call fcn.005e5a00
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, ebx
call fcn.00599d6c
test al, al
je 0x59a59b
mov edx, esi
mov eax, 0x59a5e8
call fcn.0047db48
test al, al
je 0x59a54f
cmp dword [ebp - 8], 0
je 0x59a533
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x59a516
cmp dword [ebx + 0x310], 0
jne 0x59a51f
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_BringWindowToTop
push 0
push 0
push 0x10
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SendMessageA
jmp 0x59a5b5
mov ebx, dword [0x5fde74]
mov ebx, dword [ebx]
lea edx, [ebp - 0x10]
mov eax, 0x14b
call ebx
mov eax, dword [ebp - 0x10]
call fcn.005e5a00
jmp 0x59a5b5
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x59a575
mov byte [ebx + 0x304], 1
lea edx, [ebp - 0x14]
mov eax, dword [ebx + 0x300]
call fcn.0040a7f4
mov eax, dword [ebp - 0x14]
call fcn.00599c5c
jmp 0x59a5b5
mov eax, dword [ebp - 4]
push eax
push 0
push 0x400
call sub.KERNEL32.DLL_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x59a5b5
push 0
push ebx
call sub.KERNEL32.DLL_TerminateProcess
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
jmp 0x59a5b5
mov ebx, dword [0x5fde74]
mov ebx, dword [ebx]
lea edx, [ebp - 0x18]
mov eax, 0x14c
call ebx
mov eax, dword [ebp - 0x18]
call fcn.005e5a00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59a5d7
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00405070
ret
Function at 0x59d0c8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x59d1dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5fe374]
cmp dword [eax], 2
je 0x59d1bb
xor edx, edx
push ebp
push 0x59d1b1
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xff
lea eax, [ebp - 0x10d]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x10d]
call fcn.0040b9d8
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 8]
mov edx, 0x59d1f4
call fcn.00445dd0
mov eax, dword [ebp - 8]
call fcn.00405538
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x59d1a7
xor edx, edx
push ebp
push 0x59d1a0
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x59d1fc
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
test eax, eax
je 0x59d189
push 0
push 0
mov edx, dword [0x5fe158]
mov edx, dword [edx]
push edx
push 0x59d210
call eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59d1a7
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59d1bb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59d1e3
lea eax, [ebp - 0x114]
call fcn.0040504c
lea eax, [ebp - 8]
call fcn.0040504c
ret
Function at 0x59d218
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x59d3e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
mov eax, dword [0x5fe374]
cmp dword [eax], 2
je 0x59d3c4
xor eax, eax
push ebp
push 0x59d3ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x444c24]
call fcn.00444d90
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x59d3a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 0xc]
call fcn.00444e30
xor ecx, ecx
mov edx, 0x59d400
mov eax, dword [ebp - 0xc]
call fcn.00444e98
test al, al
je 0x59d393
mov edx, 0x59d420
mov eax, dword [ebp - 0xc]
call fcn.004454bc
test eax, eax
je 0x59d393
push 0xff
lea eax, [ebp - 0x115]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
lea edx, [ebp - 0x11c]
lea eax, [ebp - 0x115]
call fcn.0040b9d8
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x10]
mov edx, 0x59d440
call fcn.00445dd0
mov eax, dword [ebp - 0x10]
call fcn.00405538
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x59d393
xor eax, eax
push ebp
push 0x59d38c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x59d450
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov ebx, eax
mov eax, dword [0x5fdeb8]
cmp byte [eax], 3
jne 0x59d342
mov eax, dword [0x5fddc0]
mov eax, dword [eax]
cmp byte [eax + 0x484], 0
je 0x59d342
push 0xffffffffffffffff
call sub.user32.dll_ShowCursor
mov eax, dword [0x5fddc0]
mov eax, dword [eax]
call fcn.00457974
push eax
call ebx
mov byte [ebp - 1], al
mov eax, dword [0x5fdeb8]
cmp byte [eax], 3
jne 0x59d375
mov eax, dword [0x5fddc0]
mov eax, dword [eax]
cmp byte [eax + 0x484], 0
je 0x59d375
push 0
call sub.user32.dll_ShowCursor
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59d393
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59d3b0
mov eax, dword [ebp - 0xc]
call fcn.0040411c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59d3ec
lea eax, [ebp - 0x11c]
call fcn.0040504c
lea eax, [ebp - 0x10]
call fcn.0040504c
ret
Function at 0x5be318
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, eax
push 1
push 0x5be368
push 0x5be368
mov eax, ebx
call fcn.00405538
push eax
push 0x5be36c
mov eax, dword [0x5fe0a0]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
jbe 0x5be352
xor eax, eax
call fcn.005e5a00
pop ebx
ret
mov eax, dword [0x5fddc0]
mov eax, dword [eax]
mov eax, dword [eax + 0x400]
call fcn.005e5a00
pop ebx
ret

Function at 0x5e259c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040504c
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x5e2630
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5e262b
xor eax, eax
push ebp
push 0x5e2624
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x104
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10d]
push eax
push 0
push 0
push 0x5e266c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x5e260d
mov edx, ebx
lea eax, [ebp - 0x10d]
call fcn.0040b9d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e262b
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5e2670
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc0
mov edi, edx
mov esi, eax
xor ebx, ebx
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x3c
call fcn.004038a8
mov dword [esp + 4], 0x3c
mov dword [esp + 8], 0x40
mov eax, dword [0x5fe0a0]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [esp + 0xc], eax
mov eax, esi
call fcn.00405538
mov dword [esp + 0x14], eax
mov eax, edi
call fcn.00405538
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x20], eax
lea eax, [esp + 4]
push eax
call sub.shell32.dll_ShellExecuteExA
test eax, eax
je 0x5e270b
mov eax, dword [0x5fe0a0]
mov eax, dword [eax]
call fcn.00470d04
push esp
mov eax, dword [esp + 0x40]
push eax
call sub.KERNEL32.DLL_GetExitCodeProcess
cmp dword [esp], 0x103
jne 0x5e2704
mov eax, dword [0x5fe0a0]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
je 0x5e26d4
cmp dword [esp], 0
sete bl
mov eax, ebx
add esp, 0x40
pop edi
pop esi
pop ebx
ret
Function at 0x5e302c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5e3167
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040504c
mov eax, dword [0x5fe17c]
cmp dword [eax], 0
je 0x5e30b0
lea eax, [ebp - 0x105]
push eax
push 0
push 0
push esi
push 0
mov eax, dword [0x5fe17c]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x5e3149
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x105]
call fcn.0040b9d8
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040fd60
jmp 0x5e3149
sub esi, 5
je 0x5e30c5
sub esi, 0x1f
je 0x5e30d3
dec esi
je 0x5e3108
dec esi
je 0x5e313d
jmp 0x5e3149
mov eax, ebx
mov edx, 0x5e317c
call fcn.004050a0
jmp 0x5e3149
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
test eax, eax
jbe 0x5e3149
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x105]
call fcn.0040b9d8
mov eax, dword [ebp - 0x110]
mov edx, ebx
call fcn.0040fd60
jmp 0x5e3149
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
test eax, eax
jbe 0x5e3149
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x105]
call fcn.0040b9d8
mov eax, dword [ebp - 0x114]
mov edx, ebx
call fcn.0040fd60
jmp 0x5e3149
mov eax, ebx
mov edx, 0x5e3198
call fcn.004050a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e316e
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00405070
ret

Function at 0x5e31c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5e3237
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA_1
test eax, eax
jbe 0x5e3217
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x105]
call fcn.0040b9d8
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040fd4c
jmp 0x5e321e
mov eax, ebx
call fcn.0040504c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e323e
lea eax, [ebp - 0x10c]
call fcn.0040504c
ret

Function at 0x5e3244
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffff4
push 0
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x5e3278
call sub.KERNEL32.DLL_GetVolumeInformationA
test eax, eax
je 0x5e3271
mov eax, dword [esp]
jmp 0x5e3273
xor eax, eax
add esp, 0xc
ret
Function at 0x593d249a
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov edi, ecx
call dword [sym.imp.vsansi.dll_GetWindowTextLengthW]
mov esi, eax
lea eax, [esi + 1]
push eax
push esi
mov ecx, edi
call fcn.593d1d54
push eax
push dword [esp + 0x14]
call dword [sym.imp.vsansi.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.593d1ef0
pop edi
mov eax, esi
pop esi
ret 4

Function at 0x593d339b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push esi
mov esi, ecx
call fcn.593d3384
and byte [esi + 0xc], 0
mov eax, 0x593b0000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push 0
push eax
mov dword [esi], 0x3c
call sub.MSVCR70.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 2
jne 0x593d33f5
cmp dword [ebp - 0x18], 5
jb 0x593d340d
jmp 0x593d3409
cmp dword [ebp - 0xc], 1
jne 0x593d340d
cmp dword [ebp - 0x18], 4
ja 0x593d3409
jne 0x593d340d
cmp dword [ebp - 0x14], 0
jbe 0x593d340d
mov byte [esi + 0xc], 1
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x10], 0x700
mov dword [esi + 0x14], 0x593d5070
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
add ebp, 0x78
leave
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 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x12166c1f
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x772451ba
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40d2ce
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407cfb
mov dword [ebp - 0x14], eax
cmp dword [0x4ad638], esi
jne 0x40d3c1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d34e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d4a1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d4a1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d4a1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4ad638], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ad63c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4ad640], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad648], eax
test eax, eax
je 0x40d3be
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad644], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3e6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3d9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3fb
push 4
pop eax
jmp 0x40d4a3
cmp dword [ebp - 0x14], esi
je 0x40d3fb
push dword [0x4ad638]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3e0
mov eax, dword [0x4ad644]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d459
cmp dword [0x4ad648], edi
je 0x40d459
push eax
call ebx
push dword [0x4ad648]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d459
test eax, eax
je 0x40d459
call ecx
test eax, eax
je 0x40d44e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d44e
test byte [ebp - 8], 1
jne 0x40d459
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d489
mov eax, dword [0x4ad63c]
cmp eax, edi
je 0x40d486
push eax
call ebx
test eax, eax
je 0x40d486
call eax
mov esi, eax
test esi, esi
je 0x40d486
mov eax, dword [0x4ad640]
cmp eax, edi
je 0x40d486
push eax
call ebx
test eax, eax
je 0x40d486
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ad638]
call ebx
test eax, eax
je 0x40d4a1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d4a3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040440e
mov esp, ebp
pop ebp
ret
Function at 0x402dfc
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 0x402e55
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402c98
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402c98
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e3f
inc ebx
jmp 0x402e28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e5c
lea eax, [ebp - 8]
call fcn.004044e8
ret

Function at 0x402e64
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004044e8
test esi, esi
jne 0x402e9b
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.004045d8
jmp 0x402ebc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c98
mov dword [esp], eax
test esi, esi
je 0x402ebc
cmp dword [ebx], 0
je 0x402ebc
dec esi
jmp 0x402ea3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403544
Capabilities:
Query or enumerate registry value

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

Function at 0x4042e0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x474048], 0
je 0x404341
cmp word [0x47421c], 0xd7b2
jne 0x404309
cmp dword [0x474224], 0
jbe 0x404309
mov eax, 0x474218
call dword [0x474234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47206c
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 0x404368
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x472030], 0
jne 0x40435d
push 0
push 0x472064
push 0x47206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40449c
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.00402a38
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x474049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404464
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4061a8
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 0x40620e
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.00404758
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403108
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4061f8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406215
lea eax, [ebp - 0x10]
call fcn.004044e8
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004049a8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408c31
test al, 0x10
jne 0x408c35
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x408d24
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004049a8
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x408d38
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004049a8
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x408d5a
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40b804
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 0x40b83d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045d8
jmp 0x40b846
mov eax, ebx
mov edx, esi
call fcn.0040453c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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