joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004be80
Capabilities:
Create http request

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x14004be97
movzx eax, word [rcx + 0x100]
jmp 0x14004be9e
movzx eax, word [rcx + 0x98]
movsx ecx, ax
lea r8, [rbx + 0x148]
cmp edx, 1
je 0x14004beb4
lea r8, [rbx + 0xe0]
mov rax, qword [rbx + 0x168]
cmp ecx, 1
jne 0x14004bec4
mov edx, ecx
jmp 0x14004beda
cmp ecx, 2
jne 0x14004bed8
mov r8, qword [r8]
lea r9, str._local_
lea edx, [rcx + 1]
jmp 0x14004bee0
xor edx, edx
xor r9d, r9d
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbx + 8], rax
test rax, rax
je 0x14004bf26
cmp byte [rbx + 0x19c], 0
je 0x14004bf24
and dword [rsp + 0x44], 0
mov r9d, 8
lea r8, [rsp + 0x40]
lea edx, [r9 + 0x2a]
xor ecx, ecx
mov dword [rsp + 0x40], 1
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov al, 1
add rsp, 0x30
pop rbx
ret

Function at 0x14004c210
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x288
mov rcx, rdx
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov ebp, r9d
mov sil, bl
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004c2a5
lea rdx, [0x140098df4]
lea rcx, [rsp + 0x5c]
call fcn.1400158dc
test eax, eax
je 0x14004c293
lea rdx, [0x14009f568]
lea rcx, [rsp + 0x5c]
call fcn.1400158dc
test eax, eax
je 0x14004c293
mov rdx, qword [rsp + 0x2c0]
lea rcx, [rsp + 0x5c]
mov r8d, ebp
call fcn.14003b520
test al, al
je 0x14004c2c3
mov sil, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14004c24d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov bpl, byte [rsp + 0x2d0]
test bpl, bpl
jne 0x14004c2d3
mov al, sil
jmp 0x14004c38e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14004c38e
lea rdx, [rsp + 0x30]
lea rcx, [0x14009f560]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004c381
mov esi, dword [rsp + 0x2c8]
test byte [rsp + 0x30], 0x10
je 0x14004c36b
lea rdx, [0x140098df4]
lea rcx, [rsp + 0x5c]
call fcn.1400158dc
test eax, eax
je 0x14004c36b
lea rdx, [0x14009f568]
lea rcx, [rsp + 0x5c]
call fcn.1400158dc
test eax, eax
je 0x14004c36b
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r8, qword [rsp + 0x2c0]
mov rdx, qword [rsp + 0x2b8]
mov rcx, qword [rsp + 0x2b0]
mov r9d, esi
mov byte [rsp + 0x20], bpl
call fcn.14004c210
test al, al
je 0x14004c383
lea rcx, [0x14009f568]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14004c2f9
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
add rsp, 0x288
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004c8a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400c43d4], 0
lea rbx, [0x1400c3a00]
jne 0x14004c8c5
xor ecx, ecx
call fcn.1400174e0
mov rcx, rax
call fcn.140039960
mov dword [reloc.WSOCK32.dll_accept], 0x270
mov qword [0x1400c39f0], rbx
mov r9d, 0xe3
mov r10d, 0x9908b0df
mov r11d, 0x7ffffffe
mov edx, dword [rbx + 4]
mov al, dl
and al, 1
neg al
sbb ecx, ecx
xor edx, dword [rbx]
and edx, r11d
and ecx, r10d
xor edx, dword [rbx]
shr edx, 1
xor edx, dword [rbx + 0x634]
xor edx, ecx
mov dword [rbx], edx
add rbx, 4
dec r9d
jne 0x14004c8e8
mov r9d, 0x18c
lea r8, [rbx + 4]
mov edx, dword [r8]
mov al, dl
and al, 1
neg al
sbb ecx, ecx
xor edx, dword [rbx]
and edx, r11d
and ecx, r10d
xor edx, dword [rbx]
shr edx, 1
xor edx, dword [rbx - 0x38c]
xor edx, ecx
dec r9d
mov dword [rbx], edx
mov rbx, r8
jne 0x14004c918
mov ecx, dword [0x1400c3a00]
mov al, cl
and al, 1
neg al
mov eax, dword [r8]
sbb edx, edx
xor eax, ecx
and eax, r11d
and edx, r10d
xor eax, dword [r8]
shr eax, 1
xor eax, dword [r8 - 0x38c]
xor eax, edx
mov dword [r8], eax
add rsp, 0x20
pop rbx
ret

Function at 0x14004cdc0
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x60
mov eax, dword [rcx]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov r10, r8
mov rbx, rdx
mov dword [rsp + 0x40], reloc.OLEAUT32.dll_SafeArrayGetElement
test al, 0x10
je 0x14004ce06
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x14004ce49
and qword [rbx], 0
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
test al, 1
je 0x14004ce30
mov rax, qword [rdx]
test rax, rax
jne 0x14004ce00
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, r10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14004cea5
or rax, 0xffffffffffffffff
jmp 0x14004ce00
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
test rax, rax
je 0x14004ce5c
cmp rax, 0xffffffffffffffff
je 0x14004ce5c
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.140039c10
jmp 0x14004cdfd
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x14009c7e8]
mov edx, 0x80000000
mov r8d, 1
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14004cdf9
test rax, rax
je 0x14004cdf9
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.140039c10
mov rcx, rbx
call fcn.140039c80
mov r11, qword [rsp + 0x70]
mov qword [rbx], r11
jmp 0x14004cdfd
lea r8, [rcx + 0x28]
lea rdx, [rcx + 0x30]
jmp 0x14004cdc0
Function at 0x14004ced0
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x60
mov eax, dword [rcx]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov rbx, r9
mov dword [rsp + 0x40], reloc.OLEAUT32.dll_SafeArrayGetElement
test al, 0x10
je 0x14004cf11
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x14004cf57
and qword [rbx], 0
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
test edx, eax
je 0x14004cf40
mov rax, qword [r9]
test rax, rax
jne 0x14004cf0b
mov rcx, qword [rsp + 0x90]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14004cfb3
or rax, 0xffffffffffffffff
jmp 0x14004cf0b
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
test rax, rax
je 0x14004cf6a
cmp rax, 0xffffffffffffffff
je 0x14004cf6a
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.140039c10
jmp 0x14004cf08
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x14009c7e8]
mov edx, 0x40000000
mov r8d, 2
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14004cf04
test rax, rax
je 0x14004cf04
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.140039c10
mov rcx, rbx
call fcn.140039c80
mov r11, qword [rsp + 0x70]
mov qword [rbx], r11
jmp 0x14004cf08

Function at 0x14004d010
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x58], 0
call fcn.140039cb0
test al, al
je 0x14004d052
test rdx, rdx
je 0x14004d052
test r8, r8
je 0x14004d052
and qword [rsp + 0x20], 0
lea rbx, [rcx + 0x28]
lea r9, [rsp + 0x58]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14004d052
mov rcx, rbx
call fcn.140039c80
mov eax, dword [rsp + 0x58]
add rsp, 0x30
pop rbx
ret
Function at 0x14004d060
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x60
mov eax, dword [rcx]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov r10, r8
mov rbx, rdx
mov dword [rsp + 0x40], reloc.OLEAUT32.dll_SafeArrayGetElement
test al, 0x10
je 0x14004ce06
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x14004ce49
and qword [rbx], 0
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
test al, 1
je 0x14004ce30
mov rax, qword [rdx]
test rax, rax
jne 0x14004ce00
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, r10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14004cea5
or rax, 0xffffffffffffffff
jmp 0x14004ce00
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
test rax, rax
je 0x14004ce5c
cmp rax, 0xffffffffffffffff
je 0x14004ce5c
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.140039c10
jmp 0x14004cdfd
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x14009c7e8]
mov edx, 0x80000000
mov r8d, 1
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14004cdf9
test rax, rax
je 0x14004cdf9
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.140039c10
mov rcx, rbx
call fcn.140039c80
mov r11, qword [rsp + 0x70]
mov qword [rbx], r11
jmp 0x14004cdfd
lea r8, [rcx + 0x28]
lea rdx, [rcx + 0x30]
jmp 0x14004cdc0

Function at 0x14004d580
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp dl, 1
jne 0x14004d5b2
call fcn.14003e410
test al, al
jne 0x14004d5cf
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, 1
jmp 0x14004d5c5
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
mov edx, ebx
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
add rsp, 0x20
pop rbx
ret
Function at 0x14004d8f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov ebx, dword [rsp + 0x80]
xor edi, edi
mov esi, r9d
mov rbp, r8
mov r12, rdx
mov r13, rcx
mov byte [0x1400b396e], dil
test ebx, ebx
je 0x14004d966
mov byte [0x1400b396f], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x80]
lea r8, [0x14004d7d0]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x34], ebx
call fcn.140016744
mov rdi, rax
mov r9d, esi
mov r8, rbp
mov rdx, r12
mov rcx, r13
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ebx, eax
test rdi, rdi
je 0x14004d99b
or edx, 0xffffffff
mov rcx, rdi
mov byte [0x1400b396f], 0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
or eax, 0xffffffff
cmp byte [0x1400b396e], 1
cmove ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret

Function at 0x14004db60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
call fcn.14004db40
mov rcx, qword [rsi]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add qword [rsi + 0x18], rax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14004e4b0
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x28]
sub rsp, 0x120
xor esi, esi
mov rbx, rdx
mov rdi, rcx
cmp byte [rdx], sil
jne 0x14004e4f4
cmp byte [rdx + 1], sil
jne 0x14004e4f4
cmp byte [rdx + 2], sil
jne 0x14004e4f4
cmp byte [rdx + 3], sil
jne 0x14004e4f4
cmp byte [rdx + 4], sil
je 0x14004e6bd
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x14004e643
call qword [sym.imp.USER32.dll_GetParent]
test rax, rax
je 0x14004e643
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x14004e56b
mov al, byte [rsp + 0x30]
mov cl, 0x80
cmp byte [rbx], sil
je 0x14004e533
or al, cl
or byte [rbp - 0x40], cl
mov byte [rsp + 0x30], al
cmp byte [rbx + 1], sil
je 0x14004e542
or al, cl
or byte [rbp - 0x3f], cl
mov byte [rsp + 0x30], al
cmp byte [rbx + 2], sil
je 0x14004e54c
or byte [rsp + 0x31], cl
cmp byte [rbx + 3], sil
je 0x14004e556
or byte [rsp + 0x32], cl
cmp byte [rbx + 4], sil
je 0x14004e560
or byte [rsp + 0x7b], cl
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_SetKeyboardState]
cmp byte [rbx], sil
jne 0x14004e576
cmp byte [rbx + 1], sil
je 0x14004e599
movzx eax, byte [rdi + 0x32]
mov rcx, qword [rdi + 0x28]
mov edx, 0x100
shl eax, 0x10
mov r8d, reloc.WSOCK32.dll_recv
movsxd r9, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
cmp byte [rbx + 2], sil
je 0x14004e5c2
movzx eax, byte [rdi + 0x30]
mov rcx, qword [rdi + 0x28]
mov edx, 0x100
shl eax, 0x10
mov r8d, reloc.WSOCK32.dll_recvfrom
movsxd r9, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
mov al, byte [rbx + 3]
test al, al
je 0x14004e614
cmp byte [rbx + 2], sil
jne 0x14004e5ed
cmp byte [rdi + 0x20], sil
jne 0x14004e5ed
movzx eax, byte [rdi + 0x31]
mov edx, 0x104
shl eax, 0x10
movsxd r9, eax
or r9, 0x20000001
jmp 0x14004e604
test al, al
je 0x14004e614
movzx eax, byte [rdi + 0x31]
mov edx, 0x100
shl eax, 0x10
movsxd r9, eax
or r9, 1
mov rcx, qword [rdi + 0x28]
mov r8d, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_PostMessageW]
cmp byte [rbx + 4], sil
je 0x14004e6b5
movzx eax, byte [rdi + 0x35]
mov rcx, qword [rdi + 0x28]
mov edx, 0x100
shl eax, 0x10
mov r8d, 0x5b
movsxd r9, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x14004e6b5
cmp byte [rbx], sil
je 0x14004e659
mov r8b, byte [rdi + 0x33]
xor r9d, r9d
mov dl, 0xa0
mov rcx, rdi
call fcn.14003c2c0
cmp byte [rbx + 1], sil
je 0x14004e670
mov r8b, byte [rdi + 0x34]
xor r9d, r9d
mov dl, 0xa1
mov rcx, rdi
call fcn.14003c2c0
cmp byte [rbx + 2], sil
je 0x14004e687
mov r8b, byte [rdi + 0x30]
xor r9d, r9d
mov dl, reloc.WSOCK32.dll_recvfrom
mov rcx, rdi
call fcn.14003c2c0
cmp byte [rbx + 3], sil
je 0x14004e69e
mov r8b, byte [rdi + 0x31]
xor r9d, r9d
mov dl, reloc.WSOCK32.dll_select
mov rcx, rdi
call fcn.14003c2c0
cmp byte [rbx + 4], sil
je 0x14004e6b5
mov r8b, byte [rdi + 0x35]
xor r9d, r9d
mov dl, 0x5b
mov rcx, rdi
call fcn.14003c2c0
mov rcx, rdi
call fcn.14003c330
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14004e6e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x120
xor esi, esi
mov rbx, rdx
mov rdi, rcx
mov dword [rdx], esi
mov word [rdx + 4], si
cmp qword [rcx + 0x28], rsi
je 0x14004e77a
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x14004e850
mov al, 0x80
cmp byte [rsp + 0xc0], al
je 0x14004e72f
cmp byte [rsp + 0x30], al
jne 0x14004e738
cmp byte [rdi + 0x1e], sil
jne 0x14004e738
mov byte [rbx], 1
cmp byte [rsp + 0xc1], al
jne 0x14004e74b
cmp byte [rdi + 0x1f], sil
jne 0x14004e74b
mov byte [rbx + 1], 1
cmp byte [rsp + 0x31], al
jne 0x14004e75b
cmp byte [rdi + 0x20], sil
jne 0x14004e75b
mov byte [rbx + 2], 1
cmp byte [rsp + 0x32], al
jne 0x14004e76b
cmp byte [rdi + 0x21], sil
jne 0x14004e76b
mov byte [rbx + 3], 1
cmp byte [rsp + 0x7b], al
jne 0x14004e850
jmp 0x14004e846
mov ecx, LHashValOfNameSys
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebp, 0x8000
test bp, ax
jne 0x14004e79f
mov ecx, LHashValOfNameSys
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14004e7a8
cmp byte [rdi + 0x1e], sil
jne 0x14004e7a8
mov byte [rbx], 1
mov ecx, LHashValOfNameSys
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x14004e7c8
mov ecx, LHashValOfNameSys
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14004e7d2
cmp byte [rdi + 0x1f], sil
jne 0x14004e7d2
mov byte [rbx + 1], 1
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x14004e7f2
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14004e7fc
cmp byte [rdi + 0x20], sil
jne 0x14004e7fc
mov byte [rbx + 2], 1
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x14004e81c
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14004e826
cmp byte [rdi + 0x21], sil
jne 0x14004e826
mov byte [rbx + 3], 1
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x14004e846
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14004e850
cmp byte [rdi + 0x22], sil
jne 0x14004e850
mov byte [rbx + 4], 1
lea r11, [rsp + 0x120]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14004ea10
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
mov r8, qword [rdx]
mov rdi, rcx
mov rsi, rdx
mov r12d, dword [r8 + rcx]
lea rax, [r8 + 4]
mov rcx, 0xffffffffffffffff
mov qword [rdx], rax
lea eax, [r12 + 1]
movsxd r8, eax
mov eax, 2
mul r8
cmovo rax, rcx
mov rcx, rax
call fcn.140014e9c
lea ecx, [r12 + r12]
movsxd rbx, ecx
mov rcx, qword [rsi]
mov rbp, rax
lea rdx, [rdi + rcx]
mov r8, rbx
mov rcx, rax
call fcn.140014990
add qword [rsi], rbx
xor eax, eax
movsxd r11, r12d
mov word [rbp + r11*2], ax
test r12d, r12d
jle 0x14004eaa2
mov rax, rbp
mov ecx, r12d
xor word [rax], r12w
add rax, 2
dec rcx
jne 0x14004ea95
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop r12
ret
Function at 0x140050510
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx]
mov ebx, edx
mov dl, 1
call fcn.14004d580
xor edx, edx
test ebx, ebx
lea ebx, [rdx + 0x25]
mov ecx, ebx
jns 0x14005056c
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rdi]
mov r8d, ebx
shl eax, 0x10
mov edx, 0x100
mov r9d, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8d, ebx
jmp 0x1400505a8
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rdi]
mov edx, 0x100
shl eax, 0x10
mov r8d, reloc.OLEAUT32.dll_SafeArrayRedim
mov r9d, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8d, reloc.OLEAUT32.dll_SafeArrayRedim
mov rcx, qword [rdi]
shl eax, 0x10
mov edx, 0x101
mov r9d, eax
mov eax, 0xc0000001
or r9, rax
call qword [sym.imp.USER32.dll_PostMessageW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rdi]
xor edx, edx
call fcn.14004d580
mov rbx, qword [rsp + 0x30]
mov al, 1
add rsp, 0x20
pop rdi
ret

Function at 0x1400521d0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rbp, rdx
mov rsi, rcx
mov rdx, rcx
lea rcx, [0x1400c4ea0]
mov r12d, r9d
mov r13d, r8d
call fcn.140038270
movsxd r10, eax
mov rax, qword [0x1400c4f40]
mov r10, qword [rax + r10*8]
mov rbx, qword [r10]
cmp rbp, rsi
jne 0x14005225b
cmp qword [rbx + 0x2d0], 0
je 0x1400522cd
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
and qword [rsp + 0x28], 0
mov rcx, qword [rbx + 0x2d0]
mov qword [rsp + 0x20], rsi
mov r8d, dword [rsp + 0x50]
mov r9d, dword [rsp + 0x54]
xor edx, edx
call qword [sym.imp.USER32.dll_TrackPopupMenuEx]
jmp 0x1400522ed
lea rcx, [0x1400c4ea0]
mov rdx, rbp
call fcn.14004b350
cmp eax, 0xffffffff
je 0x1400522cd
movsxd rdi, eax
mov rax, qword [0x1400c4f68]
mov rcx, qword [rax + rdi*8]
mov rdx, qword [rcx]
mov al, byte [rdx + 0xf4]
cmp al, 0xe
je 0x1400522cd
cmp al, 0xf
je 0x1400522cd
cmp al, 0x13
je 0x1400522cd
cmp al, 0x10
je 0x1400522cd
cmp qword [rdx + 0x10], 0
je 0x1400522cd
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov r11, qword [0x1400c4f68]
and qword [rsp + 0x28], 0
mov rax, qword [r11 + rdi*8]
mov rcx, qword [rax]
mov rax, qword [rbx]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rax
jmp 0x140052244
movzx r9d, r12w
movzx eax, r13w
mov r8, rbp
shl r9d, 0x10
mov edx, 0x7b
mov rcx, rsi
or r9, rax
call qword [sym.imp.USER32.dll_DefDlgProcW]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x1400558f0
Capabilities:
Connect to http server

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov sil, r9b
mov rdi, rdx
mov rbx, rcx
test r8b, r8b
je 0x14005591f
mov r8b, r9b
call fcn.1400557c0
jmp 0x140055a13
mov ebp, dword [rcx + 0x90]
mov rcx, qword [rdx + 0x60]
mov eax, dword [rdx + 0xe0]
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
mov r9, qword [rdx + 0x40]
movzx r8d, word [rdx + 0xe8]
mov rdx, qword [rdx + 0x20]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 8]
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rbx], rax
test rax, rax
jne 0x14005597e
lea edx, [rax + 0x15]
xor r9d, r9d
mov r8d, 0xdeadbeef
mov rcx, rbx
call fcn.14004bbc0
jmp 0x140055a13
mov rdx, qword [rdi + 0xc0]
and qword [rsp + 0x20], 0
mov r9d, ebp
mov r8d, 0x80000000
mov rcx, rax
call qword [sym.imp.WININET.dll_FtpOpenFileW]
mov rcx, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x48], rcx
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400559c4
xor r9d, r9d
lea edx, [rax + 0x16]
mov r8d, 0xdeadbeef
jmp 0x1400559fd
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.WININET.dll_FtpGetFileSize]
mov ecx, dword [rsp + 0x70]
shl rcx, 0x20
mov eax, eax
or rcx, rax
mov qword [rbx + 0x18], rcx
test sil, sil
je 0x1400559f5
mov rdx, rdi
mov rcx, rbx
call fcn.14004bdf0
jmp 0x140055a05
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.14004bbc0
lea rcx, [rsp + 0x40]
mov bl, al
call fcn.140038cf0
mov al, bl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret