joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405860
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [0x418018]
xor eax, esp
mov dword [esp + 0xc], eax
cmp dword [0x41a248], 0
je 0x40591a
mov eax, dword [str.cNJ_mYNN]
mov ecx, dword [0x413228]
mov dl, byte [0x41322c]
mov dword [esp], eax
mov eax, dword [0x41a1f8]
mov dword [esp + 4], ecx
mov byte [esp + 8], dl
test eax, eax
jne 0x40590e
push esi
mov esi, dword [0x41a1d8]
test esi, esi
jne 0x4058b8
call fcn.004010f0
mov esi, eax
mov dword [0x41a1d8], esi
mov dl, byte [esp + 4]
lea ecx, [esp + 4]
test dl, dl
je 0x4058d1
xor dl, 0x2b
mov byte [ecx], dl
mov dl, byte [ecx + 1]
inc ecx
test dl, dl
jne 0x4058c4
mov eax, dword [0x41a1ec]
test eax, eax
jne 0x405900
test esi, esi
jne 0x4058e8
call fcn.004010f0
mov dword [0x41a1d8], eax
push str.lN_YDHjOOYNXX
call section..text
mov esi, dword [0x41a1d8]
add esp, 4
mov dword [0x41a1ec], eax
lea ecx, [esp + 4]
push ecx
push esi
call eax
mov dword [0x41a1f8], eax
pop esi
mov edx, dword [0x41a248]
push edi
push 1
push edx
call eax
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00410f02
add esp, 0x10
ret

Function at 0x407b50
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ecx, edi
shr ecx, 2
xor eax, eax
test ecx, ecx
jbe 0x407b96
mov edi, ebx
sub esi, edx
mov eax, edx
sub edi, edx
mov dword [esp + 0xc], ecx
push ebp
mov ebp, dword [esi + eax]
xor ebp, dword [eax]
add eax, 4
sub ecx, 1
mov dword [edi + eax - 4], ebp
jne 0x407b78
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
pop ebp
add eax, eax
add eax, eax
sub edi, eax
je 0x407bc1
add ebx, eax
add esi, eax
add edx, eax
test edi, edi
jbe 0x407bc1
mov ecx, esi
mov esi, ebx
sub ecx, edx
mov eax, edx
sub esi, edx
mov dl, byte [eax + ecx]
xor dl, byte [eax]
inc eax
sub edi, 1
mov byte [eax + esi - 1], dl
jne 0x407bb2
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x40b190
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
jmp 0x40b1a0
movzx edx, byte [esi + 0x413390]
mov eax, edx
shr eax, 7
mov ecx, eax
imul eax, eax, 0x11b
imul ecx, ecx, 0x1b000000
mov ebx, edx
shl ebx, 0x19
xor ecx, ebx
mov ebx, edx
shl ebx, 8
or ebx, edx
shl ebx, 8
or ecx, ebx
lea ebx, [edx + edx]
xor eax, ebx
xor eax, edx
or eax, ecx
xor edx, edx
xor ebx, ebx
or edx, ecx
or eax, ebx
mov dword [esi*8 + 0x4199c0], edx
mov dword [esi*8 + 0x4199c4], eax
inc esi
cmp esi, 0x100
jl 0x40b1a0
mov dword [0x41a1c8], edi
mov dword [0x41a1cc], edi
mov dword [0x41a1c0], edi
mov dword [0x41a1c4], edi
pop edi
pop esi
mov byte [0x41a234], 1
pop ebx
ret
Function at 0x40b220
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
push ebx
push ebp
xor eax, eax
push esi
mov dword [esp + 0x14], eax
push edi
lea ecx, [ecx]
movzx eax, byte [eax + 0x413490]
mov ebp, eax
shr ebp, 7
mov dword [esp + 0x1c], ebp
imul ebp, ebp, 0x1b000000
mov ecx, eax
shr ecx, 6
mov esi, ecx
and ecx, 1
mov dword [esp + 0x10], ecx
lea ebx, [eax + eax]
xor ebx, eax
lea ecx, [ebx + ebx]
xor ecx, eax
shl ecx, 0x19
xor ecx, ebp
and esi, 2
mov dword [esp + 0x14], esi
mov edi, eax
shr edi, 5
mov edx, edi
mov esi, edi
and edi, 1
mov ebp, edi
imul ebp, ebp, 0x1b000000
xor ecx, ebp
and esi, 2
mov ebp, esi
imul ebp, ebp, 0x1b000000
xor ecx, ebp
mov ebp, dword [esp + 0x10]
imul ebp, ebp, 0x1b000000
xor ecx, ebp
mov ebp, dword [esp + 0x14]
imul ebp, ebp, 0x1b000000
xor ecx, ebp
and edx, 4
mov ebp, edx
imul ebp, ebp, 0x1b000000
xor ecx, ebp
lea ebp, [ebx*4]
xor ebp, eax
shl ebp, 8
mov ebx, edi
imul ebx, ebx, 0x11b00
xor ebp, ebx
mov ebx, esi
imul ebx, ebx, 0x11b00
xor ebp, ebx
mov ebx, dword [esp + 0x10]
imul ebx, ebx, 0x11b00
xor ebp, ebx
mov ebx, dword [esp + 0x14]
imul ebx, ebx, 0x11b00
xor ebp, ebx
mov ebx, edx
imul ebx, ebx, 0x11b00
xor ebp, ebx
or ecx, ebp
mov ebp, edi
imul edi, edi, 0x11b
imul ebp, ebp, 0x11b0000
lea ebx, [eax*8]
xor ebx, eax
shl ebx, 0x10
xor ebx, ebp
mov ebp, esi
imul ebp, ebp, 0x11b0000
xor ebx, ebp
mov ebp, edx
imul ebp, ebp, 0x11b0000
xor ebx, ebp
or ecx, ebx
mov ebx, dword [esp + 0x1c]
imul ebx, ebx, 0x11b
lea ebp, [eax*4]
xor ebp, eax
add ebp, ebp
xor ebp, ebx
xor ebp, edi
imul esi, esi, 0x11b
imul edx, edx, 0x11b
xor ebp, esi
xor ebp, edx
xor ebp, eax
or eax, ecx
or ebp, ecx
xor edx, edx
or edx, eax
mov eax, dword [esp + 0x18]
xor ecx, ecx
or ebp, ecx
mov dword [eax*8 + 0x4191c0], edx
mov dword [eax*8 + 0x4191c4], ebp
inc eax
cmp eax, 0x100
mov dword [esp + 0x18], eax
jl 0x40b230
pop edi
pop esi
pop ebp
mov byte [0x41a235], 1
pop ebx
add esp, 0x10
ret
Function at 0x40c8f0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, dword [ebp + 8]
movdqa xmm0, xmmword [eax]
sub esp, 8
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
movdqa xmm1, xmmword [edi]
lea edx, [esi - 1]
pxor xmm0, xmm1
movdqa xmmword [eax], xmm0
cmp edx, 1
jbe 0x40c957
add edx, 0xfffffffe
shr edx, 1
lea ecx, [edi + 0x10]
inc edx
jmp 0x40c930
movdqa xmm1, xmmword [ecx]
movdqa xmm0, xmmword [eax]
aesenc xmm0, xmm1
movdqa xmmword [eax], xmm0
movdqa xmm1, xmmword [ecx + 0x10]
add ecx, 0x20
sub edx, 1
aesenc xmm0, xmm1
movdqa xmmword [eax], xmm0
jne 0x40c930
movdqa xmm0, xmmword [eax]
shl esi, 4
movdqa xmm1, xmmword [esi + edi - 0x10]
lea ecx, [esi + edi]
aesenc xmm0, xmm1
movdqa xmmword [eax], xmm0
movdqa xmm1, xmmword [ecx]
pop edi
aesenclast xmm0, xmm1
movdqa xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c990
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push ecx
mov eax, dword [ebp + 8]
movdqa xmm1, xmmword [eax]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
movdqa xmm0, xmmword [edi]
pxor xmm1, xmm0
movdqa xmmword [eax], xmm1
movdqa xmm1, xmmword [ecx]
pxor xmm1, xmm0
movdqa xmmword [ecx], xmm1
movdqa xmm1, xmmword [edx]
pxor xmm1, xmm0
movdqa xmmword [edx], xmm1
movdqa xmm1, xmmword [esi]
pxor xmm1, xmm0
movdqa xmmword [esi], xmm1
cmp ebx, 1
jbe 0x40ca36
add edi, 0x10
dec ebx
lea esp, [esp]
movdqa xmm0, xmmword [edi]
movdqa xmm1, xmmword [eax]
aesenc xmm1, xmm0
movdqa xmmword [eax], xmm1
movdqa xmm1, xmmword [ecx]
aesenc xmm1, xmm0
movdqa xmmword [ecx], xmm1
movdqa xmm1, xmmword [edx]
aesenc xmm1, xmm0
movdqa xmmword [edx], xmm1
movdqa xmm1, xmmword [esi]
add edi, 0x10
sub ebx, 1
aesenc xmm1, xmm0
movdqa xmmword [esi], xmm1
jne 0x40c9f0
mov ebx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
movdqa xmm1, xmmword [eax]
shl ebx, 4
movdqa xmm0, xmmword [ebx + edi]
aesenclast xmm1, xmm0
movdqa xmmword [eax], xmm1
movdqa xmm1, xmmword [ecx]
aesenclast xmm1, xmm0
movdqa xmmword [ecx], xmm1
movdqa xmm1, xmmword [edx]
aesenclast xmm1, xmm0
movdqa xmmword [edx], xmm1
movdqa xmm1, xmmword [esi]
pop edi
aesenclast xmm1, xmm0
movdqa xmmword [esi], xmm1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410820
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x412450
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x418018]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [0x418018]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
push 1
mov dword [esp + 0x20], eax
mov dword [esp + 8], eax
push 0x41a250
lea eax, [esp + 0xc]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], edx
mov edx, dword [ecx]
mov edx, dword [edx + 0x7c]
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], vtable.CryptoPP::ArraySink.0
mov dword [esp + 0x20], vtable.CryptoPP::ArraySink.1.0
call edx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00410f02
mov esp, ebp
pop ebp
ret 8

