joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10329469
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x1039fb98]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x408]
push eax
push 0x20119
xor edi, edi
push edi
push 0x101552d8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x408], edi
mov dword [ebp - 0x41c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10329679
push esi
push 4
pop esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x40c]
push eax
push edi
push 0x10015cbc
push dword [ebp - 0x408]
mov dword [ebp - 0x414], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10329511
cmp dword [ebp - 0x40c], esi
jne 0x10329511
cmp dword [ebp - 0x41c], edi
je 0x10329511
push 0x2000
push 0xff
push 0x103a2550
call fcn.102f835e
add esp, 0xc
jmp 0x1032966c
mov dword [ebp - 0x410], edi
jmp 0x1032951b
xor edi, edi
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x40c]
push eax
push edi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x410]
mov dword [ebp - 0x424], 0xff
push dword [ebp - 0x408]
mov dword [ebp - 0x42c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc dword [ebp - 0x410]
cmp eax, 0xea
je 0x1032965f
cmp eax, edi
jne 0x1032966c
mov ecx, dword [ebp - 0x424]
xor eax, eax
mov word [ebp + ecx*2 - 0x204], ax
lea eax, [ebp - 0x428]
push eax
push 0x101552c0
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call fcn.10329417
test eax, eax
jne 0x1032965f
cmp dword [ebp - 0x40c], esi
jne 0x1032965f
mov edi, 0xffff
cmp dword [ebp - 0x420], edi
ja 0x1032965f
push dword [ebp - 0x428]
lea eax, [ebp - 0x404]
push 0x101552ac
push 0x10018ea4
push 0xffffffffffffffff
push 0xff
push eax
call fcn.102f86da
add esp, 0x18
test eax, eax
jl 0x1032965f
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x40c]
push eax
push 0
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x408]
mov dword [ebp - 0x414], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1032965f
cmp dword [ebp - 0x40c], esi
jne 0x1032965f
cmp dword [ebp - 0x418], edi
ja 0x1032965f
mov edi, dword [ebp - 0x420]
jmp 0x10329657
mov ecx, edi
and ecx, 7
mov eax, edi
mov dl, 1
shl dl, cl
shr eax, 3
lea eax, [eax + 0x103a2550]
or byte [eax], dl
inc edi
cmp edi, dword [ebp - 0x418]
jbe 0x10329640
cmp dword [ebp - 0x410], 0x32
jb 0x10329519
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.102f77a6
leave
ret 4
Function at 0x10329a9e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x100008]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x100000]
mov edi, dword [ebp + 0xc]
lea edx, [eax + edi]
mov ecx, 0x100000
cmp edx, ecx
ja 0x10329aed
cmp eax, ecx
ja 0x10329aed
cmp edi, ecx
ja 0x10329aed
push edi
push dword [ebp + 8]
add eax, esi
push eax
call fcn.102f7ffa
add esp, 0xc
add dword [esi + 0x100000], edi
jmp 0x10329b23
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push esi
push dword [esi + 0x100004]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10329b10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x10329b23
push edi
push dword [ebp + 8]
push esi
call fcn.102f7ffa
add esp, 0xc
mov dword [esi + 0x100000], edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10329d26
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1039fb98]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x103b0d7c]
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [eax + 8]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x210]
push ecx
push 0x100020
call dword [eax]
mov ecx, dword [ebp - 0x210]
test ecx, ecx
je 0x10329d68
call fcn.10329b34
jmp 0x10329d6a
xor eax, eax
mov dword [esi], eax
test eax, eax
jne 0x10329d75
push 8
pop edi
jmp 0x10329dca
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10329dbe
xor edi, edi
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esi]
mov dword [ecx + 0x100004], eax
mov eax, dword [esi]
cmp dword [eax + 0x100004], 0xffffffff
jne 0x10329dd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x10329dd8
mov ecx, dword [esi]
test ecx, ecx
je 0x10329dd8
call fcn.10329cba
and dword [esi], 0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.102f77a6
leave
ret 8

Function at 0x103313af
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x24
push dword [ebp + 8]
push 0
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x10331408
push 0x10155998
lea eax, [ebp - 0x21c]
push 0x74
push eax
call fcn.10161ac8
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x110]
lea edi, [ebp - 0x110]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
leave
ret 4
Function at 0x4017c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x404004]
jne 0x4017ce
repz ret
jmp fcn.00401b99

Function at 0x401090
Capabilities:
Hide graphical window

Disassembly:
mov ebp, esp
push esi
lea eax, [0x4032cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, dword [ebp + 4]
mov dword [0x403183], eax
xor eax, eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x4010bd
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x403183]
mov dword [ebp - 0x48], eax
mov eax, 0x402353
mov dword [ebp - 0x54], eax
mov ecx, str.secondclass
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
push 0
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor ecx, ecx
push ecx
push dword [0x403183]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bananas
push eax
mov eax, str.secondclass
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403328], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403328]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x40117b
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x40116d
mov esp, ebp
ret
Function at 0x403548
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.00404d50
test esi, esi
jne 0x40357e
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.00404e40
jmp 0x40359c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040344c
mov edi, eax
test esi, esi
je 0x40359c
cmp dword [ebx], 0
je 0x40359c
dec esi
jmp 0x403585
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403d1c
Capabilities:
Query or enumerate registry value

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

Function at 0x404bd0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47b04c], 0
je 0x404c31
cmp word [0x47b220], 0xd7b2
jne 0x404bf9
cmp dword [0x47b228], 0
jbe 0x404bf9
mov eax, 0x47b21c
call dword [0x47b238]
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 0x404c58
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46c030], 0
jne 0x404c4d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406378
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 0x4065a8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4063fb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4065a8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4063fb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4065c4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406484
xor eax, eax
push ebp
push 0x40647d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004061b4
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 0x406462
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4065e4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406462
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 0x406484
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 0x40659e
cmp byte [ebp - 0xd], 0
jne 0x4064cb
cmp byte [ebp - 0x12], 0
je 0x40659e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4064e4
dec ebx
cmp byte [ebx], 0x2e
je 0x4064f3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4064e3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40659e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406530
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 0x40659e
cmp byte [ebp - 0xd], 0
je 0x40659e
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 0x40659e
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 0x40a690
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40a6e2
test eax, edx
je 0x40a6e5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40a6a5
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 0x40a6cb
add ecx, 4
js 0x40a6bb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40a6c8
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 0x40a6f1
test edx, edx
jne 0x40a698
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004051e0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40af71
test al, 0x10
je 0x40af75
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40da20
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 0x40da59
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404e40
jmp 0x40da62
mov eax, ebx
mov edx, esi
call fcn.00404da4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40e120
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40df98
mov eax, dword [0x47a268]
cmp byte [eax], 0
je 0x40e19c
mov eax, dword [0x47a078]
call fcn.004036a8
call fcn.004032b8
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.0040b168
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 0x40e1e4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40e1d2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47a020]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47d7f8]
call fcn.0040615c
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 0x40ea9c
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 0x40eb72
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404de8
lea eax, [ebp - 4]
call fcn.00405238
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004051e0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40eb5c
mov eax, ebx
call fcn.004030ec
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40eb55
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.004051e0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40eb3f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40eb84
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40eb3f
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 0x40eb5c
mov eax, dword [ebp - 0x10]
call fcn.00403108
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eb79
lea eax, [ebp - 4]
call fcn.00404d50
ret

Function at 0x420c88
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x481b8c
cmp dword [edi], 0
jne 0x420d04
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x481b88]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46d0c8
mov ecx, 2
call fcn.0040334c
mov edx, 0x420c60
lea eax, [esi + 5]
call fcn.00420c80
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00420c80
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 0x420cd9
mov dword [0x481b88], 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 0x421808
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.004051e0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x421860
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x47a398]
mov dl, 1
mov eax, dword [0x421314]
call fcn.0040e2ec
call fcn.00404798
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042141c
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 0x422a90
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 0x422a96
ret
Function at 0x431d34
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
test bl, bl
je 0x431d55
test edi, 0x40000
je 0x431d6f
test bl, bl
jne 0x431df0
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x431df0
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x431da2
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x431db7
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x431dc6
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x431dd7
cmp byte [esp + 2], 0
je 0x431df0
cmp byte [esp + 2], 0
je 0x431de8
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x431df0
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x432094
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x4320ba
mov eax, esp
push eax
push 0x43205c
call sub.user32.dll_EnumWindows
jmp 0x4320cd
mov eax, esp
push eax
push 0x43203c
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x432158
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4321ac]
test si, 4
je 0x43216d
or bl, 1
test si, 8
je 0x432177
or bl, 4
test si, 1
je 0x432181
or bl, 8
test si, 2
je 0x43218b
or bl, 0x10
test si, 0x10
je 0x432195
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4321a4
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4321b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4321ec]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4321ca
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4321d9
or bl, 4
test esi, 0x20000000
je 0x4321e4
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x43a264
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x43a276
add esp, 0xfffffff0
call fcn.00404248
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fbc8
mov eax, dword [0x47a028]
mov dword [eax + 4], ebx
mov dword [eax], 0x43a608
mov eax, dword [0x47a034]
mov dword [eax + 4], ebx
mov dword [eax], 0x43a614
mov eax, ebx
call fcn.0043a620
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x417978]
call fcn.00403ef4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x417978]
call fcn.00403ef4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x417978]
call fcn.00403ef4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x417978]
call fcn.00403ef4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x417978]
call fcn.00403ef4
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x435abc
push eax
push 0
push 0
mov eax, dword [0x47a188]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x421d1c]
call fcn.00423610
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x421d1c]
call fcn.00423610
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x421d1c]
call fcn.00423610
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0043aa50
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43a920
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43a920
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43a920
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43a3b3
call fcn.004042a0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret