joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421a5e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00428cb0
mov eax, dword [0x4984c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041b83b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x421aa0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x421bfc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00428ce0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x49a000]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00421e84
mov ecx, dword [esi*4 + 0x49a000]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x421bf5
cmp eax, dword [edi + ecx + 0x24]
jne 0x421bf5
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421bf5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00421e84
add esp, 0x14
test edx, edx
jl 0x421bf5
jg 0x421b6b
test eax, eax
jb 0x421bf5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x421bf5
jl 0x421b85
cmp dword [ebp - 0x1008], eax
ja 0x421bf5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x421ba3
test ebx, ebx
je 0x421bdc
cmp ecx, edi
jae 0x421bdc
mov al, byte [ecx]
cmp al, 0xd
jne 0x421bbd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x421bc9
cmp byte [ecx + 1], 0xa
jne 0x421bc9
inc ecx
jmp 0x421bc9
movzx eax, al
movsx eax, byte [eax + 0x498f60]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x421ba3
cmp edx, ebx
jne 0x421ba3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x421bfa
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a729
leave
ret
Function at 0x425c62
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x49a000]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x425ca2
cmp byte [ebx], 0xa
jne 0x425ca2
or byte [eax + edi + 0x28], 4
jmp 0x425ca7
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x425da5
mov al, byte [edx]
cmp al, 0x1a
je 0x425d87
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x425cd6
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x425cfb
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x425d05
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x425cb8
jmp 0x425da5
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425d82
cmp dword [ebp - 0xc], 0
je 0x425d82
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x49a000]
test byte [eax + edi + 0x28], 0x48
je 0x425d5c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x425d47
mov byte [esi], dl
jmp 0x425d58
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x49a000]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x425da5
cmp byte [ebp - 1], 0xa
jne 0x425d6b
cmp esi, ebx
jne 0x425d6b
mov byte [esi], 0xa
jmp 0x425da4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00421ea2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x425da5
mov byte [esi], 0xd
jmp 0x425da4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x49a000]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425da1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425da5
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x425dae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x49a000]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x425df1
cmp word [esi], dx
jne 0x425df1
or byte [edi + eax + 0x28], 4
jmp 0x425df6
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x425f49
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x425f29
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x425e38
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x425e6e
cmp eax, edx
jae 0x425e7a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x425e10
jmp 0x425f49
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425f25
cmp dword [ebp - 0x14], 0
je 0x425f25
mov eax, dword [ebx*4 + 0x49a000]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x425efd
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x425ec6
mov word [esi], cx
jmp 0x425ef9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x49a000]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x49a000]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x49a000]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x425f49
pop ebx
cmp word [ebp - 4], bx
jne 0x425f0e
cmp esi, dword [ebp + 0xc]
jne 0x425f0e
mov word [esi], bx
jmp 0x425f46
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00421ea2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x425f49
push 0xd
jmp 0x425f42
mov ecx, dword [ebx*4 + 0x49a000]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425f40
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425f49
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x428ab0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x428add
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x428add
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40283c
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 0x402879
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 0x402899
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00403e10
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x4029f8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402a27
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403cc8
jmp 0x402a45
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402980
mov edi, eax
test ebx, ebx
je 0x402a45
cmp dword [esi], 0
je 0x402a45
dec ebx
jmp 0x402a2e
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
imul edx, dword [0x47b040], 0x8088405
inc edx
mov dword [0x47b040], edx
mul edx
mov eax, edx
ret

Function at 0x402dc8
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 0x402e60
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402e40
xor eax, eax
push ebp
push 0x402e39
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 0x402e7c
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 0x402e40
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 0x405218
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 0x4053d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405279
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4053f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4052eb
xor eax, eax
push ebp
push 0x4052e4
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]
call fcn.00405070
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4052cd
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405410
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 0x4052eb
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 0x4053cc
cmp byte [ebp - 0xd], 0
jne 0x40532d
cmp byte [ebp - 0x12], 0
je 0x4053cc
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405346
dec ebx
cmp byte [ebx], 0x2e
je 0x405355
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405345
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4053cc
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405382
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 0x4053cc
cmp byte [ebp - 0xd], 0
je 0x4053cc
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 0x4053cc
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 0x405954
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x4059b0
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x4059a2
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x405997
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x405992
mov eax, 0x64
jmp 0x4059a7
call sub.kernel32.dll_GetLastError
call fcn.00402804
xor eax, eax
jmp 0x405992
mov eax, 0x67
jmp 0x4059a7

Function at 0x4059b8
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x405a13
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_WriteFile
dec eax
pop eax
pop ecx
jne 0x405a05
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x4059fa
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x4059f5
mov eax, 0x65
jmp 0x405a0a
call sub.kernel32.dll_GetLastError
call fcn.00402804
xor eax, eax
jmp 0x4059f5
mov eax, 0x67
jmp 0x405a0a

Function at 0x405a58
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x405a9b
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x405a92
push eax
push 1
push 0
push 0
push dword [ebx]
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x405a92
pop edx
cmp eax, edx
setae al
pop ebx
ret
call fcn.00402814
mov al, 1
jmp 0x405a90
mov eax, 0x67
call fcn.00402804
mov al, 0xff
jmp 0x405a90

Function at 0x40ac14
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 0x40ac4d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403cc8
jmp 0x40ac56
mov eax, ebx
mov edx, esi
call fcn.00403c34
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x4165ec
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 0x4165f2
ret
Function at 0x418d90
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 0x418de1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x418dc8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x418db8
jmp 0x418de1
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x418dc9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429c20
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 - 0xc]
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
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x47b780], 0
sete dl
or al, dl
jne 0x429d60
mov eax, dword [0x47b784]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x47b780]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x429d2f
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x47b780]
call fcn.0040fcc0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x429d27
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x429d27
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x429d27
mov eax, dword [ebp - 0x14]
call fcn.00431f30
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x429d27
push ebp
call fcn.00429bdc
pop ecx
test al, al
jne 0x429d27
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x429ce3
mov eax, dword [ebp - 0x14]
call fcn.004308bc
dec eax
jle 0x429d27
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.00403134
cmp byte [ebp - 1], 0
je 0x429d27
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x429d27
mov edx, dword [ebp - 0x14]
mov eax, dword [0x47b784]
call fcn.00429428
inc edi
dec esi
jne 0x429c76
mov eax, dword [0x47b784]
cmp dword [eax + 8], 0
jle 0x429d47
mov eax, dword [0x47b784]
call fcn.004294b8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x429d60
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00429a44
pop ecx
test al, al
jne 0x429d60
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
Function at 0x42f8c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x42f8f9
je 0x42f953
sub eax, 7
je 0x42f91a
dec eax
je 0x42f944
sub eax, 0x17
je 0x42f9f8
jmp 0x42fa36
add eax, 0xffffff00
sub eax, 9
jb 0x42f9e4
add eax, 0xffffff09
sub eax, 0xb
jb 0x42f9ac
jmp 0x42fa36
mov eax, ebx
call fcn.00441a60
mov edi, eax
test edi, edi
je 0x42fa96
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x42fa9f
jmp 0x42fa96
test byte [ebx + 0x44], 0x20
jne 0x42fa9f
jmp 0x42fa96
mov edx, esi
mov eax, ebx
call fcn.0042cec8
cmp dword [esi + 0xc], 0xffffffff
jne 0x42fa9f
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00407130
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0042b9fc
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0042f7a0
test eax, eax
je 0x42fa9f
mov dword [esi + 0xc], 1
jmp 0x42fa9f
mov edx, esi
mov eax, ebx
call fcn.0042f834
test al, al
je 0x42fa96
cmp dword [esi + 0xc], 0
jne 0x42fa9f
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.00431f30
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x42fa9f
mov eax, ebx
call fcn.0042c564
test al, al
jne 0x42fa9f
jmp 0x42fa96
mov eax, ebx
call fcn.00431f30
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x42fa96
cmp dword [0x4787b4], 0
je 0x42fa96
mov eax, dword [0x4787b4]
cmp ebx, dword [eax + 0x24]
jne 0x42fa96
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x4787b4]
call fcn.0042cdfc
jmp 0x42fa96
mov eax, dword [0x47b748]
cmp byte [eax + 0x20], 0
je 0x42fa96
mov eax, dword [0x47b748]
cmp dword [eax + 0x1c], 0
je 0x42fa96
mov eax, dword [esi]
mov edx, dword [0x47b748]
cmp eax, dword [edx + 0x1c]
jne 0x42fa96
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.004419a4
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.00403134
jmp 0x42fa9f
mov edx, esi
mov eax, ebx
call fcn.0042cec8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ff60
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 + 0x1e8], 0
je 0x42ff7c
cmp dword [esi + 4], 0
je 0x42ffa9
test byte [ebx + 0x45], 1
jne 0x42ff9b
mov eax, ebx
call fcn.0042ee98
test eax, eax
jne 0x42ff9b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4300b9
mov edx, esi
mov eax, ebx
call fcn.0042fbd8
jmp 0x4300b9
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
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 0x4300b2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00431f30
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.0042cdfc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0042ff60
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 + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
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.00431f30
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4300b9
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 0x439d84
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.00403be0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x439dd3
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403e10
pop ebx
mov esp, ebp
pop ebp
ret