joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54849c
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x5484b1
add esp, 0xfffffff0
call fcn.004043cc
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x20]
call fcn.00547dd4
mov dword [ebx + 0x10], eax
cmp dword [ebx + 0x10], 0
jne 0x5484e6
cmp byte [ebp + 0x1c], 0
je 0x5484df
mov dword [ebx + 0x10], 0x1bb
jmp 0x5484e6
mov dword [ebx + 0x10], 0x50
lea eax, [ebx + 4]
mov edx, dword [ebp - 8]
call fcn.00404ef8
mov al, byte [ebp + 0x1c]
mov byte [ebx + 0x14], al
lea eax, [ebx + 8]
mov edx, dword [ebp + 0x18]
call fcn.00404ef8
lea eax, [ebx + 0xc]
mov edx, dword [ebp + 0x14]
call fcn.00404ef8
lea eax, [ebx + 0x1c]
mov edx, 0x548574
call fcn.00404ef8
test esi, esi
jne 0x548524
mov esi, dword [0x55d5a0]
test edi, edi
jne 0x54852e
mov edi, dword [0x55d5a4]
cmp dword [ebp + 8], 0
jne 0x54853c
mov eax, dword [0x55d5a8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, edi
mov edx, esi
mov eax, ebx
mov esi, dword [eax]
call dword [esi]
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x548561
call fcn.00404424
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0x1c
Function at 0x4025ac
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4025ba
call dword [0x438014]
or eax, eax
je 0x4025bb
ret
mov al, 1
jmp fcn.0040262c

Function at 0x4025c4
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4025d2
call dword [0x438018]
or eax, eax
jne 0x4025d3
ret
mov al, 2
jmp fcn.0040262c

Function at 0x4025dc
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [eax]
test ecx, ecx
je 0x402614
test edx, edx
je 0x4025fe
push eax
mov eax, ecx
call dword [0x43801c]
pop ecx
or eax, eax
je 0x40260d
mov dword [ecx], eax
ret
mov al, 2
jmp fcn.0040262c
mov dword [eax], edx
mov eax, ecx
call dword [0x438018]
or eax, eax
jne 0x4025f7
ret
mov al, 1
jmp fcn.0040262c
test edx, edx
je 0x402628
push eax
mov eax, edx
call dword [0x438014]
pop ecx
or eax, eax
je 0x40260d
mov dword [ecx], eax
ret

Function at 0x402670
Capabilities:
Terminate process

Disassembly:
push eax
push edx
push ecx
call fcn.00405140
cmp dword [eax + 4], 0
pop ecx
pop edx
pop eax
jne 0x402685
ret
xor eax, eax
jmp fcn.0040262c

Function at 0x4026a0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4026dd
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4026fd
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.004037ec
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x4029d4
Capabilities:
Query or enumerate registry value

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

Function at 0x402bd4
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x402bee
mov ecx, eax
mov ecx, dword [ecx]
cmp ecx, edx
je 0x402bee
mov ecx, dword [ecx - 0x18]
test ecx, ecx
jne 0x402bda
mov al, 0xa
jmp fcn.0040262c
ret

Function at 0x402c20
Capabilities:
Terminate process

Disassembly:
cmp dword [0x439018], 0
je 0x402767
call dword [0x439018]
mov eax, 0xd2
jmp fcn.004035b4
push eax
push ecx
mov eax, dword [eax]
call fcn.00402bf0
pop ecx
pop eax
je 0x402c2f
jmp ebx
pop ecx
jmp 0x402758
Function at 0x402c38
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, edx
mov eax, dword [eax]
call fcn.00402bf0
mov eax, ebx
pop ebx
jne 0x402c4d
pop ecx
jmp 0x402758
ret

Function at 0x403490
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x439480
mov esi, 0x439030
mov edi, 0x439034
cmp byte [ebx + 0x24], 0
jne 0x4034bf
cmp dword [edi], 0
je 0x4034bf
mov edx, dword [edi]
mov eax, edx
xor edx, edx
mov dword [edi], edx
mov ebp, eax
call ebp
cmp dword [edi], 0
jne 0x4034ae
cmp dword [0x439038], 0
je 0x403506
call fcn.0040340c
cmp byte [0x439040], 0
je 0x4034ec
mov edx, 0x438020
mov eax, 0x439214
call fcn.00404ca8
call fcn.00404c2b
jmp 0x4034ff
push 0
push 0x438040
push 0x438020
push 0
call sub.user32.dll_MessageBoxA
xor eax, eax
mov dword [0x439038], eax
cmp byte [ebx + 0x24], 2
jne 0x403516
cmp dword [esi], 0
jne 0x403516
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.004032c4
cmp byte [ebx + 0x24], 1
jbe 0x403526
cmp dword [esi], 0
je 0x403543
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x403543
call fcn.004045e0
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 8]
cmp edx, dword [eax + 4]
je 0x403543
push edx
call sub.kernel32.dll_FreeLibrary
call fcn.0040329c
cmp byte [ebx + 0x24], 1
jne 0x403551
call dword [ebx + 0x28]
cmp byte [ebx + 0x24], 0
je 0x40355c
call fcn.0040345c
cmp dword [ebx], 0
jne 0x403569
mov eax, dword [esi]
push eax
call sub.kernel32.dll_ExitProcess
mov eax, dword [ebx]
push esi
mov esi, eax
mov edi, ebx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x403506

