joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459a6c
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x459bd7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00459064
xor eax, eax
push ebp
push 0x459bba
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x459ad1
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x459ad1
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x459ba4
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x459ae4
call fcn.00403f60
jmp 0x459bc1
lea eax, [ebp - 0x10]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
test eax, eax
jne 0x459b05
cmp ebx, dword [ebp - 0x10]
jle 0x459b05
mov ebx, dword [ebp - 0x10]
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x459ba4
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x459ba4
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040391c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x459ba4
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.0040bfbc
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, 0x459bf0
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea eax, [ebp - 0x28]
push eax
push 2
mov ecx, dword [0x47ddb8]
mov dl, 1
mov eax, dword [0x457ecc]
call fcn.0040c8f0
call fcn.00403eb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459bc1
mov eax, dword [ebp - 4]
call fcn.00459070
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459bde
lea eax, [ebp - 0x2c]
call fcn.00404524
ret
Function at 0x46b228
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x46b230
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x46b3cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 8]
mov edx, 0x46b3e4
mov eax, esi
call fcn.004690b0
mov edx, dword [ebp - 8]
lea eax, [ebx + 0xc]
call fcn.00404578
lea ecx, [ebp - 0xc]
mov edx, 0x46b3f8
mov eax, esi
call fcn.004690b0
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0x28]
call fcn.00404578
lea ecx, [ebp - 0x10]
mov edx, 0x46b410
mov eax, esi
call fcn.004690b0
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x10]
call fcn.00404578
lea ecx, [ebp - 0x14]
mov edx, 0x46b42c
mov eax, esi
call fcn.004690b0
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x14]
call fcn.00404578
lea ecx, [ebp - 0x18]
mov edx, 0x46b448
mov eax, esi
call fcn.004690b0
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x24]
call fcn.00404578
lea ecx, [ebp - 0x20]
mov edx, 0x46b460
mov eax, esi
call fcn.004690b0
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.004088e0
mov eax, dword [ebp - 0x1c]
or edx, 0xffffffff
call fcn.00408cd4
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x24]
mov edx, 0x46b478
mov eax, esi
call fcn.004690b0
mov eax, dword [ebp - 0x24]
call fcn.004627d0
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x28]
mov edx, 0x46b488
mov eax, esi
call fcn.004690b0
mov eax, dword [ebp - 0x28]
call fcn.004627d0
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 4]
mov edx, 0x46b4a0
mov eax, esi
call fcn.004690b0
mov eax, dword [ebp - 4]
call fcn.00462384
test al, al
je 0x46b383
mov eax, dword [ebp - 4]
call fcn.00408c98
mov edi, eax
test edi, edi
jl 0x46b379
call fcn.0040a978
mov dword [ebp - 0x2c], edi
fild dword [ebp - 0x2c]
fdiv dword [0x46b4a8]
faddp st(1)
fstp qword [ebx + 0x38]
wait
jmp 0x46b38f
xor eax, eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
jmp 0x46b38f
mov eax, dword [ebp - 4]
call fcn.004627d0
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x46b4b4
mov eax, esi
call fcn.004690b0
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 0x48]
call fcn.00404578
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b3d3
lea eax, [ebp - 0x30]
call fcn.00404524
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.00404548
ret

Function at 0x47261c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x472676
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0047260c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00461284
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00460e84
mov edx, dword [esi + 0xc]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47267d
lea eax, [ebp - 4]
call fcn.00404524
ret
Function at 0x4764a4
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00407360
ret

Function at 0x4774cc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049d4
mov eax, dword [ebp - 8]
call fcn.004049d4
xor eax, eax
push ebp
push 0x477636
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00409364
mov eax, dword [ebp - 0x14]
call fcn.00409088
test al, al
jne 0x47752b
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00409364
mov eax, dword [ebp - 0x18]
call fcn.004090ac
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.004049e4
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x477607
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x477568
cmp dword [ebp - 0xc], 0xffffffff
jne 0x47759e
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.004049e4
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x477597
cmp dword [ebp - 0xc], 0xffffffff
jne 0x47759e
call fcn.00403f60
jmp 0x47760e
test bl, bl
je 0x4775b3
push 2
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
jmp 0x4775c2
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
lea eax, [ebp - 8]
mov edx, 0x47764c
call fcn.004047ec
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.004047e4
push eax
lea eax, [ebp - 8]
call fcn.00404a3c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47760e
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47763d
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404548
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404548
ret
Function at 0x401750
Capabilities:
Encode data using xor

Disassembly:
inc eax
add byte [esi + 0x4b], bl
inc eax
add bh, dh
adc byte [eax], al
rcl byte [edx]
inc eax
inc edx
cmp eax, 0xd3004012
adc dword [eax], eax
sub dword [edx], edx
inc eax
add byte [esi + 0x41], dh
inc eax
add byte [ebp - 0x20ff1e3e], al
scasb al, byte es:[edi]
sub eax, 0x4014f300
add byte [esi], dl
adc eax, 0x56000040
add dword [ebx], ebx
sbb ebx, dword [ebx]
sbb eax, dword [edx]
sbb ebx, dword [ebx]
sbb ebx, dword [ebx]
pop esi
sbb ebx, dword [ebx]
add ebx, dword [ebx]
sbb eax, dword [eax + 0x71b061b]
mov esi, 0x1b1b1b93
cmp al, 0x1b
sbb ebx, dword [ebx]
or byte [ecx], cl
or ch, byte [edx + 0x2b0d0c1b]
sbb ecx, dword [edi]
ja fcn.00401750
adc byte [ebx], bl
adc dword [edx], edx
adc ebx, dword [ebx]
adc al, 0x15
push ss
mov ebx, 0x711a1918
lahf
nop
nop
nop
nop
jmp 0x4016da
push ebp
mov ebp, esp
mov esi, dword [ecx + 8]
mov bl, 0xd
enter 0x40c0, 0
frstor dword [eax]
shl ebp, 0x68
je 0x401735
or al, 0
push ecx
inc dword [edi + eax*4]
inc eax
add byte [ecx + 0xc802ac], ah
add esp, 0xffffffa4
push 0x500f4ac0
push 0x405354
call dword [0x402a64]
xor dword [eax + ecx], 0x6a
add dword [esp + edi*2 + 0x70], edx
jb 0x401771
pause
pop ebp
mov ebp, esp
sub esp, 0x9b4cb8
mov eax, 0xa1009b4c
js 0x40179e
dec eax
invalid

Function at 0x405e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [edx + 0x51]
mov eax, dword [ebp + 0xc]
push ebx
and eax, 0x8556e25d
fist dword [edi + 0x7d]
sbb byte [ebx + 1], bh
xor word [edx], 0
jne 0x405e74
and di, word [eax + 2]
add byte [esi + eax + 0x7b], dh
add eax, 0x47
cmp ebp, ebp
sub eax, dword [ebp + 0xc]
add eax, 2
sar eax, 1
mov dword [ebp + 0x10], eax
lea eax, [ebx*4 + 0xb40004]
push eax
call dword [0x33c177]
mov edi, eax
mov eax, dword [ebp + 0x10]
lea esi, [eax + eax*2 + 1]
push esi
mov dword [0x5c15fffc], ebp
rol dword [eax], 0x83
invalid

Function at 0x407ef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cli
add bl, al
ret 0xbac1
push ebp
mov edi, dword [ecx + 0x6e]
daa
sbb al, 0x79
dec ebp
sbb byte [ebx - 0x74afebec], cl
inc ebp
adc byte [edi + 0x4d839301], cl
jnp 0x407e9a
ficom dword [ebp + 8]
mov edx, dword [ecx + 0x52]
call 0x789d6ef0
sub ecx, 0x1c
mov ebx, 0x909090c3
nop
nop
nop
nop
nop
mov word [ebp - 0x75], ss
in al, dx
or ebp, esp
adc al, 0x81
jge 0x407f09
dec edi
mov eax, dword [0x1045c707]
dec esi
push edx
xchg edx, eax
mov ebx, 0xdc0845dd
sbb eax, 0xbec230
mov esp, dword [edx + 0x388b1f18]
and al, dl
xor eax, edx
mov edx, 0x5a6ae0a9
cld
mov dword [ecx], esi
ret 0xbe
test ah, 5
je 0x407f1e
jp 0x407f87
fld qword [ebp + 8]
add eax, 0x85ddde0
invalid
sbb cl, al
inc eax
add ch, bl
pop ebp
hlt
Function at 0x40323c
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.00404970
test esi, esi
jne 0x403272
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.00404a60
jmp 0x403290
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403140
mov edi, eax
test esi, esi
je 0x403290
cmp dword [ebx], 0
je 0x403290
dec esi
jmp 0x403279
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40395c
Capabilities:
Query or enumerate registry value

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

Function at 0x4047f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x459048], 0
je 0x404851
cmp word [0x45921c], 0xd7b2
jne 0x404819
cmp dword [0x459224], 0
jbe 0x404819
mov eax, 0x459218
call dword [0x459234]
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 0x404878
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45702c], 0
jne 0x40486d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408374
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4083c6
test eax, edx
je 0x4083c9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408389
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 0x4083af
add ecx, 4
js 0x40839f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4083ac
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 0x4083d5
test edx, edx
jne 0x40837c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40b59c
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b5d5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a60
jmp 0x40b5de
mov eax, ebx
mov edx, esi
call fcn.004049c4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bc9c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bb14
mov eax, dword [0x4589ec]
cmp byte [eax], 0
je 0x40bd18
mov eax, dword [0x45881c]
call fcn.00403324
call fcn.00402fac
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.00408d1c
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 0x40bd60
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bd4e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4587c4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45b7f4]
call fcn.00405ac8
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 0x40c5c4
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 0x40c69a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404a08
lea eax, [ebp - 4]
call fcn.00404e58
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404e00
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c684
mov eax, ebx
call fcn.00402e50
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c67d
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.00404e00
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c667
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c6ac
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c667
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 0x40c684
mov eax, dword [ebp - 0x10]
call fcn.00402e6c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6a1
lea eax, [ebp - 4]
call fcn.00404970
ret

Function at 0x41b1d4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45d9e8
cmp dword [edi], 0
jne 0x41b250
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45d9e4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x457ad4
mov ecx, 2
call fcn.00403040
mov edx, 0x41b1ac
lea eax, [esi + 5]
call fcn.0041b1cc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b1cc
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 0x41b225
mov dword [0x45d9e4], 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 0x41d794
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.00404e00
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41d7ec
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x458b04]
mov dl, 1
mov eax, dword [0x41d2a0]
call fcn.0040be5c
call fcn.004043b8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d3a8
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 0x41e648
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 0x41e64e
ret
Function at 0x4288e0
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.00404970
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42892e
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.00404be0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42da08
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42db3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x41d300]
call fcn.0041d3d0
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x42db11
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041d470
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404be0
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x42db50
call fcn.00404c88
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041d4d4
lea ecx, [ebp - 4]
mov edx, 0x42db8c
mov eax, dword [ebp - 0xc]
call fcn.0041d71c
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040d7e4
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x42daf4
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x42db98
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4583fc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dafb
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x42dbe8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x42dc2f
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42dc12
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42dc23
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x42dc2f
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x432720
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 [0x45dc40], 0
je 0x432869
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x458990]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x432869
mov eax, dword [0x45dc44]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x45dc40]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x432838
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x45dc40]
call fcn.00414268
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x432830
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x432830
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x432830
mov eax, dword [ebp - 0x14]
call fcn.0043cdd8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x432830
push ebp
call fcn.004326dc
pop ecx
test al, al
jne 0x432830
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403d58
test al, al
je 0x432830
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, 0xffbc
call fcn.00403d58
cmp byte [ebp - 1], 0
je 0x432830
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x432830
mov edx, dword [ebp - 0x14]
mov eax, dword [0x45dc44]
call fcn.00431e4c
inc edi
dec ebx
jne 0x432785
mov eax, dword [0x45dc44]
cmp dword [eax + 8], 0
jle 0x432850
mov eax, dword [0x45dc44]
call fcn.00431f04
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x432869
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00432540
pop ecx
test al, al
jne 0x432869
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