Function at 0x410970
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x412420
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x418018]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x418018]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ecx]
xor edx, edx
push 1
push 0x41a250
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
push eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x34], eax
push edx
mov edx, dword [esi + 0x80]
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], vtable.CryptoPP::ArraySink.0
mov dword [esp + 0x30], vtable.CryptoPP::ArraySink.1.0
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00410f02
mov esp, ebp
pop ebp
ret 8

Function at 0x410f02
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x418018]
jne 0x410f0c
repz ret
jmp fcn.0041134c
Function at 0x10044780
Capabilities:
Packed with generic packer

Disassembly:
ljmp 0x9c10:0x51a8bd
popal
add ecx, dword [ebx]
add dh, al
inc esp
and al, 4
jo 0x10044724
inc esp
and al, 8
jns 0x100446e7
adc cl, byte [esi]
mov ebp, 0xcb2292fb
cwde
xchg dword [ecx + 0x4c], esi
stosb byte es:[edi], al
xchg edx, eax
jge 0x10044753
cmp eax, 0xa0d21ddd
in al, dx
cmpsd dword [esi], dword es:[edi]
push ecx
dec edi
bound esp, qword [esi]
adc byte [edi + 0x5f], 0x30
js 0x10044800
dec ecx
mov al, 0xbf
into
invalid
add al, 0x22
int3

Function at 0x100a4f6a
Capabilities:
Encode data using xor

Disassembly:
shl dword [esi + 0x4c6e1ed4], 0xb7
pop ebp
pop edx
mov al, byte [0xae20b5ce]
push es
stosd dword es:[edi], eax
out 0x21, eax
push ebp
clc
sar dl, 0x1e
push es
aaa
out dx, eax
xor dl, bh
and byte [edi], al
dec esp
jno 0x100a4f1a
jmp 0x100a4f49
sub dl, al
sub al, 0
add al, 0
mov edx, dword [edx + 0xb614e]
pushfd
mov word [esp + 4], dx
lea edx, [edx - 0x1eaa1f3]
pushal
call fcn.100a2e24
imul eax, dword [esi], 0x7d
sbb bl, byte [edx + 0x62]
lodsd eax, dword [esi]
jle 0x100a4f11
in eax, 0xa2
jle 0x100a4f11
fcmovb st(0), st(1)
inc ebx
push edi
jecxz 0x100a4f68
pop ebp
les edi, [esi]
add eax, 0xe9b365bd
jmp 0x10114305
jmp 0x100eb10e
xchg dword [esp + 0x28], ecx
Function at 0x1012f0f9
Capabilities:
Encode data using xor

Disassembly:
push edx
pushal
push ecx
jmp 0x1012f100
call fcn.1011db50
shr eax, cl
movsb byte es:[edi], byte [esi]
clc
in eax, 0xc5
jge 0x1012f162
mul dword [esi - 0x49c76789]
xlatb
out 0x9e, al
sti
sti
xchg byte [edi + 0x73], cl
jle 0x1012f113
jae 0x1012f193
std
mov word [ebx], ss
loope 0x1012f0b7
push ecx
sbb byte [edi + 0x1c], dh
jbe 0x1012f15b
wait
sub ah, byte [eax + 0x45]
add al, 0x9d
ja 0x1012f19c
invalid
cmp ch, byte [ebp - 0x251bac09]
dec ebp
int3
invalid
rcl ebp, cl
push 0xffffffffffffff95
loopne 0x1012f16e
xor byte [ebx], 0x36
mov esp, edi
mov esi, 0x4bac162d
cmp dword [edx - 0x2a], esp
out 0x94, al
pop ecx
add dl, 0x51
dec eax
invalid
sub eax, 0x394bac16
invalid
and dword [esi + 0x4d], ebx
xchg ebx, eax
les esp, [esi]
popal
jb 0x1012f1bb
sub eax, 0x77bec062
clc
cmp ebp, ebx
xor al, 0x76
sal byte [esi + 0x2e90a75e], cl
sahf
je 0x1012f153
popfd
cmp dword [0x63b0b36b], 0xffffffbd
dec edx
pushal
jp 0x1012f22c
push ebx
pop ebp
cwde
sbb ah, al
cld
call [edx + edx*2 + 0x52c87fd2]
iretd
jbe 0x1012f254
neg dword [esi]
jne 0x1012f277
out dx, eax
dec ecx
int1
das
xchg ecx, eax
int 2
mov cl, 0x11
int 0x67
xchg al, al
neg word ds:[edx + 0x59]
add eax, 0xe1acc330
xor ecx, dword [eax + 0x6ed9a6bf]
lodsd eax, dword [esi]
cmp dl, byte [ebx]
cmp dword [eax], edi
jecxz 0x1012f237
cmp bl, ah
loopne 0x1012f2af
push edi
xchg ebp, eax
out dx, eax
xchg edi, eax
stc
jge 0x1012f256
and eax, 0x19a2d92e
xchg ecx, eax
lcall 0x7b96, 0x34d94a69
adc al, 0x8e
lea esi, [eax + ebx*4 + 0x60]
or dword [ebx - 0x55eba39e], ecx
mov edi, 0x276b745c
retf 0xd0d6
fidivr word [ebx - 0x5c361abf]
in al, dx
inc esi
inc ebp
js 0x1012f2f3
lodsb al, byte [esi]
fadd st(5), st(0)
salc
sub esp, 0x2489fc16
inc ecx
mov al, 0xc5
invalid
mov al, byte [0xfd6886c2]
xor bl, cl
sti
push esp
invalid
push ds
test byte [edi - 3], ch
xchg ecx, eax
add dh, dh
test dword [esi + ebx*4], eax
push ebp
adc al, 0x7b
sub eax, 0x69dc3eec
inc edi
shl byte [ebx], 1
adc al, 0x72
jbe 0x1012f33c
cmpsb byte [esi], byte es:[edi]
int1
pop es
sbb al, 0xa1
adc al, 0xc
jp 0x1012f2e1
sar dword [esi], 1
int1
sub dword [edx], ecx
lodsb al, byte [esi]
std
rol byte [edi + 0x31], 1
pop es
int 0x8a
cli
push es
les edx, [edx]
jmp 0xf14c7ea2
invalid
Function at 0x403020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403039
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403074
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403070
lea ebx, [ebx]
cmp esi, eax
jae 0x403074
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403060
cmp esi, eax
jb 0x40307a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40b3eb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40b432
call fcn.00412cf7
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40b432
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40b44e
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040af65
mov esi, eax
test edi, edi
je 0x40b44c
test ebx, ebx
je 0x40b44c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40c36d
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5256eb
call fcn.0050304e
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40c392
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40c3d8
lea ecx, [ebp - 0x10]
call fcn.00403460
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040bb71
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403440
mov eax, esi
call fcn.00503126
ret 8

Function at 0x40d108
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00412cf7
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40d141
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0040cd59
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x40d19f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x40d1c3
cmp dword [edi + 0x54], 0
jne 0x40d1c3
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00412cf7
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040d160
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40f63d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40f685
call fcn.00412cf7
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40f685
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40f6c8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x40f6b1
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40f6b1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40f6c5
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x421851
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x571674]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
mov ebx, 0x8000
cmp eax, 9
ja 0x42188a
push 0x12
call esi
mov ecx, ebx
test cx, ax
je 0x4218b1
cmp dword [0x5751f0], 0
jne 0x4218b1
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x4218a4
push 0x12
call esi
test bx, ax
je 0x4218a8
mov eax, edi
jmp 0x42191c
push edi
call fcn.0050699b
pop ecx
jmp 0x42191c
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
call fcn.00410211
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push edi
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov al, byte [ebp - 0x10c]
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x107], 0
call dword [sym.imp.USER32.dll_CharUpperA]
movsx eax, byte [ebp - 0x108]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d7a
leave
ret 4
Function at 0x431b05
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
movzx ebx, word [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
jne 0x431b1f
call fcn.004122f0
call fcn.00412cf7
mov esi, dword [eax + 0xc]
push 0xf1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x431b3f
xor eax, eax
jmp 0x431c5a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x431b38
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x431b38
movzx eax, word [esi + 6]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040373c
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x431b1a
cmp dword [ebp + 0x10], 0
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
push eax
lea ebx, [ecx + 6]
lea edx, [eax + 6]
push ebx
push edx
je 0x431b9c
mov ecx, edi
call fcn.0042a4f0
jmp 0x431ba1
call fcn.0042a3da
mov eax, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
cmp dword [eax + 4], 0
jne 0x431bb3
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
cmp dword [edi + 0xbe0], 0
jne 0x431bce
push dword [ebp + 0x10]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x310]
test eax, eax
je 0x431c46
mov eax, dword [edi + 0xad0]
mov dword [ebp + 0xc], eax
xor eax, eax
xor ebx, ebx
cmp ax, word [esi + 6]
jae 0x431c1d
lea eax, [esi + 8]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov ecx, dword [ebp - 8]
mov dword [ecx + ebx*4], eax
jne 0x431c10
test eax, eax
jbe 0x431c10
push eax
mov ecx, 0x56e374
call fcn.004d143c
mov ecx, dword [ebp + 0xc]
inc dword [ebp + 0xc]
mov dword [eax], ecx
movzx eax, word [esi + 6]
add dword [ebp - 4], 2
inc ebx
cmp ebx, eax
jl 0x431be7
mov eax, dword [ebp + 8]
mov dword [edi + 0xbe0], eax
movzx ecx, word [esi + 6]
mov eax, dword [edi]
push 1
push ecx
push dword [ebp - 8]
mov ecx, edi
call dword [eax + 0x318]
mov ebx, eax
test ebx, ebx
jne 0x431c46
and dword [edi + 0xbe0], eax
push dword [ebp - 8]
call fcn.0040376b
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc