joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dfc10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x60bb88]
xor edx, edx
cmp eax, edx
jne 0x4dfc36
xor eax, eax
mov byte [eax + 0x60ba88], al
inc eax
cmp eax, 0x100
jl 0x4dfc1e
mov dword [0x60bb88], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x60ba88
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4dfcc7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4dfc9a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4dfc68
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4dfcd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4dfd23
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4dfd0a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e66d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x519eae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004e6ff0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x56e8ec
call fcn.00509655
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4e6763
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00509655
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4e675c
push 0
mov ecx, eax
call fcn.004dd840
mov dword [esi + 0xc], eax
jmp 0x4e6765
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4e6765
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4f7d26
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4f7d46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f6a7a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4f7d69
test byte [esp + 8], 2
je 0x4f7d69
call fcn.004f6aed
mov dword [eax], 0xd
call fcn.004f6af6
mov dword [eax], 5
jmp 0x4f7d42
xor eax, eax
ret

Function at 0x50bd1f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x50bd57
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00509d6f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00509d47
jmp 0x50bd63
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x50d40d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x50d44f
call fcn.00513193
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x50d44f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x50d446
xor eax, eax
jmp 0x50d457
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0050d45d
pop edi
pop esi
pop ebx
ret 4

Function at 0x5136c3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5136f1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x51370f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00513629
jmp 0x51370f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x51370f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00513629
test edi, edi
mov eax, edi
jne 0x5136f9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403470
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004063e0
test esi, esi
jne 0x4034a8
push 0x105
lea eax, [esp + 4]
push eax
push 0
call fcn.004013dc
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040651c
jmp 0x4034c6
call fcn.004013c4
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004033b4
mov edi, eax
test esi, esi
je 0x4034c6
cmp dword [ebx], 0
je 0x4034c6
dec esi
jmp 0x4034af
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403cb4
Capabilities:
Clear file content

Disassembly:
movzx edx, word [eax + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x403cd2
push dword [eax]
call fcn.00401354
dec eax
je 0x403cdc
jmp fcn.00403288
mov eax, 0x67
jmp fcn.00403278
ret

Function at 0x40412c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x520024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4041c4
push 0x80000002
call fcn.00401434
test eax, eax
jne 0x4041a4
xor eax, eax
push ebp
push 0x40419d
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 0x4041fc
mov eax, dword [ebp - 4]
push eax
call fcn.0040143c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4041a4
mov eax, dword [ebp - 4]
push eax
call fcn.0040142c
ret
movzx eax, word [0x520024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x520024], ax
mov esp, ebp
pop ebp
ret

Function at 0x405398
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x528054], 0
je 0x4053f9
cmp word [0x528330], 0xd7b2
jne 0x4053c1
cmp dword [0x528338], 0
jbe 0x4053c1
mov eax, 0x52832c
call dword [0x528348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call fcn.00401334
push eax
call fcn.0040136c
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405424
push 0xfffffffffffffff5
call fcn.00401334
push eax
call fcn.0040136c
pop edx
ret
cmp byte [0x520030], 0
jne 0x405415
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call fcn.004013a4
pop edx
ret
Function at 0x405428
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, 0x52aaec
mov edi, 0x528050
cmp byte [esi + 0x28], 0
jne 0x405450
cmp dword [edi], 0
je 0x405450
mov eax, dword [edi]
mov ebx, eax
xor eax, eax
mov dword [edi], eax
call ebx
cmp dword [edi], 0
jne 0x405441
cmp dword [0x520004], 0
je 0x40546a
call fcn.004052fc
call fcn.00405398
xor eax, eax
mov dword [0x520004], eax
cmp byte [esi + 0x28], 2
jne 0x40547e
cmp dword [section..data], 0
jne 0x40547e
xor eax, eax
mov dword [esi + 0xc], eax
call fcn.004031b4
mov ebx, eax
test ebx, ebx
je 0x40549b
mov eax, ebx
call fcn.00404364
call fcn.004031b4
mov ebx, eax
test ebx, ebx
jne 0x405489
call fcn.004050b0
cmp byte [esi + 0x28], 1
jbe 0x4054af
cmp dword [section..data], 0
je 0x4054d5
mov ebp, dword [esi + 0x10]
test ebp, ebp
je 0x4054d5
mov eax, ebp
call fcn.004082c0
mov eax, dword [esi + 0x10]
mov edi, dword [eax + 0x10]
mov eax, dword [esi + 0x10]
cmp edi, dword [eax + 4]
je 0x4054d5
test edi, edi
je 0x4054d5
push edi
call fcn.004013bc
call fcn.00405088
cmp byte [esi + 0x28], 1
jne 0x4054e3
call dword [esi + 0x24]
cmp byte [esi + 0x28], 0
je 0x4054ee
call fcn.00405368
cmp dword [esi], 0
jne 0x40550d
cmp dword [0x528030], 0
je 0x405502
call dword [0x528030]
mov eax, dword [section..data]
push eax
call fcn.0040139c
mov eax, dword [esi]
push esi
mov edi, esi
mov esi, eax
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x40546a

Function at 0x405598
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x520038], 0
je 0x4055be
mov edx, esi
mov eax, ebx
call dword [0x520038]
jmp 0x4055cd
mov eax, 8
call fcn.004030f0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x528055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405560
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call fcn.0040138c
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x40a9ec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x52ab30
push 0xa
push 0x40aa80
mov eax, dword [0x52ab20]
push eax
call fcn.00408f44
mov ebx, eax
test ebx, ebx
jne 0x40aa10
call fcn.00415c64
push ebx
mov eax, dword [0x52ab20]
push eax
call fcn.00409180
mov ebx, eax
test ebx, ebx
jne 0x40aa27
call fcn.00415c64
push ebx
call fcn.00409188
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40aa39
call fcn.00415c64
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x52ab34], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x52ab38], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x52ab3c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x52ab40], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x52ab44], ecx
add edx, dword [eax + 0x14]
mov dword [0x52ab48], edx
pop esi
pop ebx
ret

Function at 0x40c514
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40c5bd
test eax, edx
je 0x40c5c0
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40c53d
push edx
mov edx, eax
mov eax, esp
call fcn.004065fc
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40c553
push eax
lea eax, [esp + 8]
call fcn.004065fc
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40c562
movzx eax, word [eax]
sub eax, ecx
jmp 0x40c589
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40c5a3
add ecx, 4
js 0x40c57a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40c5a0
push eax
mov eax, ecx
mov edx, 2
call fcn.00405638
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40c587
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40c589
xor eax, eax
ret
test eax, eax
je 0x40c5d0
test edx, edx
jne 0x40c524
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0040646c
push eax
call fcn.00408ff4
cmp eax, 0xffffffff
je 0x40d9ee
test al, 0x10
sete al
pop esi
pop ebx
ret
call fcn.0040900c
mov ebx, eax
cmp ebx, 2
je 0x40da0f
cmp ebx, 3
je 0x40da0f
cmp ebx, 0x7b
je 0x40da0f
mov eax, esi
call fcn.0040d990
test al, al
jne 0x40da13
xor eax, eax
jmp 0x40da15
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040646c
push eax
call fcn.00408ff4
cmp eax, 0xffffffff
je 0x40da31
test al, 0x10
jne 0x40da35
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4132fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call fcn.0040901c
test eax, eax
jle 0x413335
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040651c
jmp 0x41333e
mov eax, ebx
mov edx, esi
call fcn.004063e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x413348
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call fcn.0040901c
test eax, eax
jle 0x41336a
movzx eax, word [esp]
jmp 0x41336c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x413ad0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.00413908
mov eax, dword [0x5279a8]
cmp byte [eax], 0
je 0x413b62
mov eax, dword [0x527508]
call fcn.004038e4
call fcn.00403258
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call fcn.004095a0
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.0040df84
push eax
lea eax, [esp + 0x890]
push eax
push 0xfffffffffffffff4
call fcn.004090c0
push eax
call fcn.00409280
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x413bb0
push 0xfffffffffffffff4
call fcn.004090c0
push eax
call fcn.00409280
jmp 0x413b9b
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x527458]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x52ab20]
call fcn.00407c3c
push eax
call fcn.00409954
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call fcn.0040996c
add esp, 0x1084
ret

Function at 0x4147f0
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 0x4148c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406434
lea eax, [ebp - 4]
call fcn.00406cf8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040646c
push eax
call fcn.004092a0
mov ebx, eax
test ebx, ebx
je 0x4148b0
mov eax, ebx
call fcn.004030f0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4148a9
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.0040646c
push eax
call fcn.00409298
test eax, eax
je 0x414893
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4148d8
mov eax, dword [ebp - 0x10]
push eax
call fcn.004092a8
test eax, eax
je 0x414893
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 0x4148b0
mov eax, dword [ebp - 0x10]
call fcn.0040310c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4148cd
lea eax, [ebp - 4]
call fcn.004063d0
ret
Function at 0x415a93
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004059b4
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call fcn.004091a8
mov edi, eax
cmp edi, 0x104
jbe 0x415ab6
mov eax, edi
add eax, eax
call fcn.004030f0
mov esi, eax
jmp 0x415ab8
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call fcn.004091a8
push edi
push esi
call fcn.004095a8
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x415af1
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x415adb
mov eax, esp
cmp esi, eax
je 0x415afe
mov eax, esi
call fcn.0040310c
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x415b38
cmp bl, 0
je 0x415b34
cmp bl, 0x41
jl 0x415b2f
cmp bl, 0x5a
jg 0x415b2f
or bl, 0x20
xor al, bl
inc esi
jmp 0x415b13
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x415a78

Function at 0x42c66c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call fcn.004091e0
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0042c370
dec esi
jne 0x42c68e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x42d838
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x52ce64
cmp dword [edi], 0
jne 0x42d8b4
push 0x40
push 0x1000
push 0x1000
push 0
call fcn.00409250
mov esi, eax
mov eax, dword [0x52ce60]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x520dc8
mov ecx, 2
call fcn.004032b4
mov edx, 0x42d810
lea eax, [esi + 5]
call fcn.0042d830
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042d830
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 0x42d889
mov dword [0x52ce60], 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 0x432410
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.0040646c
push eax
mov eax, dword [ebx + 4]
push eax
call fcn.00408ecc
test eax, eax
je 0x432468
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x527c14]
mov dl, 1
mov eax, dword [0x431e98]
call fcn.00413cdc
call fcn.00404e1c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00432020
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 0x45182c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004063e0
push 0
mov eax, esi
movzx eax, al
push eax
call fcn.0040995c
shl eax, 0x10
test eax, eax
je 0x451873
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call fcn.0040976c
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004065e0
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x456c8c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x456dc5
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call fcn.0040978c
mov dl, 1
mov eax, dword [0x431f0c]
call fcn.00432048
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x456d9b
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004320e8
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004065e0
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x456de0
call fcn.004067b4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0043214c
test al, al
je 0x456d85
lea ecx, [ebp - 4]
mov edx, 0x456e54
mov eax, dword [ebp - 0xc]
call fcn.00432398
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.004162e0
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x456d7e
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x456e6c
mov eax, dword [ebp - 8]
push eax
call fcn.00409044
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x524fec]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456d85
mov eax, dword [ebp - 8]
push eax
call fcn.00408f5c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456da2
mov eax, dword [ebp - 0xc]
call fcn.00404364
ret

Function at 0x456ed0
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 0x456f17
push 0x10
call fcn.00409774
test ax, ax
jge 0x456efa
add bx, 0x2000
push 0x11
call fcn.00409774
test ax, ax
jge 0x456f0b
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x456f17
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x45ca80
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
cmp dword [0x52d130], 0
je 0x45cbc1
push 0x11
call fcn.00409774
test ax, 0x8000
setne al
mov edx, dword [0x5278c8]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x45cbc1
mov eax, dword [0x52d134]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x52d130]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x45cb90
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x52d130]
call fcn.00423df8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x45cb88
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e2], 0
je 0x45cb88
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x45cb88
mov eax, dword [ebp - 0x14]
call fcn.00467cc8
push eax
call fcn.0040991c
test eax, eax
je 0x45cb88
push ebp
call fcn.0045ca3c
pop ecx
test al, al
jne 0x45cb88
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00404574
test al, al
je 0x45cb88
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 si, 0xffbc
call fcn.00404574
cmp byte [ebp - 1], 0
je 0x45cb88
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00408d04
test al, al
je 0x45cb88
mov edx, dword [ebp - 0x14]
mov eax, dword [0x52d134]
call fcn.0045c1b4
inc edi
dec ebx
jne 0x45cae5
mov eax, dword [0x52d134]
cmp dword [eax + 8], 0
jle 0x45cba8
mov eax, dword [0x52d134]
call fcn.0045c26c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x45cbc1
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0045c8a0
pop ecx
test al, al
jne 0x45cbc1
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