Function at 0x403c4c
Capabilities:
Terminate process

Disassembly:
test edx, edx
je fcn.00403c10
mov ecx, dword [edx - 4]
shr ecx, 1
je fcn.00403c10
push ecx
push edx
push eax
call sub.oleaut32.dll_SysReAllocStringLen
test eax, eax
je 0x403c08
ret

Function at 0x403cf4
Capabilities:
Terminate process

Disassembly:
mov al, 1
jmp fcn.0040262c
test ecx, ecx
je fcn.00403c10
push ecx
push edx
push eax
call sub.oleaut32.dll_SysReAllocStringLen
test eax, eax
je 0x403c08
ret

Function at 0x403d4c
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
xor ecx, ecx
cmp al, 0xa
je 0x403d86
cmp al, 0xb
je 0x403d86
cmp al, 0xc
je 0x403d90
cmp al, 0xd
je 0x403da3
cmp al, 0xe
je 0x403dc1
cmp al, 0xf
je 0x403d86
mov al, 2
pop edi
pop esi
pop ebx
jmp fcn.0040262c
mov dword [ebx], ecx
add ebx, 4
dec edi
jg 0x403d86
jmp 0x403dd5
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
add ebx, 0x10
dec edi
jg 0x403d90
jmp 0x403dd5
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call 0x403d4c
dec edi
jg 0x403da6
pop ebp
jmp 0x403dd5
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.00403d20
dec edi
jg 0x403dc4
pop ebp
pop edi
pop esi
pop ebx
ret
mov ecx, 1
jmp 0x403d4c
Function at 0x403ddc
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
xor ecx, ecx
cmp al, 0xa
je 0x403d86
cmp al, 0xb
je 0x403d86
cmp al, 0xc
je 0x403d90
cmp al, 0xd
je 0x403da3
cmp al, 0xe
je 0x403dc1
cmp al, 0xf
je 0x403d86
mov al, 2
pop edi
pop esi
pop ebx
jmp fcn.0040262c
mov dword [ebx], ecx
add ebx, 4
dec edi
jg 0x403d86
jmp 0x403dd5
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
add ebx, 0x10
dec edi
jg 0x403d90
jmp 0x403dd5
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call 0x403d4c
dec edi
jg 0x403da6
pop ebp
jmp 0x403dd5
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.00403d20
dec edi
jg 0x403dc4
pop ebp
pop edi
pop esi
pop ebx
ret
mov ecx, 1
jmp 0x403d4c

Function at 0x403e14
Capabilities:
Terminate process

Disassembly:
push eax
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
cmp al, 0xa
je 0x403e4e
cmp al, 0xb
je 0x403e65
cmp al, 0xc
je 0x403e7c
cmp al, 0xd
je 0x403e8b
cmp al, 0xe
je 0x403ea9
cmp al, 0xf
je 0x403ebf
pop edi
pop esi
pop ebx
pop eax
mov al, 2
jmp fcn.0040262c
cmp ecx, 1
mov eax, ebx
jg 0x403e5c
call fcn.004035c0
jmp 0x403ecc
mov edx, ecx
call fcn.004035e4
jmp 0x403ecc
cmp ecx, 1
mov eax, ebx
jg 0x403e73
call fcn.00403c10
jmp 0x403ecc
mov edx, ecx
call fcn.00403c28
jmp 0x403ecc
mov eax, ebx
add ebx, 0x10
call fcn.004042e0
dec edi
jg 0x403e7c
jmp 0x403ecc
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call fcn.00403e14
dec edi
jg 0x403e8e
pop ebp
jmp 0x403ecc
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.00403de8
dec edi
jg 0x403eac
pop ebp
jmp 0x403ecc
mov eax, ebx
add ebx, 4
call fcn.00404694
dec edi
jg 0x403ebf
pop edi
pop esi
pop ebx
pop eax
ret

Function at 0x403ed4
Capabilities:
Terminate process

Disassembly:
mov ecx, 1
jmp fcn.00403e14

Function at 0x40407c
Capabilities:
Terminate process

Disassembly:
mov al, 0x10
jmp fcn.0040262c
cmp eax, edx
je 0x4040ec
cmp word [eax], 8
jb 0x4040a1
push eax
push edx
cmp word [eax], 0x100
je 0x404097
push eax
call sub.oleaut32.dll_VariantClear
jmp 0x40409f
add eax, 8
call fcn.004035c0
pop edx
pop eax
cmp word [edx], 8
jae 0x4040b8
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
ret
cmp word [edx], 0x100
jne 0x4040d8
mov edx, dword [edx + 8]
or edx, edx
je 0x4040cf
mov ecx, dword [edx - 8]
inc ecx
jle 0x4040cf
mov dword [edx - 8], ecx
mov word [eax], pe_nt_image_headers32
mov dword [eax + 8], edx
ret
mov word [eax], 0
push edx
push eax
call sub.oleaut32.dll_VariantCopyInd
or eax, eax
jne 0x404040
ret
Function at 0x404334
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 0xf003f
push 0
push 0x4044d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4043e4
xor eax, eax
push ebp
push 0x4043dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
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 0x4043c6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4044f0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4043e4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x4044c5
cmp byte [ebp - 0xd], 0
jne 0x404426
cmp byte [ebp - 0x12], 0
je 0x4044c5
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40443f
dec ebx
cmp byte [ebx], 0x2e
je 0x40444e
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40443e
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4044c5
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40447b
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4044c5
cmp byte [ebp - 0xd], 0
je 0x4044c5
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4044c5
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x40759c
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 0x4075d5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004036a4
jmp 0x4075de
mov eax, ebx
mov edx, esi
call fcn.00403658
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4075e8
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 0x407609
mov al, byte [esp]
jmp 0x40760b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d024
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop edi
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
clc
invalid
dec dword [edi - 0x3a]
test ecx, esp
clc
invalid
call dword [edx - 0x3a]
test edx, esp
clc
invalid
dec dword [ecx - 0x3a]
test ebx, esp
clc
invalid
call [eax - 0x3a]
test esp, esp
clc
invalid
call [esi - 0x3a]
test ebp, esp
clc
invalid
dec dword [ecx - 0x3a]
test esi, esp
clc
invalid
invalid
cmp eax, 0xffeb17e8
invalid
call 0x8d7ac755
test esp, edx
clc
invalid

Function at 0x410f78
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 0x410f7e
ret

Function at 0x413218
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 0x413269
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x413250
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jne 0x413240
jmp 0x413269
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
jne 0x413251
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41cd10
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x114], 0
je 0x41cd2c
cmp dword [esi + 4], 0
je 0x41cd53
mov eax, ebx
call fcn.0041bf44
test eax, eax
jne 0x41cd45
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x41ce63
mov edx, esi
mov eax, ebx
call fcn.0041c9b4
jmp 0x41ce63
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x41ce5c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0041e310
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0041ae4c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0041cd10
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0041e310
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ce63
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41fdf8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004035c0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x41fe59
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x41fe59
cmp byte [ebp - 0x102], 0
je 0x41fe59
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004037ec
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4211e8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x28], 0
je 0x421269
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42121a
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42122c
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x421238
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.00421074
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42125d
push ebp
mov eax, dword [ebp - 4]
call fcn.00421158
pop ecx
mov ebx, eax
cmp bl, 2
je 0x421238
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x423060
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4396e4
cmp dword [edi], 0
jne 0x4230dc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4396e0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x438700
mov ecx, 2
call fcn.00402718
mov edx, 0x423038
lea eax, [esi + 5]
call fcn.00423058
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00423058
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 0x4230b1
mov dword [0x4396e0], 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 0x423200
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x423250]
test si, 4
je 0x423214
or bl, 1
test si, 8
je 0x42321e
or bl, 4
test si, 1
je 0x423228
or bl, 8
test si, 2
je 0x423232
or bl, 0x10
test si, 0x10
je 0x42323c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42324b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x427688
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42782d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40a5d0]
call fcn.00402b34
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004035c0
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x427803
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0041f598
test al, al
je 0x4277f6
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x42783c
lea eax, [ebp - 0x254]
call fcn.0040742c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4277f6
xor eax, eax
push ebp
push 0x4277ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x427874
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4277d8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004037ec
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x4277d8
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004037ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4277f6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4276f9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040d024
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427834
lea eax, [ebp - 0x260]
call fcn.004035c0
ret

Function at 0x427aa8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4396b8]
cmp byte [eax + 0x85], 0
jne 0x427b19
cmp dword [0x4396f0], 0
jne 0x427ada
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x427a64
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4396f0], eax
cmp dword [0x4396ec], 0
jne 0x427af5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4396ec], eax
cmp dword [0x4396f4], 0
jne 0x427b19
push esp
push 0
push 0
push 0x427a08
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4396f4], eax
pop edx
ret