joyce8/EMBER2024-capa huggingface dataset:
Function at 0x631880
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x6318b1
mov ecx, dword [0x6a3a88]
mov dl, 1
mov eax, dword [0x62ee54]
call fcn.0042bf54
call fcn.00409588
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x6318de
mov ecx, dword [0x6a39c0]
mov dl, 1
mov eax, dword [0x62ee54]
call fcn.0042bf54
call fcn.00409588
xor eax, eax
push ebp
push 0x63195a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004083ec
cmp byte [ebp + 8], 0
je 0x631936
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0063169c
mov edi, dword [ebp - 4]
lea esi, [ebp - 0x18]
add edi, 0x18
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.00631098
jmp 0x631950
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00630a38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x631977
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x631b8c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00630e48
xor eax, eax
push ebp
push 0x631cff
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x631ce9
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x631bd8
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x631be2
call fcn.0040967c
jmp 0x631d06
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0046fcf8
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x631cde
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x631c91
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x631c7e
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004083ec
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.00631b44
pop ecx
mov eax, dword [ebp - 4]
movzx edx, byte [0x631d14]
cmp dl, byte [eax + 0x28]
je 0x631ce5
call fcn.0042bdf4
jmp 0x631ce5
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0046fd18
jmp 0x631ce5
cmp edi, ebx
jge 0x631cad
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0046fd18
jmp 0x631be2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0046fcf8
cmp edx, dword [esp + 4]
jne 0x631ccd
cmp eax, dword [esp]
pop edx
pop eax
jne 0x631be2
push ebp
call fcn.00631b44
pop ecx
jmp 0x631ce5
push ebp
call fcn.00631b44
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x631d06
mov eax, dword [ebp - 4]
call fcn.00630e50
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x631d48
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x631e6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00630e48
xor eax, eax
push ebp
push 0x631e4f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x631d98
call fcn.0040967c
jmp 0x631e56
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x631e39
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x631e39
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004083ec
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x631e39
lea ecx, [ebp - 0x28]
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0042a8d4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x631e88
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x6a3c20]
mov dl, 1
mov eax, dword [0x62ee54]
call fcn.0042c024
call fcn.00409588
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x631e56
mov eax, dword [ebp - 4]
call fcn.00630e50
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x631e73
lea eax, [ebp - 0x28]
call fcn.00409f48
ret
Function at 0x631ed8
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x63204b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00630e48
xor eax, eax
push ebp
push 0x63202e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x631f3d
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x631f3d
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x632018
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x631f50
call fcn.0040967c
jmp 0x632035
lea eax, [ebp - 0x10]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
test eax, eax
jne 0x631f77
cmp dword [ebp - 0x10], 0
jle 0x631f77
cmp ebx, dword [ebp - 0x10]
jle 0x631f77
mov ebx, dword [ebp - 0x10]
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x632018
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x632018
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004083ec
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x632018
lea ecx, [ebp - 0x2c]
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0042a8d4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, 0x632068
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
lea eax, [ebp - 0x28]
push eax
push 2
mov ecx, dword [0x6a3c20]
mov dl, 1
mov eax, dword [0x62ee54]
call fcn.0042c024
call fcn.00409588
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x632035
mov eax, dword [ebp - 4]
call fcn.00630e50
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x632052
lea eax, [ebp - 0x2c]
call fcn.00409f48
ret
Function at 0x638e40
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
mov byte [ebp - 1], cl
mov esi, edx
mov ebx, eax
cmp bl, 0x90
jne 0x638e95
push 0x90
call sub.user32.dll_GetKeyState
and ax, 1
cmp al, 1
sbb ebx, ebx
inc ebx
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_GetKeyboardState
test bl, bl
je 0x638e80
and byte [ebp - 0x72], 0xfe
jmp 0x638e84
or byte [ebp - 0x72], 1
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_SetKeyboardState
jmp 0x638f1c
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
and al, 0xff
mov byte [ebp - 2], al
test si, si
jbe 0x638f1c
mov eax, ebx
movzx eax, al
bt dword [0x6a0879], eax
jae 0x638eea
mov eax, dword [ebp + 8]
push eax
mov ecx, 1
movzx edx, byte [ebp - 2]
mov eax, ebx
call fcn.00638df4
pop ecx
cmp byte [ebp - 1], 0
je 0x638f17
mov eax, dword [ebp + 8]
push eax
mov ecx, 3
movzx edx, byte [ebp - 2]
mov eax, ebx
call fcn.00638df4
pop ecx
jmp 0x638f17
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
movzx edx, byte [ebp - 2]
mov eax, ebx
call fcn.00638df4
pop ecx
cmp byte [ebp - 1], 0
je 0x638f17
mov eax, dword [ebp + 8]
push eax
mov ecx, 2
movzx edx, byte [ebp - 2]
mov eax, ebx
call fcn.00638df4
pop ecx
dec si
jne 0x638eaa
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x638f24
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
and al, 0xff
mov edx, ebx
movzx edx, dl
bt dword [0x6a0879], edx
jae 0x638f58
mov edx, dword [ebp + 8]
push edx
xor ecx, ecx
mov edx, eax
mov eax, ebx
call fcn.00638df4
pop ecx
pop ebx
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
mov ecx, 2
mov edx, eax
mov eax, ebx
call fcn.00638df4
pop ecx
pop ebx
pop ebp
ret
Function at 0x63dd28
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x6aade8], 0
jne 0x63dd3f
call fcn.0063dce4
mov eax, edi
dec eax
test eax, eax
jl 0x63dd67
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x6aa9e8]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x63dd49
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x640da0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x640dd1
dec al
je 0x640e0c
dec al
je 0x640e50
dec al
je 0x640ec2
jmp 0x640f5d
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x640f5d
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x640de1
jmp 0x640f5d
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x640f5d
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
movzx ecx, al
mov ecx, dword [ebx + ecx*4 + 0x40]
add dl, byte [ecx + esi]
and dl, 0xff
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x640e1c
jmp 0x640f5d
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x640f5d
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, dword [ebx + 0x24]
mov ecx, esi
dec ecx
cmp edx, ecx
jbe 0x640e83
xor edx, edx
mov dword [esp + 4], edx
jmp 0x640e98
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov ebp, dword [ebx + edx*4 + 0x40]
movzx edx, byte [ebp + esi]
add eax, dword [esp + 4]
sar eax, 1
jns 0x640eb0
adc eax, 0
add dl, al
and dl, 0xff
mov byte [ebp + esi], dl
inc esi
dec edi
jne 0x640e60
jmp 0x640f5d
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x640f5d
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, dword [ebx + 0x24]
mov ecx, esi
dec ecx
cmp edx, ecx
ja 0x640f29
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 8], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 8]
push eax
movzx eax, byte [esp + 8]
pop edx
call fcn.0063dd70
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [esp]
and al, 0xff
mov byte [edx + esi], al
inc esi
dec edi
jne 0x640ede
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x64c318
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x64c369
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x64c350
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x64c340
jmp 0x64c369
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x64c351
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x666e18
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
xor eax, eax
push ebp
push 0x666ee1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 4]
mov ecx, dword [ecx]
mov eax, ecx
test eax, eax
je 0x666e3f
sub eax, 4
mov eax, dword [eax]
mov edx, eax
test edx, edx
jns 0x666e4a
call fcn.00407d8c
mov eax, ecx
mov ecx, edx
add ecx, ecx
add ecx, eax
cmp ecx, eax
jbe 0x666e68
movzx ebx, word [eax]
xor edx, ebx
imul edx, edx, 0x1000193
add eax, 2
cmp ecx, eax
ja 0x666e56
mov ebx, edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x20]
mov edx, ebx
call fcn.0066bf24
test al, al
je 0x666eb3
lea ecx, [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x20]
mov edx, ebx
call fcn.0066b3a0
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx]
call fcn.0040aea8
jne 0x666ecb
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 4]
call fcn.0040a328
jmp 0x666ecb
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 4]
mov ecx, dword [ecx]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x20]
mov edx, ebx
call fcn.0066bafc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x666ee8
lea eax, [ebp - 4]
call fcn.00409f48
ret

Function at 0x672210
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov byte [ebp - 1], al
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ebx, eax
test ebx, ebx
je 0x67222d
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
push ebx
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
mov ecx, 1
mov edx, dword [0x6721e8]
call fcn.0040ce9c
add esp, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
test eax, eax
je 0x672257
sub eax, 4
mov eax, dword [eax]
dec eax
mov edx, eax
add eax, eax
add eax, eax
add eax, eax
sub eax, edx
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + eax*4], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
test eax, eax
je 0x67227e
sub eax, 4
mov eax, dword [eax]
dec eax
mov edx, eax
add eax, eax
add eax, eax
add eax, eax
sub eax, edx
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
lea ebx, [edx + eax*4 + 4]
movzx esi, byte [ebp - 1]
mov word [ebx], si
push 0
movzx eax, si
push eax
call sub.user32.dll_MapVirtualKeyW
mov word [ebx + 2], ax
mov dword [ebx + 4], edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x67266c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.0040a02c
xor eax, eax
push ebp
push 0x6727da
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 1
mov edx, 0x46
mov eax, 0x1e
call fcn.0043f094
mov eax, dword [ebp - 4]
test eax, eax
je 0x6726bc
sub eax, 4
mov eax, dword [eax]
mov edi, eax
lea eax, [ebp - 0x108]
mov edx, dword [ebp - 4]
mov ecx, 0xff
call fcn.0040abc0
lea eax, [ebp - 0x108]
call fcn.00672114
cmp ax, 0xffff
jne 0x672777
cmp edi, 1
jle 0x672700
mov edx, 0x78
mov eax, 0x28
call fcn.0043f094
push eax
call sub.kernel32.dll_Sleep
mov eax, dword [ebp - 4]
movzx eax, word [eax + ebx*2 - 2]
push eax
call sub.user32.dll_VkKeyScanW
mov esi, eax
lea eax, [ebp - 0x10c]
mov edx, dword [ebp - 4]
movzx edx, word [edx + ebx*2 - 2]
call fcn.0040aacc
mov eax, dword [ebp - 0x10c]
mov ecx, 1
mov edx, 0x6727f8
call fcn.0040b0f0
test eax, eax
jne 0x67274d
mov eax, dword [ebp - 4]
movzx eax, word [eax + ebx*2 - 2]
add eax, 0xffffffbf
sub ax, 0x1a
jae 0x672762
push 1
movzx ecx, word [0x672828]
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.006722b4
jmp 0x6727ae
push 0
movzx ecx, word [0x67282c]
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.006722b4
jmp 0x6727ae
lea eax, [ebp - 0x108]
mov edx, dword [ebp - 4]
mov ecx, 0xff
call fcn.0040abc0
lea eax, [ebp - 0x108]
call fcn.00672114
mov esi, eax
push 1
movzx ecx, word [0x67282c]
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.006722b4
mov bl, 1
jmp 0x6727b9
inc ebx
cmp edi, ebx
jge 0x6726be
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6727e1
lea eax, [ebp - 0x10c]
call fcn.00409f48
lea eax, [ebp - 4]
call fcn.00409f48
ret
Function at 0x679110
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x24c], edx
mov dword [ebp - 0x248], edx
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a02c
xor eax, eax
push ebp
push 0x679291
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
xor edx, edx
mov eax, 2
call fcn.006399a8
mov esi, eax
mov dword [ebp - 0x230], 0x22c
lea edx, [ebp - 0x230]
mov eax, esi
call fcn.006399c8
mov ebx, eax
jmp 0x67925d
lea eax, [ebp - 0x23c]
lea edx, [ebp - 0x20c]
mov ecx, 0x104
call fcn.0040ab60
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 0x238]
call fcn.00426720
mov eax, dword [ebp - 0x238]
lea edx, [ebp - 0x234]
call fcn.00424d3c
mov eax, dword [ebp - 0x234]
push eax
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 4]
call fcn.00424d3c
mov edx, dword [ebp - 0x240]
pop eax
call fcn.0040aea8
je 0x679234
lea eax, [ebp - 0x248]
lea edx, [ebp - 0x20c]
mov ecx, 0x104
call fcn.0040ab60
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
call fcn.00424d3c
mov eax, dword [ebp - 0x244]
push eax
lea edx, [ebp - 0x24c]
mov eax, dword [ebp - 4]
call fcn.00424d3c
mov edx, dword [ebp - 0x24c]
pop eax
call fcn.0040aea8
jne 0x67924e
push 0
mov eax, dword [ebp - 0x228]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edi, eax
lea edx, [ebp - 0x230]
mov eax, esi
call fcn.006399e8
mov ebx, eax
test ebx, ebx
jne 0x67918f
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x679298
lea eax, [ebp - 0x24c]
mov edx, 7
call fcn.00409fa8
lea eax, [ebp - 4]
call fcn.00409f48
ret

Function at 0x679414
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
xor edx, edx
push ebp
push 0x679456
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x679468
push 0
call sub.user32.dll_FindWindowW
test bl, bl
je 0x679444
push 5
push eax
call sub.user32.dll_ShowWindow
jmp 0x67944c
push 0
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x679460
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x679488
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov edi, eax
call sub.kernel32.dll_GetTickCount
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [0x6a3b00]
mov eax, dword [eax]
call fcn.00620db0
push 1
call sub.kernel32.dll_Sleep
mov eax, ebx
sub eax, esi
xor edx, edx
push edx
push eax
mov eax, edi
cdq
cmp edx, dword [esp + 4]
jne 0x6794c8
cmp eax, dword [esp]
pop edx
pop eax
ja 0x679494
jmp 0x6794cc
pop edx
pop eax
jg 0x679494
pop edi
pop esi
pop ebx
ret
Function at 0x6794d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x679529
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, 0x679540
call fcn.0040ad10
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040aaa8
push eax
push 0x679548
push 0x679558
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x679530
lea eax, [ebp - 4]
call fcn.00409f48
ret

Function at 0x679564
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00426ba4
add esp, 0x20c
pop ebx
ret

Function at 0x679590
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x40], eax
xor eax, eax
push ebp
push 0x67965b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x67963b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x3c
call fcn.004079b4
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, 0x67966c
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
call fcn.00679564
lea eax, [ebp - 0x40]
mov edx, 0x679684
call fcn.0040acb8
mov eax, dword [ebp - 0x40]
call fcn.0040aaa8
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x3c]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
jne 0x679631
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x679645
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x679645
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x679662
lea eax, [ebp - 0x40]
call fcn.00409f48
ret

Function at 0x6796a0
Capabilities:
Find taskbar

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, eax
push 0
push 0x67971c
call sub.user32.dll_FindWindowW
mov ebx, eax
push 0
push 0x679738
push 0
push ebx
call sub.user32.dll_FindWindowExW
mov edi, eax
push 0x679744
push 0
call sub.user32.dll_FindWindowW
mov esi, eax
test ebx, ebx
je 0x6796de
push ebp
push ebx
call sub.user32.dll_ShowWindow
test edi, edi
je 0x6796e9
push ebp
push edi
call sub.user32.dll_ShowWindow
test esi, esi
je 0x679715
test ebp, ebp
jne 0x679709
push 0
push 0
push 0xb
push esi
call sub.user32.dll_SendMessageW
mov eax, 0x679770
call fcn.006794d0
jmp 0x679715
push 0
push 1
push 0xb
push esi
call sub.user32.dll_SendMessageW
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x679fe8
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffd8
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
mov edx, ebx
lea eax, [esp + 4]
call fcn.00426ba4
add esp, 0x28
pop ebx
ret