joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f033a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4f034a
xor eax, eax
jmp 0x4f0513
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x4f04cb
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521ef4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521ef4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521ef4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521ef4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521ef4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521ef4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521ef4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521ef4]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x4f0353
cmp dword [ebp + 0x10], 0
je 0x4f050d
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x521ef4]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x4f04d1
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x5e2898
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.005e2824
ret
Function at 0x405d20
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esi + 8]
push str._s:_illegal_option_____c_n
push eax
call dword [esi + 0x1f]
add esp, 0x10
push ebp
push ebp
adc byte [edx - 0x47a026b2], cl
sub byte [ecx], dl
adc al, 0xbc
mov byte [edx], cl
pop esi
pop ebp
ret 0x10
adc byte [eax], al
push ebp
mov edx, esp
push ecx
push esi
push edi
call 0xbf5eb4
test eax, eax
movnti dword [edx + edi*4 + 0x5383bd00], ebp
fmul st(6), st(0)
inc ecx
add byte [edi + ecx], dl
mov esi, gs
add byte [eax], al
add byte [esi - 0x7c], bl
mov edx, 0xc0850041
jne 0xcd595e2e
mov dword [0x41db84], 0x9f
push dword [eax]
pop esp
sal byte [ebp - 0x7a0f7500], 0xf6
je 0x405db3
mov eax, dword [0x410358]
test dword [ecx], edi
jne 0x405cf0
push eax
push str.CommandLineToArgvW
push 4
call fcn.0040a940
add esp, 0xc
mov dword [0x411358], eax
test eax, eax
je 0x6c5e38
invalid
je 0x405db3
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
push edx
push esi
push eax
push ebx
sub al, 0x48
xchg dword [ebx + ecx*4 + 0x4d], ebp
loop 0x405d2b
call 0x1ca12b9
loopne 0x405dc4
pop eax
rol byte [eax], 0xa9
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ebp, dword [eax]
push 0xffffffffffffffff
push ebx
test eax, 0xc05415ff
inc eax
add byte [ebx + 0x53ff6a28], cl
push dword [esi]
add ecx, 0x40
add byte [eax - 0x18], dl
test dword [eax], eax
add byte [ebx - 0x7cef8275], dh
jecxz 0x405e00
test ebx, edx
je 0x405d94
hlt
arpl word [ebx + edx*2 - 0x49afea6e], sp
inc eax
add byte [ecx - 0x633edfcb], cl
add bh, bh
salc
mov ecx, dword [edx]
pop ebx
test ecx, ecx
je 0x405e2e
wait
salc
mov edi, dword [eax]
push dword [ebx - 0x3e]
scasd eax, dword es:[edi]
test dword [eax], 0xff6e00d5
adc eax, 0x400030
mov ebp, 0xc05204da
pop edi
pop esi
mov esp, ebp
or eax, edx
or al, 0
push 0xffffffffffffffe7
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x405db3
push edx
rcr byte [edi + 0x5e], 0x8b
in eax, 0xb
ret 0xc
Function at 0x40b080
Capabilities:
Write file on windows

Disassembly:
xchg edx, eax
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmpsb byte [esi], byte es:[edi]
mov ebp, dword [eax + edx - 0x75]
inc esi
adc byte [ebx - 0x3ef4ebb2], cl
fadd dword [ebp + 0x10]
add byte [eax], al
call 0xf7b2266c
inc esi
cmp byte [eax + eax*8 + 0x568b6a74], al
add al, 0x8d
push ecx
or byte [edx], ch
push ecx
or al, 0
push 0
push 0
push edx
call dword [0xe0c90c]
test eax, eax
jne 0x40b127
invalid
sal byte [ebx - 0x7a], 0x4e
or byte [esi + ebp*2 + 0x5f8b1c75], al
push eax
mov dword [eax - 0x52], ecx
add byte [esi + 0x50], al
mov edx, dword [esi + 0x54]
test byte [ebp - 0x18000000], dl
jo 0x40b111
add byte [eax], al
mov edx, dword [esi + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [esi + 0x3c]
mov edx, dword [ebp + 0xc]
push ebx
cmp eax, 0xdb50104d
inc esi
add al, 0x51
push edi
push edx
push eax
call dword [0x947d10]
test eax, eax
je 0x40b15a
xor eax, eax
jmp 0x40b285
mov edi, dword [0x17c098]
jmp dword [esi]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x40b29e
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
pop ss
pop edi
mov eax, 0x1117e
mov dword [ecx], edx
pop esi
pop ebp
mov dx, word [esi + 0xc]
mov edx, dword [esi + 0xc]
test dword [ecx - 0x66], esp
sbb byte [edx - 0x2dc6f7aa], cl
jne 0x40b2bd
mov edx, dword [esi + 0x50]
add edx, ecx
jecxz 0x40b301
inc ebx
daa
shl dword [ecx + ecx*4 + 0x4e894956], 1
push esp
mov ebx, esi
adc al, 0x3b
push ebp
adc byte [eax - 0x6e], dh
mov ebp, edx
pop esi
pop ebp
ret
add byte [eax], al
add byte [ebx - 0x7cc7a2], cl
lcall 0xebff, 0xc8830576
add cl, byte [ebx + 0x456f7c7]
cmp edi, 0xffffff9a
jbe 0x40b311
or eax, 0xffffffff
jmp 0x40b313
mov eax, edi
not dword [esi + 4]
lea ecx, [ebp - 4]
push 0
push ecx
push eax
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test edx, ecx
je 0x40b358
mov eax, dword [ebp - 4]
mov edx, dword [esi + 0x50]
mov esp, dword [edx + 0x41]
add eax, dword [edi - 0x7d]
adc dword [eax], eax
sub ebx, dword [edi]
add ebx, eax
mov dword [esi + 0x50], edx
test ebp, edi
mov dh, 0xde
push esp
ja 0x40b307
mov eax, dword [ebp + 8]
out 0xc7, al
inc esi
mov ah, 0xe3
add byte [eax], al
add byte [ebx - 0x75], bl
mov esp, ebp
pop ebp
test byte [eax + eax], al
mov edi, dword [0xc2c098]
call edi
test dword [ebx + 0x45890575], eax
or bl, ch
or dh, byte [esp + ebp*4]
add eax, 0x445280
mov ebp, esi
or byte [ebx + 0x568bfc05], cl
push eax
mov ecx, dword [esi - 0x4a]
add edx, eax
mov eax, dword [ebp + 0x21]
mov dword [0x758350], esp
test dword [eax], ecx
inc edx
dec esi
push esp
jne 0x40b3bd
mov dword [esi + 0x3c], 0x5a00
mov eax, dword [ebp + 8]
sahf
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
push ebp
test ebp, 0xe9c1ca8b
pop ds
test cl, dl
pop esi
dec eax
xchg ebp, eax
add dword [eax], eax
add byte [eax], al
pop ebp
ret 4
Function at 0xaa9180
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x10325476
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0xc3d2e1f0
pop ebp
ret
Function at 0xaacc90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0xaacca0
xor eax, eax
jmp 0xaace3d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0xaacdfe
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0xad3de0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0xad3de0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0xad3de0]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0xad3de0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0xad3de0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0xad3de0]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0xad3de0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0xad3de0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0xaacca9
cmp dword [ebp + 0x10], 0
je 0xaace37
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0xad3de0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0xaace04
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0xab0170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0xad9c20]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
cmp dword [ebp + 8], 0
je 0xab01a6
mov eax, dword [ebp + 8]
push eax
call dword [0xacf23c]
cmp eax, 0xffffffff
jne 0xab01a6
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [0xacf1bc]
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
jne 0xab01b5
jmp 0xab03a8
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
movzx ecx, word [eax]
test ecx, ecx
je 0xab0207
mov edx, dword [ebp - 0x218]
movzx eax, word [edx]
cmp eax, 0x2f
je 0xab01ed
mov ecx, dword [ebp - 0x218]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0xab01f6
mov eax, dword [ebp - 0x218]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x218]
add ecx, 2
mov dword [ebp - 0x218], ecx
jmp 0xab01c4
mov edx, dword [ebp - 4]
mov dword [ebp - 0x214], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0xab026a
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x420]
push eax
call 0xac20f0
add esp, 0xc
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
xor edx, edx
mov word [ebp + ecx*2 - 0x420], dx
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00ab0170
add esp, 8
mov edx, dword [ebp - 0x214]
add edx, 2
mov dword [ebp - 0x214], edx
xor eax, eax
mov word [ebp - 0x210], ax
cmp dword [ebp + 8], 0
je 0xab02e2
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x424], ecx
lea edx, [ebp - 0x210]
mov dword [ebp - 0x428], edx
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x424]
mov dx, word [ecx]
mov word [ebp - 0x42e], dx
mov eax, dword [ebp - 0x428]
mov cx, word [ebp - 0x42e]
mov word [eax], cx
mov edx, dword [ebp - 0x424]
add edx, 2
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x428]
add eax, 2
mov dword [ebp - 0x428], eax
cmp word [ebp - 0x42e], 0
jne 0xab029a
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x434], ecx
mov edx, dword [ebp - 0x434]
mov dword [ebp - 0x438], edx
mov eax, dword [ebp - 0x434]
mov cx, word [eax]
mov word [ebp - 0x43a], cx
add dword [ebp - 0x434], 2
cmp word [ebp - 0x43a], 0
jne 0xab02f7
mov edx, dword [ebp - 0x434]
sub edx, dword [ebp - 0x438]
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x444], edx
lea ecx, [ebp - 0x210]
add ecx, 0xfffffffe
mov dword [ebp - 0x448], ecx
mov edx, dword [ebp - 0x448]
mov ax, word [edx + 2]
mov word [ebp - 0x44a], ax
add dword [ebp - 0x448], 2
cmp word [ebp - 0x44a], 0
jne 0xab0345
mov edi, dword [ebp - 0x448]
mov esi, dword [ebp - 0x440]
mov edx, dword [ebp - 0x444]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x210]
push eax
call dword [0xacf23c]
cmp eax, 0xffffffff
jne 0xab03a8
push 0
lea ecx, [ebp - 0x210]
push ecx
call dword [0xacf1bc]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00abb24e
mov esp, ebp
pop ebp
ret
Function at 0x40292b
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push 0xc
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push 2
xor ebp, ebp
push ebp
mov edi, eax
push ebp
push edi
call esi
push eax
mov eax, dword [esp + 0x28]
push dword [eax]
call esi
mov ebx, dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push eax
call ebx
push 2
push ebp
push ebp
lea eax, [edi + 8]
push eax
call esi
push eax
mov eax, dword [esp + 0x30]
push dword [eax]
call esi
push eax
call ebx
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
push ebp
push ebp
push edi
push 0x402999
push ebp
push ebp
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x4037dc
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
push edi
push 1
push dword [esi]
call fcn.0040522d
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebp, ebp
push ebp
push 0x25
call edi
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
shl eax, 0x10
or eax, 1
cmp dword [esp + 0x10], ebp
push eax
jge 0x40382c
push 0x25
push pe_nt_image_headers32
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ebp
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x25
jmp 0x40384e
push 0x27
push pe_nt_image_headers32
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ebp
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x27
push 0x101
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ebp
push dword [esi]
call fcn.0040522d
pop edi
pop ebp
mov al, 1
pop ebx
ret 4

Function at 0x403cac
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xb0
push dword [ebx]
call esi
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x403cd9
xor al, al
jmp 0x403ced
push edi
push 0
push 0
push 0xe
push dword [ebx]
call esi
mov edi, eax
test edi, edi
jne 0x403cf3
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 0x101]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044f907
pop ecx
push eax
mov dword [ebp - 4], eax
lea eax, [edi + 1]
push eax
push 0xd
push dword [ebx]
call esi
test eax, eax
je 0x403d50
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x403d2f
mov ecx, dword [ebp - 4]
and word [ecx + eax*2], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*2]
push eax
mov eax, dword [ebp + 8]
call fcn.004101c0
mov bl, 1
push dword [ebp - 4]
call fcn.0044f971
pop ecx
mov al, bl
jmp 0x403cec
xor bl, bl
jmp 0x403d43
Function at 0x40a17d
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x108
push ebx
mov ebx, 0x200
test ebx, eax
push ebp
push edi
je 0x40a196
or dword [esi + 0x23c], 8
test ax, 0x400
je 0x40a1a3
or dword [esi + 0x23c], 1
mov edi, pe_nt_image_headers32
test edi, eax
je 0x40a1b3
or dword [esi + 0x23c], 2
mov eax, dword [esi + 0x23c]
test al, 8
je 0x40a1cc
test ax, 0x800
je 0x40a1cc
xor eax, 8
mov dword [esi + 0x23c], eax
mov eax, dword [esi + 0x23c]
test al, 1
je 0x40a1e3
test edi, eax
je 0x40a1e3
xor eax, 1
mov dword [esi + 0x23c], eax
mov eax, dword [esi + 0x23c]
test al, 2
je 0x40a1fa
test ebx, eax
je 0x40a1fa
xor eax, 2
mov dword [esi + 0x23c], eax
mov eax, dword [esi + 0x23c]
test al, 0x10
je 0x40a213
test ax, 0x1000
je 0x40a213
xor eax, 0x10
mov dword [esi + 0x23c], eax
cmp dword [esi + 0x240], 0
je 0x40a270
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0x23c]
test ax, 0x800
jne 0x40a238
mov byte [esp + 0x21], 0
test edi, eax
jne 0x40a241
mov byte [esp + 0x22], 0
test ebx, eax
jne 0x40a255
mov ecx, dword [esi + 0x24c]
mov byte [esp + 0x20], 0
mov byte [esp + ecx + 0x10], 0
test ax, 0x1000
jne 0x40a260
mov byte [esp + 0x6b], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40a361
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
pop ebx
push ebx
call ebp
mov edi, 0x8000
test di, ax
jne 0x40a292
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a2a6
test word [esi + 0x23c], 0x800
jne 0x40a2a6
push 0
mov eax, esi
call fcn.0040ab81
push 0x12
pop ebx
push ebx
call ebp
test di, ax
jne 0x40a2bd
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a2d1
test word [esi + 0x23c], 0x100
jne 0x40a2d1
push 0
mov eax, esi
call fcn.0040ab81
push dword [esi + 0x24c]
call ebp
test di, ax
jne 0x40a2ef
push dword [esi + 0x24c]
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a309
test word [esi + 0x23c], 0x200
jne 0x40a309
mov ebx, dword [esi + 0x24c]
push 0
mov eax, esi
call fcn.0040ab81
mov ebx, 0xa1
push ebx
call ebp
test di, ax
jne 0x40a322
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a336
test word [esi + 0x23c], 0x400
jne 0x40a336
push 0
mov eax, esi
call fcn.0040ab81
push 0x5b
pop ebx
push ebx
call ebp
test di, ax
jne 0x40a34d
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
je 0x40a361
test word [esi + 0x23c], 0x1000
jne 0x40a361
push 0
mov eax, esi
call fcn.0040ab81
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x40a62c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [ebp + 8]
test bl, 0x1f
push edi
je 0x40a832
mov eax, dword [esi + 0x240]
xor edi, edi
cmp eax, edi
je 0x40a7b7
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x40a7b7
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov edi, ebx
and edi, 0x10
mov cl, 0x80
je 0x40a67e
or byte [ebp - 0xb9], cl
mov dword [ebp - 0x10], ebx
and dword [ebp - 0x10], 2
je 0x40a69c
mov eax, dword [esi + 0x24c]
or byte [ebp - 0x104], cl
lea eax, [ebp + eax - 0x114]
or byte [eax], cl
mov dword [ebp - 0x14], ebx
and dword [ebp - 0x14], 4
je 0x40a6ae
or byte [ebp - 0x104], cl
or byte [ebp - 0x73], cl
mov dword [ebp - 8], ebx
and dword [ebp - 8], 8
je 0x40a6bd
or byte [ebp - 0x103], cl
mov dword [ebp - 0xc], ebx
and dword [ebp - 0xc], 1
je 0x40a6cc
or byte [ebp - 0x102], cl
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
test edi, edi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
mov ebx, pe_nt_image_headers32
je 0x40a701
movzx eax, byte [esi + 0x249]
shl eax, 0x10
or eax, 1
push eax
push 0x5b
push ebx
push dword [esi + 0x240]
call edi
cmp dword [ebp - 0x10], 0
je 0x40a724
movzx eax, byte [esi + 0x247]
shl eax, 0x10
or eax, 1
push eax
push dword [esi + 0x24c]
push ebx
push dword [esi + 0x240]
call edi
cmp dword [ebp - 0x14], 0
je 0x40a743
movzx eax, byte [esi + 0x248]
shl eax, 0x10
or eax, 1
push eax
push 0x10
push ebx
push dword [esi + 0x240]
call edi
cmp dword [ebp - 8], 0
je 0x40a762
movzx eax, byte [esi + 0x244]
shl eax, 0x10
or eax, 1
push eax
push 0x11
push ebx
push dword [esi + 0x240]
call edi
xor eax, eax
cmp dword [ebp - 0xc], eax
je 0x40a829
cmp dword [ebp - 8], eax
jne 0x40a793
test word [ebp + 8], 0x800
jne 0x40a793
movzx eax, byte [esi + 0x245]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x40a7ad
cmp dword [ebp - 0xc], eax
je 0x40a829
movzx eax, byte [esi + 0x245]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push ebx
push dword [esi + 0x240]
call edi
jmp 0x40a829
test bl, 0x10
je 0x40a7cc
movzx eax, byte [esi + 0x249]
push edi
push eax
push 0x5b
call fcn.00409fc3
test bl, 2
je 0x40a7e7
movzx eax, byte [esi + 0x247]
push edi
push eax
movzx eax, byte [esi + 0x24c]
push eax
call fcn.00409fc3
test bl, 4
je 0x40a7ff
movzx eax, byte [esi + 0x248]
push edi
push eax
push 0xa1
call fcn.00409fc3
test bl, 8
je 0x40a814
movzx eax, byte [esi + 0x244]
push edi
push eax
push 0x11
call fcn.00409fc3
test bl, 1
je 0x40a829
movzx eax, byte [esi + 0x245]
push edi
push eax
push 0x12
call fcn.00409fc3
mov edi, dword [esi + 4]
push esi
call fcn.0040b11d
pop edi
pop ebx
leave
ret 4