joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004b7f0
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
lea rdx, [rax + 0x20]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov dword [rax + 0x18], 1
mov qword [rax + 0x20], 1
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov rcx, qword [rsp + 0x48]
mov eax, 0x400
test rcx, rcx
cmove rcx, rax
cmp dword [rsp + 0x40], 0
mov qword [rsp + 0x48], rcx
je 0x14004b7a9
call fcn.140038f20
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14004b7b7
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x14004b7a1
mov r8d, ecx
lea rcx, [rbx + 0x70]
mov rdx, rdi
call fcn.140038ea0
mov ecx, dword [rsp + 0x40]
add qword [rbx + 0x10], rcx
test ecx, ecx
je 0x14004b7a9
mov rcx, qword [rsp + 0x48]
jmp 0x14004b755
mov rcx, rdi
call fcn.140014860
cmp qword [rbx + 0x10], 0
jne 0x14004b7cf
mov edx, SafeArrayAllocDescriptor
jmp 0x14004b7c4
mov rcx, rdi
call fcn.140014860
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
xor r9d, r9d
mov r8d, 0xdeadbeef
jmp 0x14004b7d7
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.14004b6c0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x430
mov rbx, rcx
mov rcx, qword [rcx + 0x50]
mov rsi, rdx
lea rax, [fcn.14001720c]
lea rdx, [0x14009a734]
mov qword [rsp + 0x28], rax
call fcn.140017184
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x14004b836
lea edx, [rax + 0x1f]
jmp 0x14004b8b0
mov dword [rsp + 0x440], 1
lea r9, [rsp + 0x440]
lea rdx, [rsp + 0x30]
mov r8d, 0x400
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14004b8ab
mov eax, dword [rsp + 0x440]
test eax, eax
je 0x14004b890
lea rcx, [rsp + 0x30]
mov edx, eax
mov r9, rdi
mov r8d, 1
call fcn.140016974
mov ecx, dword [rsp + 0x440]
add qword [rbx + 0x10], rcx
test ecx, ecx
jne 0x14004b841
cmp qword [rbx + 0x10], 0
mov rcx, rbx
jne 0x14004b8a1
mov edx, SafeArrayAllocDescriptor
jmp 0x14004b8b3
xor r8d, r8d
mov r9b, 1
xor edx, edx
jmp 0x14004b8bc
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
mov rcx, rbx
xor r9d, r9d
mov r8d, 0xdeadbeef
call fcn.14004b6c0
lea rcx, [rsp + 0x20]
mov bl, al
call fcn.140038db0
lea r11, [rsp + 0x430]
mov rsi, qword [r11 + 0x20]
mov al, bl
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
cmp byte [rcx + 0x48], 0
je 0x14004b8fb
jmp 0x14004b700
jmp 0x14004b7f0
Function at 0x14004b8f0
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
lea rdx, [rax + 0x20]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov dword [rax + 0x18], 1
mov qword [rax + 0x20], 1
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov rcx, qword [rsp + 0x48]
mov eax, 0x400
test rcx, rcx
cmove rcx, rax
cmp dword [rsp + 0x40], 0
mov qword [rsp + 0x48], rcx
je 0x14004b7a9
call fcn.140038f20
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14004b7b7
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x14004b7a1
mov r8d, ecx
lea rcx, [rbx + 0x70]
mov rdx, rdi
call fcn.140038ea0
mov ecx, dword [rsp + 0x40]
add qword [rbx + 0x10], rcx
test ecx, ecx
je 0x14004b7a9
mov rcx, qword [rsp + 0x48]
jmp 0x14004b755
mov rcx, rdi
call fcn.140014860
cmp qword [rbx + 0x10], 0
jne 0x14004b7cf
mov edx, SafeArrayAllocDescriptor
jmp 0x14004b7c4
mov rcx, rdi
call fcn.140014860
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
xor r9d, r9d
mov r8d, 0xdeadbeef
jmp 0x14004b7d7
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.14004b6c0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x430
mov rbx, rcx
mov rcx, qword [rcx + 0x50]
mov rsi, rdx
lea rax, [fcn.14001720c]
lea rdx, [0x14009a734]
mov qword [rsp + 0x28], rax
call fcn.140017184
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x14004b836
lea edx, [rax + 0x1f]
jmp 0x14004b8b0
mov dword [rsp + 0x440], 1
lea r9, [rsp + 0x440]
lea rdx, [rsp + 0x30]
mov r8d, 0x400
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14004b8ab
mov eax, dword [rsp + 0x440]
test eax, eax
je 0x14004b890
lea rcx, [rsp + 0x30]
mov edx, eax
mov r9, rdi
mov r8d, 1
call fcn.140016974
mov ecx, dword [rsp + 0x440]
add qword [rbx + 0x10], rcx
test ecx, ecx
jne 0x14004b841
cmp qword [rbx + 0x10], 0
mov rcx, rbx
jne 0x14004b8a1
mov edx, SafeArrayAllocDescriptor
jmp 0x14004b8b3
xor r8d, r8d
mov r9b, 1
xor edx, edx
jmp 0x14004b8bc
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
mov rcx, rbx
xor r9d, r9d
mov r8d, 0xdeadbeef
call fcn.14004b6c0
lea rcx, [rsp + 0x20]
mov bl, al
call fcn.140038db0
lea r11, [rsp + 0x430]
mov rsi, qword [r11 + 0x20]
mov al, bl
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
cmp byte [rcx + 0x48], 0
je 0x14004b8fb
jmp 0x14004b700
jmp 0x14004b7f0
Function at 0x14004b980
Capabilities:
Create http request

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x14004b997
movzx eax, word [rcx + 0x100]
jmp 0x14004b99e
movzx eax, word [rcx + 0x98]
movsx ecx, ax
lea r8, [rbx + 0x148]
cmp edx, 1
je 0x14004b9b4
lea r8, [rbx + 0xe0]
mov rax, qword [rbx + 0x168]
cmp ecx, 1
jne 0x14004b9c4
mov edx, ecx
jmp 0x14004b9da
cmp ecx, 2
jne 0x14004b9d8
mov r8, qword [r8]
lea r9, str._local_
lea edx, [rcx + 1]
jmp 0x14004b9e0
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 0x14004ba26
cmp byte [rbx + 0x19c], 0
je 0x14004ba24
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 0x14004bd10
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 0x14004bda5
lea rdx, [0x14009a1bc]
lea rcx, [rsp + 0x5c]
call fcn.140015540
test eax, eax
je 0x14004bd93
lea rdx, [0x14009d3f8]
lea rcx, [rsp + 0x5c]
call fcn.140015540
test eax, eax
je 0x14004bd93
mov rdx, qword [rsp + 0x2c0]
lea rcx, [rsp + 0x5c]
mov r8d, ebp
call fcn.14003b630
test al, al
je 0x14004bdc3
mov sil, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14004bd4d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov bpl, byte [rsp + 0x2d0]
test bpl, bpl
jne 0x14004bdd3
mov al, sil
jmp 0x14004be8e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14004be8e
lea rdx, [rsp + 0x30]
lea rcx, [0x14009d3f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004be81
mov esi, dword [rsp + 0x2c8]
test byte [rsp + 0x30], 0x10
je 0x14004be6b
lea rdx, [0x14009a1bc]
lea rcx, [rsp + 0x5c]
call fcn.140015540
test eax, eax
je 0x14004be6b
lea rdx, [0x14009d3f8]
lea rcx, [rsp + 0x5c]
call fcn.140015540
test eax, eax
je 0x14004be6b
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.14004bd10
test al, al
je 0x14004be83
lea rcx, [0x14009d3f8]
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 0x14004bdf9
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 0x14004c3c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400c2354], 0
lea rbx, [0x1400c1980]
jne 0x14004c3e5
xor ecx, ecx
call fcn.140017044
mov rcx, rax
call fcn.140039980
mov dword [reloc.WSOCK32.dll_accept], 0x270
mov qword [0x1400c1970], 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 0x14004c408
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 0x14004c438
mov ecx, dword [0x1400c1980]
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 0x14004c910
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 0x14004c956
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x14004c999
and qword [rbx], 0
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
test al, 1
je 0x14004c980
mov rax, qword [rdx]
test rax, rax
jne 0x14004c950
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, r10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14004c9f5
or rax, 0xffffffffffffffff
jmp 0x14004c950
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
test rax, rax
je 0x14004c9ac
cmp rax, 0xffffffffffffffff
je 0x14004c9ac
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.140039c30
jmp 0x14004c94d
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x14009a678]
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 0x14004c949
test rax, rax
je 0x14004c949
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.140039c30
mov rcx, rbx
call fcn.140039ca0
mov r11, qword [rsp + 0x70]
mov qword [rbx], r11
jmp 0x14004c94d
lea r8, [rcx + 0x28]
lea rdx, [rcx + 0x30]
jmp 0x14004c910
Function at 0x14004ca20
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 0x14004ca61
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x14004caa7
and qword [rbx], 0
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
test edx, eax
je 0x14004ca90
mov rax, qword [r9]
test rax, rax
jne 0x14004ca5b
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 0x14004cb03
or rax, 0xffffffffffffffff
jmp 0x14004ca5b
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
test rax, rax
je 0x14004caba
cmp rax, 0xffffffffffffffff
je 0x14004caba
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.140039c30
jmp 0x14004ca58
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x14009a678]
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 0x14004ca54
test rax, rax
je 0x14004ca54
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.140039c30
mov rcx, rbx
call fcn.140039ca0
mov r11, qword [rsp + 0x70]
mov qword [rbx], r11
jmp 0x14004ca58

Function at 0x14004cb60
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x58], 0
call fcn.140039cd0
test al, al
je 0x14004cba2
test rdx, rdx
je 0x14004cba2
test r8, r8
je 0x14004cba2
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 0x14004cba2
mov rcx, rbx
call fcn.140039ca0
mov eax, dword [rsp + 0x58]
add rsp, 0x30
pop rbx
ret
Function at 0x14004cbb0
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 0x14004c956
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x14004c999
and qword [rbx], 0
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
test al, 1
je 0x14004c980
mov rax, qword [rdx]
test rax, rax
jne 0x14004c950
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, r10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14004c9f5
or rax, 0xffffffffffffffff
jmp 0x14004c950
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
test rax, rax
je 0x14004c9ac
cmp rax, 0xffffffffffffffff
je 0x14004c9ac
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.140039c30
jmp 0x14004c94d
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x14009a678]
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 0x14004c949
test rax, rax
je 0x14004c949
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.140039c30
mov rcx, rbx
call fcn.140039ca0
mov r11, qword [rsp + 0x70]
mov qword [rbx], r11
jmp 0x14004c94d
lea r8, [rcx + 0x28]
lea rdx, [rcx + 0x30]
jmp 0x14004c910

Function at 0x14004d110
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp dl, 1
jne 0x14004d142
call fcn.14003e540
test al, al
jne 0x14004d15f
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 0x14004d155
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 0x14004d480
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 [0x1400b18ee], dil
test ebx, ebx
je 0x14004d4f6
mov byte [0x1400b18ef], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x80]
lea r8, [0x14004d360]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x34], ebx
call fcn.1400163a4
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 0x14004d52b
or edx, 0xffffffff
mov rcx, rdi
mov byte [0x1400b18ef], 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 [0x1400b18ee], 1
cmove ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret

Function at 0x14004d6b0
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.14004d690
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 0x14004e200
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 0x14004e29a
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x14004e370
mov al, 0x80
cmp byte [rsp + 0xc0], al
je 0x14004e24f
cmp byte [rsp + 0x30], al
jne 0x14004e258
cmp byte [rdi + 0x1e], sil
jne 0x14004e258
mov byte [rbx], 1
cmp byte [rsp + 0xc1], al
jne 0x14004e26b
cmp byte [rdi + 0x1f], sil
jne 0x14004e26b
mov byte [rbx + 1], 1
cmp byte [rsp + 0x31], al
jne 0x14004e27b
cmp byte [rdi + 0x20], sil
jne 0x14004e27b
mov byte [rbx + 2], 1
cmp byte [rsp + 0x32], al
jne 0x14004e28b
cmp byte [rdi + 0x21], sil
jne 0x14004e28b
mov byte [rbx + 3], 1
cmp byte [rsp + 0x7b], al
jne 0x14004e370
jmp 0x14004e366
mov ecx, LHashValOfNameSys
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebp, 0x8000
test bp, ax
jne 0x14004e2bf
mov ecx, LHashValOfNameSys
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14004e2c8
cmp byte [rdi + 0x1e], sil
jne 0x14004e2c8
mov byte [rbx], 1
mov ecx, LHashValOfNameSys
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x14004e2e8
mov ecx, LHashValOfNameSys
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14004e2f2
cmp byte [rdi + 0x1f], sil
jne 0x14004e2f2
mov byte [rbx + 1], 1
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x14004e312
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14004e31c
cmp byte [rdi + 0x20], sil
jne 0x14004e31c
mov byte [rbx + 2], 1
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x14004e33c
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14004e346
cmp byte [rdi + 0x21], sil
jne 0x14004e346
mov byte [rbx + 3], 1
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x14004e366
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14004e370
cmp byte [rdi + 0x22], sil
jne 0x14004e370
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 0x14004e530
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.140014cb8
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.140014510
add qword [rsi], rbx
xor eax, eax
movsxd r11, r12d
mov word [rbp + r11*2], ax
test r12d, r12d
jle 0x14004e5c2
mov rax, rbp
mov ecx, r12d
xor word [rax], r12w
add rax, 2
dec rcx
jne 0x14004e5b5
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 0x14004fd60
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.14004d110
xor edx, edx
test ebx, ebx
lea ebx, [rdx + 0x25]
mov ecx, ebx
jns 0x14004fdbc
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rdi]
mov r8d, ebx
shl eax, 0x10
mov edx, pe_nt_image_headers64
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 0x14004fdf8
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rdi]
mov edx, pe_nt_image_headers64
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.14004d110
mov rbx, qword [rsp + 0x30]
mov al, 1
add rsp, 0x20
pop rdi
ret
Function at 0x140051d00
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, [0x1400c2e50]
mov r12d, r9d
mov r13d, r8d
call fcn.140037f70
movsxd r10, eax
mov rax, qword [0x1400c2ef0]
mov r10, qword [rax + r10*8]
mov rbx, qword [r10]
cmp rbp, rsi
jne 0x140051d8b
cmp qword [rbx + 0x2d0], 0
je 0x140051dfd
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 0x140051e1d
lea rcx, [0x1400c2e50]
mov rdx, rbp
call fcn.14004ad90
cmp eax, 0xffffffff
je 0x140051dfd
movsxd rdi, eax
mov rax, qword [0x1400c2f18]
mov rcx, qword [rax + rdi*8]
mov rdx, qword [rcx]
mov al, byte [rdx + 0xf4]
cmp al, 0xe
je 0x140051dfd
cmp al, 0xf
je 0x140051dfd
cmp al, 0x13
je 0x140051dfd
cmp al, 0x10
je 0x140051dfd
cmp qword [rdx + 0x10], 0
je 0x140051dfd
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov r11, qword [0x1400c2f18]
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 0x140051d74
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