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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp esi, dword [edi + 0x6c]
jle 0x442631
mov dword [edi + 0x6c], esi
push dword [edi + 0x68]
call fcn.004af8b3
lea eax, [esi*4]
push eax
call fcn.004afadb
add esp, 8
mov dword [edi + 0x68], eax
mov eax, dword [edi + 0x68]
mov ecx, edi
push esi
mov esi, dword [ebp + 8]
push esi
push eax
mov dword [ebp - 4], eax
call fcn.0042cbf0
mov eax, dword [edi + 0x48]
mov ecx, dword [edi + 0x50]
imul ecx, dword [ebp + 0x10]
mov eax, dword [eax + 0x10]
mov ebx, eax
imul ebx, esi
mov dword [ebp - 8], eax
sar ecx, 8
mov dword [ebp + 8], ecx
add ebx, dword [edi + 0x64]
cmp ecx, 0xfe
jge 0x442752
nop
mov edx, dword [ebp - 4]
mov eax, edx
add edx, 4
mov dword [ebp - 4], edx
mov edx, dword [eax]
mov edi, edx
shr edi, 8
and edx, 0xff00ff
imul edx, dword [ebp + 8]
and edi, 0xff00ff
imul edi, ecx
mov ecx, 0x100
shr edx, 8
shr edi, 8
and edx, 0xff00ff
and edi, 0xff00ff
mov eax, edi
shr eax, 0x10
sub ecx, eax
mov eax, dword [ebx]
mov esi, eax
shr eax, 8
and eax, 0xff00ff
and esi, 0xff00ff
imul eax, ecx
imul esi, ecx
shr eax, 8
and eax, 0xff00ff
shr esi, 8
add edi, eax
and esi, 0xff00ff
add esi, edx
mov eax, edi
shr eax, 8
mov edx, 0x100
and eax, 0xff00ff
mov ecx, esi
sub edx, eax
shr ecx, 8
shl edx, 8
mov eax, edi
shl eax, 8
and ecx, 0xff00ff
or edx, eax
mov eax, 0x100
sub eax, ecx
mov ecx, 0x100
or eax, esi
xor edx, eax
mov eax, edi
shr eax, 8
and edx, 0xff00ff
and eax, 0xff00ff
shl edi, 8
sub ecx, eax
mov eax, dword [ebp + 0xc]
shl ecx, 8
dec eax
or ecx, edi
mov dword [ebp + 0xc], eax
xor edx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebx], edx
add ebx, dword [ebp - 8]
test eax, eax
jg 0x442670
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov edi, edx
add ecx, 4
shr edi, 8
mov dword [ebp - 4], ecx
and edi, 0xff00ff
mov eax, edi
mov ecx, 0x100
shr eax, 0x10
and edx, 0xff00ff
sub ecx, eax
mov eax, dword [ebx]
mov esi, eax
shr eax, 8
and eax, 0xff00ff
and esi, 0xff00ff
imul eax, ecx
imul esi, ecx
shr eax, 8
and eax, 0xff00ff
shr esi, 8
add edi, eax
and esi, 0xff00ff
add esi, edx
mov eax, edi
shr eax, 8
mov edx, 0x100
and eax, 0xff00ff
mov ecx, esi
sub edx, eax
shr ecx, 8
shl edx, 8
mov eax, edi
shl eax, 8
and ecx, 0xff00ff
or edx, eax
mov eax, 0x100
sub eax, ecx
mov ecx, 0x100
or eax, esi
xor edx, eax
mov eax, edi
shr eax, 8
and edx, 0xff00ff
and eax, 0xff00ff
shl edi, 8
sub ecx, eax
mov eax, dword [ebp + 0xc]
shl ecx, 8
dec eax
or ecx, edi
mov dword [ebp + 0xc], eax
xor edx, ecx
mov dword [ebx], edx
add ebx, dword [ebp - 8]
test eax, eax
jg 0x442752
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x442910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [eax + 0x10]
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, 0x100
mov edi, eax
and eax, 0xff00ff
shr edi, 8
and edi, 0xff00ff
mov ecx, edi
shr ecx, 0x10
sub edx, ecx
mov ecx, dword [ebx]
mov esi, ecx
shr ecx, 8
and ecx, 0xff00ff
and esi, 0xff00ff
imul ecx, edx
imul esi, edx
mov edx, 0x100
shr ecx, 8
and ecx, 0xff00ff
shr esi, 8
add edi, ecx
and esi, 0xff00ff
add esi, eax
mov eax, edi
shr eax, 8
mov ecx, esi
and eax, 0xff00ff
shr ecx, 8
sub edx, eax
and ecx, 0xff00ff
shl edx, 8
mov eax, edi
shl eax, 8
or edx, eax
mov eax, 0x100
sub eax, ecx
mov ecx, 0x100
or eax, esi
xor edx, eax
mov eax, edi
shr eax, 8
and edx, 0xff00ff
and eax, 0xff00ff
shl edi, 8
sub ecx, eax
mov eax, dword [ebp + 0x10]
shl ecx, 8
dec eax
or ecx, edi
mov dword [ebp + 0x10], eax
xor edx, ecx
mov dword [ebx], edx
add ebx, dword [ebp - 4]
test eax, eax
jg 0x442922
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x444310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax - 1]
mov esi, ecx
mov dword [ebp - 4], edi
mov ebx, edx
sar edi, 1
mov ecx, edx
cmp edx, edi
jge 0x444357
nop dword [eax]
add ecx, ecx
xor eax, eax
movss xmm0, dword [esi + ecx*4 + 4]
comiss xmm0, dword [esi + ecx*4 + 8]
seta al
xor eax, 1
inc eax
add ecx, eax
mov eax, dword [esi + ecx*4]
mov dword [esi + edx*4], eax
mov edx, ecx
cmp ecx, edi
jl 0x444330
mov eax, dword [ebp + 8]
cmp ecx, edi
jne 0x444369
test al, 1
jne 0x444369
mov eax, dword [esi + eax*4 - 4]
mov dword [esi + edx*4], eax
mov edx, dword [ebp - 4]
cmp ebx, edx
jge 0x44439a
mov ecx, dword [ebp + 0xc]
movss xmm0, dword [ecx]
lea eax, [edx - 1]
sar eax, 1
movss xmm1, dword [esi + eax*4]
comiss xmm0, xmm1
jbe 0x44438e
movss dword [esi + edx*4], xmm1
mov edx, eax
cmp ebx, eax
jl 0x444370
mov eax, dword [ecx]
pop edi
mov dword [esi + edx*4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
pop edi
mov eax, dword [eax]
mov dword [esi + edx*4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4443e0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
movzx edx, byte [eax + 8]
movzx ecx, byte [eax + 0xa]
xor edx, 0x811c9dc5
imul esi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor esi, edx
imul edx, esi, 0x1000193
xor edx, ecx
movzx ecx, byte [eax + 0xb]
imul edx, edx, 0x1000193
xor edx, ecx
imul ecx, edx, 0x1000193
mov edx, dword [edi + 0x18]
and edx, ecx
lea esi, [edx*8]
mov edx, dword [edi + 0xc]
add edx, esi
mov ecx, dword [edx]
cmp dword [edx + 4], eax
jne 0x444453
cmp ecx, eax
jne 0x44444b
mov ecx, dword [edi + 4]
mov dword [edx], ecx
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov dword [esi + edx + 4], ecx
jmp 0x44445b
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
jmp 0x44445b
cmp ecx, eax
jne 0x44445b
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov esi, dword [eax]
push 0x10
push eax
mov dword [ecx], esi
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
dec dword [edi + 8]
call fcn.00494ba3
mov eax, dword [ebp + 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebp
ret 8
Function at 0x447280
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d76c0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x65a06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xe0
call fcn.00494bd4
mov ebx, eax
add esp, 4
mov dword [ebp - 0x10], ebx
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0050a590
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebx], vtable.juce::MouseInputSourceInternal.0
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov word [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov byte [ebp - 4], 3
lea edi, [ebx + 0x50]
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov ebx, 4
mov ecx, edi
call fcn.004477e0
add edi, 0x20
sub ebx, 1
jne 0x447355
mov edi, dword [ebp - 0x10]
mov dword [edi + 0xd0], ebx
mov dword [edi + 0xd4], ebx
mov byte [edi + 0xd8], bl
mov ecx, dword [esi + 0x14]
lea ebx, [ecx + 1]
cmp ebx, dword [esi + 0x10]
jle 0x4473de
mov eax, ebx
add ebx, 8
cdq
sub eax, edx
sar eax, 1
add ebx, eax
and ebx, 0xfffffff8
cmp dword [esi + 0x10], ebx
je 0x4473d8
test ebx, ebx
jle 0x4473c6
mov ecx, dword [esi + 0xc]
lea eax, [ebx*4]
push eax
test ecx, ecx
jne 0x4473b8
call fcn.004afadb
add esp, 4
mov dword [esi + 0xc], eax
jmp 0x4473d8
push ecx
call fcn.004af86c
add esp, 8
mov dword [esi + 0xc], eax
jmp 0x4473d8
push dword [esi + 0xc]
call fcn.004af8b3
add esp, 4
mov dword [esi + 0xc], 0
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], ebx
lea eax, [ecx + 1]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [eax + ecx*4], edi
mov ecx, dword [esi + 0x20]
lea ebx, [ecx + 1]
cmp ebx, dword [esi + 0x1c]
jle 0x447459
mov eax, ebx
add ebx, 8
cdq
sub eax, edx
sar eax, 1
add ebx, eax
and ebx, 0xfffffff8
cmp dword [esi + 0x1c], ebx
je 0x447453
test ebx, ebx
jle 0x447441
lea eax, [ebx*4]
push eax
call fcn.004afadb
xor edx, edx
add esp, 4
cmp dword [esi + 0x20], edx
jle 0x447433
mov ecx, dword [esi + 0x18]
mov ecx, dword [ecx + edx*4]
mov dword [eax + edx*4], ecx
inc edx
cmp edx, dword [esi + 0x20]
jl 0x447424
mov ecx, dword [esi + 0x18]
push ecx
mov dword [esi + 0x18], eax
call fcn.004af8b3
jmp 0x447450
push dword [esi + 0x18]
call fcn.004af8b3
mov dword [esi + 0x18], 0
add esp, 4
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x1c], ebx
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x18]
mov dword [eax + ecx*4], edi
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
lea eax, [eax + ecx*4]
add eax, 0xfffffffc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x466710
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d974b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x65a06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov edx, 1
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
lea eax, [edi + 0x1d0]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov eax, dword [edi + 0x148]
mov dword [esi + 0x2c], eax
mov eax, edx
mov ebx, dword [edi + 0x130]
mov ecx, dword [ebx + 0xbc]
sub ecx, dword [edi + 0x1bc]
cmp ecx, edx
cmovg eax, ecx
mov ecx, dword [ebx + 0xb8]
sub ecx, dword [edi + 0x1b8]
sub ecx, 2
cmp ecx, edx
movd xmm1, eax
mov eax, edx
cmovg eax, ecx
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 0x34], xmm1
movss dword [esi + 0x30], xmm0
cmp byte [edi + 0x14f], 0
je 0x466802
mov eax, dword [ebx + 0xb8]
sub eax, dword [edi + 0x1b8]
sub eax, 2
cmp eax, edx
cmovg edx, eax
jmp 0x466807
mov edx, bind
movd xmm0, edx
cvtdq2ps xmm0, xmm0
movss dword [esi + 0x38], xmm0
mov eax, dword [edi + 0x1e4]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x204]
mov dword [esi + 0x40], eax
mov al, byte [edi + 0x15a]
mov byte [esi + 0x44], al
mov dword [esi + 0x48], 0x612d9c
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x1c]
cmp dword [eax + 8], 0
je 0x46685b
mov eax, dword [eax]
mov ecx, dword [esi + 0x24]
mov eax, dword [eax + ecx*4]
mov dword [esi + 0x20], eax
test eax, eax
je 0x46685b
mov ecx, esi
call fcn.00466b70
mov eax, dword [edi + 0x1c4]
mov eax, dword [eax + 0x14]
mov dword [esi + 8], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x469c20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d9a92
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x65a06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov edi, dword [eax + 0x88]
mov ecx, edi
call fcn.005697e0
mov edi, dword [edi + 0x1c]
mov esi, eax
lea eax, [ebp - 0x28]
push eax
call fcn.004b7ecc
add esp, 4
push 0
push 0x3e8
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.00495a90
mov ecx, eax
mov eax, edx
mov dword [ebp - 0x40], eax
movzx eax, word [ebp - 0x20]
cdq
add ecx, eax
lea eax, [ebp - 0x38]
push eax
adc dword [ebp - 0x40], edx
mov dword [ebp - 0x50], ecx
call fcn.004b7ecc
add esp, 4
push 0
push 0x3e8
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.00495a90
mov ecx, eax
mov eax, edx
mov dword [ebp - 0x3c], eax
movzx eax, word [ebp - 0x30]
cdq
add ecx, eax
mov eax, dword [0x666e10]
mov dword [ebp - 0x4c], ecx
adc dword [ebp - 0x3c], edx
test eax, eax
jne 0x469d08
push 0xd8
call fcn.00494bd4
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.005b6b70
mov dword [0x666e10], eax
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x44]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx]
cvtps2pd xmm0, xmm2
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
mov dword [edx + 0x1c], 0
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
movd xmm3, edi
addsd xmm0, qword [0x627f88]
cvtdq2ps xmm3, xmm3
movsd qword [ebp - 0x20], xmm0
mov eax, dword [ebp - 0x20]
cvtps2pd xmm0, xmm3
mov dword [edx + 8], eax
movss dword [edx], xmm2
addsd xmm0, qword [0x627f88]
movss dword [edx + 4], xmm3
movss dword [edx + 0x28], xmm2
movss dword [edx + 0x2c], xmm3
movsd qword [ebp - 0x20], xmm0
mov eax, dword [ebp - 0x20]
mov dword [edx + 0xc], eax
mov eax, dword [ebx + 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x48]
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x4c]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 0x3c]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 0x50]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [edx + 0x44], eax
mov eax, edx
mov dword [edx + 0x48], ecx
mov word [edx + 0x4c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00494b92
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4744f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da488
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x65a06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov bl, byte [edi + 0xdc]
lea esi, [edi + 0xdc]
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x1c], bl
mov byte [esi], 1
mov dword [ebp - 4], 0
mov eax, dword [edi]
push 0
call dword [eax + 0x30]
mov al, byte [0x65ac34]
mov bh, byte [ebp + 8]
mov byte [ebp - 0xd], al
mov eax, dword [edi + 8]
shr eax, 1
not al
and al, 1
test bh, bh
mov byte [0x65ac34], al
mov eax, dword [edi + 0x54]
mov edi, 0x4761b0
mov dword [ebp - 0x14], eax
mov eax, 0x4761a0
cmovne edi, eax
call fcn.005095c0
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
mov eax, dword [ebp + 8]
cmp edx, dword [eax + 0xc]
je 0x4745a0
mov ecx, dword [eax + 0x10]
cmp edx, ecx
je 0x47459d
push dword [ebp - 0x14]
mov ecx, eax
push edi
call fcn.00509220
mov bl, byte [ebp - 0x1c]
jmp 0x4745a8
mov bl, byte [ebp - 0x1c]
push dword [ebp - 0x14]
call edi
add esp, 4
mov al, byte [ebp - 0xd]
mov byte [0x65ac34], al
test bh, bh
jne 0x4745bf
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 4]
call fcn.005b9cd0
mov byte [esi], bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x474cb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push esi
push edi
push 0x10
call ebx
movzx esi, ax
shr esi, 0xf
push 0x11
and esi, 1
call ebx
shr eax, 0xf
mov edi, esi
or edi, 2
and al, 1
push 0x12
cmove edi, esi
call ebx
mov ebx, edi
shr eax, 0xf
or ebx, 4
and al, 1
push 0xa5
cmove ebx, edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov esi, ebx
call edi
shr eax, 0xf
test al, 1
je 0x474d12
push 0xa3
call edi
shr eax, 0xf
test al, 1
jne 0x474d12
and esi, 0xfffffffd
or esi, 4
mov eax, dword [0x666f10]
and eax, 0x70
pop edi
or eax, esi
pop esi
mov dword [0x666f10], eax
pop ebx
ret

Function at 0x474d30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
mov edx, ebx
mov eax, ebx
and edx, 1
shl edx, 4
push esi
mov esi, edx
or esi, 0x20
and al, 2
mov eax, dword [0x666f10]
cmove esi, edx
and eax, 0xffffff8f
mov ecx, esi
or ecx, 0x40
and bl, 0x10
cmove ecx, esi
or ecx, eax
pop esi
mov dword [0x666f10], ecx
pop ebx
jmp fcn.00474cb0
Function at 0x4780a0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x65a06c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.00474cb0
mov ebx, dword [ebp + 8]
lea eax, [ebx - 0x10]
cmp eax, 0x95
ja case.0x4780d1.19
movzx eax, byte [eax + 0x478244]
jmp dword [eax*4 + 0x478238]
push 1
mov ecx, edi
call fcn.00564a20
mov ecx, edi
mov bl, al
call fcn.00477ee0
jmp 0x478200
push 1
mov ecx, edi
call fcn.00564a20
mov ecx, dword [0x666f10]
and ecx, 0xffffff8f
mov byte [ebp - 0x12d], al
or ebx, 0x10000
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x134], 0
lea eax, [ebp - 0x13c]
mov ecx, edi
push eax
call fcn.00564b50
test al, al
jne 0x478222
cmp byte [ebp - 0x12d], al
jmp 0x478202
push 1
mov ecx, edi
call fcn.00564a20
push 0
push 0x103
push 0x102
push dword [edi + 0x54]
mov byte [ebp - 0x12d], al
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4781fa
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 2
push ebx
call esi
push 0
push ebx
mov dword [ebp - 0x140], eax
call esi
mov esi, eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
push 0
push 8
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x12c]
push eax
push esi
push ebx
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
je 0x4781cb
xor edx, edx
mov word [ebp - 0x28], dx
jmp 0x4781cf
mov dx, word [ebp - 0x28]
mov eax, dword [0x666f10]
mov ecx, dword [ebp - 0x140]
and eax, 0xffffff8f
mov dword [ebp - 0x138], eax
movzx ecx, cx
movzx eax, dx
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x134], eax
jmp 0x478123
mov bl, byte [ebp - 0x12d]
test bl, bl
jne 0x478222
call fcn.005bd0a0
test eax, eax
jne 0x478222
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00494b92
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00494b92
mov esp, ebp
pop ebp
ret 4
Function at 0x47aba0
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5daad8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x65a06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
mov edi, eax
test edi, edi
jle 0x47ac34
push 0
mov dword [ebp - 4], 0
call fcn.004af8b3
mov eax, edi
shr eax, 1
inc eax
push 2
push eax
call fcn.004b05a8
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x10], esi
push edi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
mov ecx, dword [ebp + 8]
push esi
call fcn.00410740
push esi
call fcn.004af8b3
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 0x612d9c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4883b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x666fcc], 0
je 0x488418
push ebx
push esi
push edi
call fcn.00474cb0
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call ebx
movzx esi, ax
shr esi, 0xf
and esi, 1
push 2
shl esi, 4
call ebx
shr eax, 0xf
mov edi, esi
or edi, 0x20
and al, 1
push 4
cmove edi, esi
call ebx
shr eax, 0xf
mov ecx, edi
or ecx, 0x40
and al, 1
mov eax, dword [0x666f10]
cmove ecx, edi
and eax, 0xffffff8f
or ecx, eax
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [0x666f10], ecx
mov dword [eax], ecx
pop ebx
pop ebp
ret 4
call fcn.00492d08
int3

Function at 0x48e430
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.00474cb0
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call ebx
movzx esi, ax
shr esi, 0xf
and esi, 1
push 2
shl esi, 4
call ebx
shr eax, 0xf
mov edi, esi
or edi, 0x20
and al, 1
push 4
cmove edi, esi
call ebx
shr eax, 0xf
mov ecx, edi
or ecx, 0x40
and al, 1
mov eax, dword [0x666f10]
cmove ecx, edi
and eax, 0xffffff8f
or ecx, eax
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [0x666f10], ecx
mov dword [eax], ecx
pop ebx
pop ebp
ret 4
Function at 0x497991
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4c8168
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c7fde

Function at 0x4cc4e1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cc034

Function at 0x4d8430
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ecx + 4]
mov eax, dword [edi + 0x3c]
test eax, eax
jne 0x4d8451
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp ebx, dword [edi + 0x50]
jne 0x4d8465
cmp esi, dword [edi + 0x54]
je 0x4d854f
push 0
push 0
push 0
push ebx
push eax
mov byte [edi + 0x58], 0
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
xor ecx, ecx
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], ecx
cmp eax, ebx
jne 0x4d8492
cmp esi, ecx
jne 0x4d8494
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp esi, ecx
jg 0x4d849c
jl 0x4d8446
cmp ebx, eax
jb 0x4d8446
sub ebx, eax
sbb esi, ecx
mov dword [esp + 0xc], esi
js 0x4d84bb
jg 0x4d84b0
cmp ebx, 0x4000
jbe 0x4d84bb
mov eax, 0x4000
mov dword [esp + 0x10], eax
jmp 0x4d84c1
mov eax, ebx
mov dword [esp + 0x10], ebx
push eax
call fcn.004afadb
mov ecx, dword [esp + 0x10]
add esp, 4
mov esi, eax
test ecx, ecx
jl 0x4d8546
jg 0x4d84e0
test ebx, ebx
je 0x4d8546
nop word [eax + eax]
cmp byte [edi + 0x58], 0
jne 0x4d8546
mov eax, dword [esp + 0x10]
cdq
cmp edx, ecx
jg 0x4d84fb
jl 0x4d84f5
cmp eax, ebx
jae 0x4d84fb
mov edx, dword [esp + 0x10]
jmp 0x4d84fd
mov edx, ebx
xor eax, eax
test esi, esi
je 0x4d8533
mov dword [esp + 0x14], eax
cmp dword [edi + 0x3c], eax
je 0x4d8533
lea eax, [esp + 0x14]
push eax
push edx
push esi
push dword [edi + 0x3c]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [esp + 0x14]
add dword [edi + 0x50], eax
mov ecx, dword [esp + 0xc]
adc dword [edi + 0x54], 0
test eax, eax
jne 0x4d8533
mov byte [edi + 0x58], 1
cdq
sub ebx, eax
sbb ecx, edx
mov dword [esp + 0xc], ecx
test ecx, ecx
jg 0x4d84e0
jl 0x4d8546
test ebx, ebx
jne 0x4d84e0
push esi
call fcn.004af8b3
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8