joyce8/EMBER2024-capa huggingface dataset:
Function at 0x573e28
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x573e94
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x573edd
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0058c9d0
add esp, 8
test eax, eax
jne 0x573edb
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x573edf
jmp 0x573e8b
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x57c392
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00576327
add esp, 4
and eax, 0xff
test eax, eax
je 0x57c41b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea eax, [ebp - 0x2cc]
push eax
call fcn.00587170
add esp, 0xc
mov dword [ebp - 0x2cc], 0x10001
lea ecx, [ebp - 0x2cc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x57c419
mov ecx, dword [ebp - 0x214]
cmp ecx, dword [ebp + 0xc]
jne 0x57c419
jmp 0x57c41b
jmp 0x57c39b
mov esp, ebp
pop ebp
ret

Function at 0x57c87c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
movsx eax, byte [0x5a47f0]
test eax, eax
jne 0x57c890
call fcn.0057c7c4
xor ecx, ecx
mov cl, byte [0x5a47ed]
test ecx, ecx
jne 0x57c917
xor edx, edx
mov dl, byte [0x5a47ec]
test edx, edx
jne 0x57c917
cmp dword [0x5a48f4], 0
je 0x57c8f2
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x180
mov ecx, dword [0x5a48f4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], eax
push 0
mov edx, dword [ebp - 4]
push edx
push 0x186
mov eax, dword [0x5a48f4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x5a48f4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x57c917
push 0x10001
push 0x5a47f0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x57c917
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret
Function at 0x57f8fa
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x57f90a
xor eax, eax
jmp 0x57fad3
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x57fa8b
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 + 0x5a29a4]
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 + 0x5a29a4]
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 + 0x5a29a4]
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 + 0x5a29a4]
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 + 0x5a29a4]
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 + 0x5a29a4]
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 + 0x5a29a4]
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 + 0x5a29a4]
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 0x57f913
cmp dword [ebp + 0x10], 0
je 0x57facd
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 + 0x5a29a4]
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 0x57fa91
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x589280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x59ffb8
cmp edx, dword [eax]
je 0x5892a2
add eax, 8
inc ecx
cmp eax, 0x5a0048
jl 0x589293
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x59ffb8]
jne 0x5893d0
mov eax, dword [0x5a4970]
cmp eax, 1
je 0x5893aa
test eax, eax
jne 0x5892d3
cmp dword [0x59fcf4], 1
je 0x5893aa
cmp edx, 0xfc
je 0x5893d0
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x58930a
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.005875e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00587360
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x58934d
lea eax, [ebp - 0x1a4]
push eax
call fcn.00587360
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5a3dbc
push edi
call fcn.00587790
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.005875e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.005875f0
lea eax, [ebp - 0xa0]
push 0x5a3d9c
push eax
call fcn.005875f0
push dword [esi + 0x59ffbc]
lea eax, [ebp - 0xa0]
push eax
call fcn.005875f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0058b848
add esp, 0x2c
pop edi
jmp 0x5893d0
lea eax, [ebp + 8]
lea esi, [esi + 0x59ffbc]
push 0
push eax
push dword [esi]
call fcn.00587360
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x405f20
Capabilities:
Encode data using xor

Disassembly:
les eax, [esi]
insd dword es:[edi], dx
call dword [0x4ac127]
fdivr dword [edi]
mov ecx, esi
mov esi, dword [eax]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
invalid
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
jns 0x405de4
pop ebp
adc byte [esi - 0x7b], dl
mov bl, 0x57
jge 0x405e89
mov ebx, 1
cmp word [eax], 0
jne 0x405e74
cmp word [eax + 0x36], 0
je 0x405e79
inc ebx
sbb dword [ecx], 0xffffffcd
jmp 0x405e66
inc ebp
rol dword [ebx - 0x452ffd40], cl
mov dword [ebx + edi*2], edx
lea esi, [edx]
popfd
add al, 0x7e
push ebx
add byte [eax - 1], dl
adc eax, 0x40c17e
mov edi, eax
mov eax, dword [ebp + 0x10]
jle 0x405e51
inc eax
add byte [ebx + 0x10458bf8], cl
lea ecx, [ebx + 0x40]
test eax, 0xfc158956
call dword [0xba40c15c]
add dword [ecx + 8], 0xffffff8d
cmp al, 0xfc
cmp eax, 0x1055b7b0
push ecx
push eax
mov eax, dword [ebp + 0xc]
push edx
push eax
pop esi
xor al, 0x4d
add byte [eax], al
mov edx, dword [ebp - 4]
sub dword [edi], eax
sub ebx, dword [esi]
push esi
push eax
call dword [0xbe1c120]
insb byte es:[edi], dx
add ebx, ebx
add byte [ecx - 0x7d], bh
jge 0x405ed1
or ecx, ebx
xor al, ch
sub byte [ecx], 0x8d
out 0x8d, eax
inc edi
add al, 0x89
dec ebp
or al, 0x41
push cs
push eax
cld
add edx, 2
cmp dword [eax], edx
xor byte ss:[edx - 0x2d89b9ea], cl
mov dword [eax], esi
jne 0x405eeb
mov edx, dword [ebp + 0xc]
add eax, 4
dec edx
adc byte [ebp + 0xc], 0x75
loope 0x405e8e
retf
push ebp
mov dword [ecx], ebp
sub esp, ebp
cwde
add dword [eax + 0x388a100], esp
inc ecx
add byte [ebx - 0x367abfc5], cl
or byte [eax + 0x74004103], 6
cmp al, al
dec eax
in eax, 0x5d
ja 0x405ece
rcr byte [edi + 0x52], 0xe8
xlatb
jnp 0x405f48
pop dword [ebx - 0x3f7afb3c]
jne 0x40600a
inc ebx
pushal
rol byte [eax], 0xa3
push esp
or dword [ecx], eax
rcr esp, 1
jmp 0xc0c65f65
nop
nop
nop
nop
nop
nop
sbb byte [ebx + 0x1445d7ec], cl
push edi
test al, 1
je 0x40602e
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], 0
mov edi, dword [ebx]
adc dword [ecx], eax
add byte [ebp - 0x3e], bl
adc byte [eax], al
mov bl, 0x7d
or al, 0x4d
aas
add byte [eax + eax], al
add byte [esi + 0x70], dh
mov ecx, dword [ebp + 8]
dec ecx
push ss
add byte [eax], al
adc dword [edi - 0x39], ebx
add dword [eax], eax
add byte [eax], al
add byte [ebp - 0x3e], bl
mov dword [0x5d8b5300], eax
adc byte [esi + 0x68], dl
and al, 0x30
add byte [eax], al
push ebx
in al, 4
ljmp 0x33d5

Function at 0x40a1a0
Capabilities:
Check mutex on windows

Disassembly:
mov dword [esi + 4], eax
or edx, ebx
not eax
clc
push esi
test dword [edi - 0x37960bab], eax
mov dword [edx - 0x9208dc], eax
add edi, edi
std
pop ebx
je 0x40a226
leave
inc edi
add al, 0x6a
add byte [esi - 0x2717a9b0], cl
idiv bh
jmp dword [esi + 0x35f10c4]
add byte [edi + edx*4], dl
pop ss
mov edx, dword [esi]
or dword [0x15ffab0c], 0x40
rcr byte [edi], 0x8b
push es
invalid
Function at 0x406940
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47370b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004660d8
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4069c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00463967
mov eax, dword [eax]
push 0x4a51e0
push eax
call fcn.00455d14
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00466363
test bl, bl
je 0x4069c2
push 0x4a51e0
lea ecx, [esp + 0xc]
call fcn.0046673f
push 0x4a8d38
lea ecx, [esp + 0xc]
call fcn.0046673f
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4069fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00466363
jmp 0x406ac9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x406a82
lea edx, [esp + 0x7c]
push 0x4a8d34
push edx
call fcn.00455d14
add esp, 8
test eax, eax
je 0x406a82
lea eax, [esp + 0x7c]
push 0x4a8d30
push eax
call fcn.00455d14
add esp, 8
test eax, eax
je 0x406a82
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406a12
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00466363
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x407d20
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x407d82
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x407d90
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47386b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4afee0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x407ec8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x407df6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00466363
xor eax, eax
jmp 0x407f3f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004664ec
push esi
lea ecx, [esp + 0xc]
call fcn.0046677b
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x407f1d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.00407d20
test eax, eax
jne 0x407f1d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocStringLen
mov ecx, edi
call fcn.00407d20
test eax, eax
jne 0x407f1d
lea eax, [esp + 0x14]
push 0x4a8d4c
push eax
call fcn.00456df0
mov esi, eax
add esp, 8
test esi, esi
jne 0x407efc
lea ecx, [esp + 0x14]
push 0x4a8d48
push ecx
call fcn.00456d70
mov esi, eax
add esp, 8
test esi, esi
jne 0x407efc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x407eff
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046649c
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x407e0e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00466363
xor eax, eax
jmp 0x407f3f
mov byte [esi], 0
push 0x4a8d44
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00466363
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x418570
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x4185de
cmp si, 0x69
ja 0x4185de
add esi, 0xffd0
cmp si, 0x11
je 0x4185ae
push 0x11
call edi
test ax, ax
jge 0x4185ae
or esi, 0x2000
cmp si, 0x10
je 0x4185c3
push 0x10
call edi
test ax, ax
jge 0x4185c3
or esi, 0x4000
cmp si, 0x12
je 0x4185d8
push 0x12
call edi
test ax, ax
jge 0x4185d8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4185eb
mov esi, 0xbd
jmp 0x41859f
cmp si, 0x6e
jne 0x4185f8
mov esi, 0xbe
jmp 0x41859f
cmp si, 0x6f
jne 0x418599
mov esi, 0xbf
jmp 0x41859f

Function at 0x419c90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4c0cf0]
xor edx, edx
cmp eax, edx
jne 0x419cb6
xor eax, eax
mov byte [eax + 0x4c0bf0], al
inc eax
cmp eax, 0x100
jl 0x419c9e
mov dword [0x4c0cf0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4c0bf0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x419d47
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 0x419d1a
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 0x419ce8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x419dc0
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 0x419e13
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 0x419dfa
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 0x420850
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x4209e8
cmp ebp, ebx
jle 0x4209e8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, reloc.OLEAUT32.dll_VariantInit
mov dword [esp + 0x10], edi
jns 0x4208ae
dec eax
or eax, 0xfffffff8
inc eax
je 0x4208b5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x4208c4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4208cb
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.004660a4
add esp, 4
cmp eax, ebx
je 0x4208ec
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.004660a4
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x4209de
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x4209c5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x4209b1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x4209a6
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x4209b4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x4209b4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x420950
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x420941
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x423a20
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x474d38
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov edi, dword [esp + 0x44]
mov esi, ecx
test edi, edi
jne 0x423a59
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24
push 0x400
lea ecx, [esp + 0xc]
call fcn.0046db7d
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.0046dc05
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.00423ae0
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.0046dc42
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24