joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140153240
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0xffffffffffffffff
inc qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
cmp byte [rax + rcx], 0
jne 0x140153261
mov rax, qword [rsp + 0x20]
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
mov r8d, 1
lea rdx, [0x140365a90]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [sym.imp.WS2_32.dll_send]
add rsp, 0x38
ret

Function at 0x140153370
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x478
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
mov r8d, dword [rsp + 0x4a0]
lea rdx, [0x140365a68]
lea rcx, [rsp + 0x60]
call fcn.140014f70
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0xffffffffffffffff
inc qword [rsp + 0x30]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
cmp byte [rax + rcx], 0
jne 0x1401533d7
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rsp + 0x4a0]
add rax, rcx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov rcx, rax
call fcn.140294e08
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
inc qword [rsp + 0x38]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
cmp byte [rax + rcx], 0
jne 0x140153428
mov rax, qword [rsp + 0x38]
lea rcx, [rsp + 0x60]
mov rdi, qword [rsp + 0x28]
mov rsi, rcx
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [rsp + 0x4a0]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x40], 0xffffffffffffffff
inc qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x40]
cmp byte [rcx + rdx], 0
jne 0x14015346f
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x28]
add rdx, rcx
mov rcx, rdx
mov rdi, rcx
mov rsi, qword [rsp + 0x498]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov byte [rcx + rax], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x490]
mov rcx, qword [rax + 8]
call qword [sym.imp.WS2_32.dll_send]
mov rcx, qword [rsp + 0x28]
call fcn.140294df4
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x478
pop rdi
pop rsi
ret
Function at 0x140153500
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x30], 1
mov byte [rsp + 0x60], 0
mov dword [rsp + 0x34], 0x32000
movsxd rax, dword [rsp + 0x34]
mov rcx, rax
call fcn.14027fa00
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x30], 0
jle 0x14015365b
xor r9d, r9d
mov r8d, 1
lea rdx, [rsp + 0x60]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 8]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x1401535a4
mov rax, qword [rsp + 0x90]
mov byte [rax + 0xa00014], 1
lea rax, [0x140365a94]
jmp 0x14015366e
movsx eax, byte [rsp + 0x60]
cmp eax, 0xa
jne 0x1401535b3
jmp 0x14015365b
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x20], eax
jl 0x14015363a
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
cdqe
mov rcx, rax
call fcn.14027fa00
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
movsxd rax, dword [rsp + 0x20]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x28]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.14027f980
cmp qword [rsp + 0x38], 0
jne 0x14015361d
mov qword [rsp + 0x58], 0
jmp 0x140153630
mov qword [rsp + 0x28], 0x8123
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx edx, byte [rsp + 0x60]
mov byte [rcx + rax], dl
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x140153553
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x78
pop rdi
pop rsi
ret

Function at 0x140153690
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
add rax, 0x10
mov rdi, rax
xor eax, eax
mov ecx, 0xa00000
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 0
mov r9d, 8
mov r8d, 4
lea rdx, [rsp + 0x20]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [sym.imp.WS2_32.dll_recv]
cmp dword [rsp + 0x20], 0
jne 0x1401536f6
xor eax, eax
jmp 0x140153738
mov rax, qword [rsp + 0x40]
add rax, 0x10
mov r9d, 8
mov r8d, dword [rsp + 0x20]
mov rdx, rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [sym.imp.WS2_32.dll_recv]
cmp qword [rsp + 0x48], 0
je 0x14015372f
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov rax, qword [rsp + 0x40]
add rax, 0x10
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x30
pop rdi
ret
Function at 0x140159450
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 0
movsx ecx, byte [rsp + 0x10]
mov rdx, qword [rsp + 8]
mov eax, dword [rdx + rax]
xor eax, ecx
and eax, 0xff
cdqe
lea rcx, [0x140366d40]
mov edx, 4
imul rdx, rdx, 0
mov r8, qword [rsp + 8]
mov edx, dword [r8 + rdx]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 8]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 8]
mov ecx, dword [rdx + rcx]
and ecx, 0xff
mov rdx, qword [rsp + 8]
add ecx, dword [rdx + rax]
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 8]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
imul eax, dword [rcx + rax], 0x8088405
inc eax
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 8]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 2
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rsp + 8]
mov ecx, dword [rdx + rcx]
shr ecx, 0x18
mov rdx, qword [rsp + 8]
mov eax, dword [rdx + rax]
xor eax, ecx
and eax, 0xff
mov eax, eax
lea rcx, [0x140366d40]
mov edx, 4
imul rdx, rdx, 2
mov r8, qword [rsp + 8]
mov edx, dword [r8 + rdx]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rsp + 8]
mov dword [rdx + rcx], eax
ret

Function at 0x14015aab0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x78]
imul rax, qword [rsp + 0x80]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
test eax, eax
je 0x14015ab4b
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x14015ab3b
mov rax, qword [rsp + 0x88]
mov byte [rax + 0x10], 1
mov eax, dword [rsp + 0x3c]
xor edx, edx
div qword [rsp + 0x78]
jmp 0x14015abd7
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x2c]
add eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x88]
cmp eax, dword [rcx + 0x28]
jbe 0x14015ab83
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0x2c]
mov eax, dword [rax + 0x28]
sub eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0x2c]
mov rdx, qword [rsp + 0x88]
add rcx, qword [rdx + 0x20]
mov rdi, qword [rsp + 0x70]
mov rsi, rcx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x2c]
add eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0x2c], eax
mov eax, dword [rsp + 0x34]
xor edx, edx
div qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x14015cd70
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x90]
cmp qword [rax], 0
jne 0x14015cdb5
mov rax, qword [rsp + 0x90]
cmp dword [rax + 8], 0xffffffff
je 0x14015cdbf
mov eax, 0x1000000
jmp 0x14015cf4c
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0xa0]
mov dword [rax + 0x250], ecx
mov rax, qword [rsp + 0x90]
add rax, 0x254
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rax, qword [rsp + 0x90]
add rax, 0x254
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
inc qword [rsp + 0x38]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
cmp word [rax + rcx*2], 0
jne 0x14015ce0c
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x90]
movzx eax, word [rcx + rax*2 + 0x252]
mov word [rsp + 0x24], ax
movzx eax, word [rsp + 0x24]
cmp eax, 0x5c
je 0x14015ce93
movzx eax, word [rsp + 0x24]
cmp eax, 0x2f
je 0x14015ce93
mov rax, qword [rsp + 0x90]
add rax, 0x254
mov qword [rsp + 0x28], rax
sub qword [rsp + 0x28], 2
add qword [rsp + 0x28], 2
mov rax, qword [rsp + 0x28]
cmp word [rax], 0
jne 0x14015ce69
mov rax, qword [rsp + 0x28]
lea rcx, [0x14036660c]
mov rdi, rax
mov rsi, rcx
mov ecx, 4
rep movsb byte [rdi], byte [rsi]
cmp dword [rsp + 0xa8], 1
jne 0x14015ceec
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
je 0x14015cecb
mov dword [rsp + 0x30], 1
jmp 0x14015ced3
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14015ceec
mov eax, 0x2000000
jmp 0x14015cf4c
lea r9, [rsp + 0x58]
mov r8d, dword [rsp + 0xa8]
mov edx, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
call fcn.14015a620
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14015cf20
mov eax, dword [rsp + 0x58]
jmp 0x14015cf4c
mov rcx, qword [rsp + 0x48]
call fcn.14015b010
mov rcx, qword [rsp + 0x90]
mov qword [rcx], rax
mov rax, qword [rsp + 0x90]
cmp qword [rax], 0
jne 0x14015cf4a
mov eax, 0x200
jmp 0x14015cf4c
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x14015ee00
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x338
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov edx, 0xf8
lea rcx, [rsp + 0x110]
call fcn.140003df0
mov edx, 1
lea rcx, [rsp + 0x110]
call fcn.1400ba720
nop
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x108]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140368ae4]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x14015ef4a
lea rax, [rsp + 0x120]
lea rdx, [0x140161ec0]
mov rcx, rax
call fcn.140160b60
mov edx, dword [rsp + 0x108]
mov rcx, rax
call fcn.140017c00
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x110]
call fcn.1400ba640
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x110]
call fcn.1400ba640
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x50]
call fcn.140004a20
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x58]
call fcn.140008a10
mov rdi, qword [rsp + 0x350]
mov rsi, rax
mov rax, qword [rsp + 0x60]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x88]
call fcn.1400089b0
nop
lea rcx, [rsp + 0xa8]
call fcn.1400089b0
nop
lea rcx, [rsp + 0x110]
call fcn.14009af60
jmp 0x14015f0fd
mov dword [rsp + 0x44], 0x41
jmp 0x14015ef5e
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x5b
jge 0x14015f0f0
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x40], al
lea rax, [rsp + 0x310]
mov rdi, rax
xor eax, eax
mov ecx, 0xa
rep stosb byte [rdi], al
movsx eax, byte [rsp + 0x40]
mov r8d, eax
lea rdx, str._c:_
lea rcx, [rsp + 0x310]
call fcn.140014f70
mov edx, 0xf8
lea rcx, [rsp + 0x210]
call fcn.140003df0
mov edx, 1
lea rcx, [rsp + 0x210]
call fcn.1400ba720
nop
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x10c]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x310]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x14015f0de
lea rax, [rsp + 0x220]
lea rdx, [0x140161ec0]
mov rcx, rax
call fcn.140160b60
mov edx, dword [rsp + 0x10c]
mov rcx, rax
call fcn.140017c00
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x210]
call fcn.1400ba640
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x210]
call fcn.1400ba640
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x70]
call fcn.140004a20
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x78]
call fcn.140008a10
mov rdi, qword [rsp + 0x350]
mov rsi, rax
mov rax, qword [rsp + 0x80]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0xc8]
call fcn.1400089b0
nop
lea rcx, [rsp + 0xe8]
call fcn.1400089b0
nop
lea rcx, [rsp + 0x210]
call fcn.14009af60
nop
lea rcx, [rsp + 0x110]
call fcn.14009af60
jmp 0x14015f0fd
lea rcx, [rsp + 0x210]
call fcn.14009af60
jmp 0x14015ef54
lea rcx, [rsp + 0x110]
call fcn.14009af60
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x338
pop rdi
pop rsi
ret
Function at 0x14015fca0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x80], 0
jg 0x14015fcd4
xor eax, eax
jmp 0x14015fe80
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x14015fcfc
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.1400ba3e0
jmp 0x14015fe80
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x70]
call fcn.1400c06c0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x14015fd98
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.140007040
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x70]
call fcn.1400c0890
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.140008570
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call fcn.1400c07f0
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x14015fe70
mov rcx, qword [rsp + 0x70]
call fcn.140161330
mov qword [rsp + 0x38], 0xfff
cmp qword [rsp + 0x40], 0xfff
jbe 0x14015fe38
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.14029bdbc
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x28], 0xfff
je 0x14015fe36
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x14015fe80
jmp 0x14015fdbe
cmp qword [rsp + 0x40], 0
jbe 0x14015fe70
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.14029bdbc
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x68
ret
Function at 0x14016c220
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x14040ebb0], 0
jne 0x14016c235
xor edx, edx
mov ecx, 0x10001
jmp fcn.14016dc60
jmp 0x14016e980
push rbx
sub rsp, 0x80
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14016ea17
cmp dword [rsp + 0x38], 0x12
jne 0x14016e9e2
mov rbx, qword [0x14040ef98]
test rbx, rbx
je 0x14016e9f8
nop word [rax + rax]
mov rcx, rbx
call fcn.14016b9e0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14016e9d0
jmp 0x14016e9f8
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x14016e9b7
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x14016eac0
mov rdx, qword [0x1403a2cf8]
mov rcx, rax
mov qword [rsp + 0x90], rdi
call qword [sym.imp.USER32.dll_GetPropW]
mov rdi, rax
test rax, rax
je 0x14016eab8
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0xa1
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx eax, ax
cmp ebx, 0x8000
jae 0x14016ea87
cmp byte [rdi + 0x1d4], 1
jne 0x14016ea87
call fcn.14016fbd0
movsx r8d, word [0x14040f728]
mov edx, 0x154
jmp 0x14016eaa9
cmp eax, 0x8000
jae 0x14016eab8
cmp byte [rdi + 0x1d8], 1
jne 0x14016eab8
call fcn.14016fbd0
movsx r8d, word [0x14040f730]
mov edx, 0x158
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rcx, rdi
call fcn.140170ec0
mov rdi, qword [rsp + 0x90]
mov rbx, qword [0x14040fe20]
test rbx, rbx
je 0x14016eb42
mov rcx, qword [rbx + 0x340]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
cmp dword [rbx + 0x36c], eax
jne 0x14016eb06
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x370], eax
je 0x14016eb42
mov eax, r8d
mov dword [rsp + 0x60], ecx
cdq
mov dword [rbx + 0x36c], ecx
mov rcx, qword [rbx + 0x340]
sub eax, edx
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x370], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x80
pop rbx
ret
Function at 0x14016d790
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x100
call fcn.140282700
xor edx, edx
lea rcx, [0x14040f73a]
mov r8d, 0x6d1
call fcn.140282700
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1e0], rsi
sub r14, 0x480
lea r15, [0x14040f4c0]
xor r13d, r13d
lea r12, [0x14040f7da]
mov ebx, 0x20
movsx edi, word [r15]
cmp edi, 0xffffffff
je 0x14016d935
cmp ebx, 0x140
jl 0x14016d8b0
cmp ebx, 0x14e
jg 0x14016d8b0
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], WSAGetLastError
mov dword [rsp + 0x64], WSASetLastError
mov dword [rsp + 0x68], WSACleanup
mov dword [rsp + 0x6c], reloc.WS2_32.dll_WSAGetLastError
mov dword [rsp + 0x70], WSASetLastError
mov dword [rsp + 0x74], WSACleanup
mov dword [rsp + 0x78], WSASetLastError
mov esi, dword [r14]
jmp 0x14016d8bf
mov edx, 1
mov ecx, edi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov esi, eax
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov edx, edi
mov ecx, esi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x14016d902
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov edx, edi
mov ecx, esi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x14016d935
mov qword [rsp + 0x38], r13
lea r8, [rbp - 0x80]
mov qword [rsp + 0x30], r13
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r12, 5
add r14, 4
add r15, 2
cmp ebx, 0x15c
jle 0x14016d812
mov rsi, qword [rsp + 0x1e0]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14027f960
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14016fbd0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ebx, ax
mov ecx, send
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, ebx
mov esi, 0x8000
or edi, 2
mov ecx, reloc.WS2_32.dll_select
and ax, si
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
and ax, si
mov ecx, 0x5c
mov esi, edi
or esi, 4
test ax, ax
cmove esi, edi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x5b
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, esi
mov ecx, socket
or edi, 8
or bx, ax
cmovns edi, esi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, edi
mov ecx, 0x90
or ebx, 0x10
and al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
and al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret

Function at 0x14016fc90
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, send
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov esi, 0x8000
or edi, 2
mov ecx, reloc.WS2_32.dll_select
and ax, si
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
and ax, si
mov ecx, 0x5c
mov esi, edi
or esi, 4
test ax, ax
cmove esi, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x5b
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, esi
mov ecx, socket
or edi, 8
or bx, ax
cmovns edi, esi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, edi
mov ecx, 0x90
or ebx, 0x10
and al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
and al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret