joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009bb60
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x14009bc84
cmp r8d, 0xff
jne 0x14009bbc1
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x14009bbab
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0xc08c0]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.140078590
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.140078590
cmp r8d, 0xfb
jne 0x14009bbd3
lea r9, str.WILL
jmp 0x14009bc11
cmp r8d, 0xfc
jne 0x14009bbe5
lea r9, str.WONT
jmp 0x14009bc11
cmp r8d, 0xfd
jne 0x14009bbf7
lea r9, [0x1400c12e4]
jmp 0x14009bc11
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x14009bc6d
cmp r10d, 0x27
jg 0x14009bc44
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0xc0ee0]
test r8, r8
jne 0x14009bc54
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.140078590
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x14009bc2b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.140078590
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.140078590
add rsp, 0x38
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14009c02f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140078410
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.14009bb60
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14009c1e0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x14009c388
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x14009c245
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14009c245
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14009c245
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14009c27c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x14009c2d2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009c2d2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009c2d2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009c2d2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009c2d2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.14009bc90
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x14009c334
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140078410
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.14009c060
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14009c380
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140078410
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14009daf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400f9080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x14009db85
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x14009dbe6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140078410
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400b0c00
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x14009dca1
sub ecx, 1
je 0x14009dd14
sub ecx, 1
je 0x14009dc50
cmp ecx, 1
je 0x14009dc33
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400c5578]
call fcn.140078410
jmp 0x14009dd14
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14009d820
test eax, eax
je 0x14009dd14
jmp 0x14009dbba
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14009dd14
sub rax, rsi
cmp rax, rbp
jae 0x14009dd14
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140078590
jmp 0x14009dd14
cmp r8d, 4
jle 0x14009dd14
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x14009dd14
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140078330
mov esi, eax
test eax, eax
je 0x14009dcf3
mov edx, 5
mov rcx, rbx
call fcn.14009e7e0
mov eax, esi
jmp 0x14009dbba
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140086c10
mov rcx, r14
call fcn.140086ef0
test eax, eax
je 0x14009dbb8
mov edx, 5
mov rcx, rbx
call fcn.14009e7e0
mov eax, Ordinal_46
jmp 0x14009dbba
Function at 0x1400b0ab0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400b0af2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400b0b39
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400b0b92
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400b0b50
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400b0bd3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400c44b2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400c44b3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400b0ba0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400b1a88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b1ad2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b1ad2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b1ad2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b1ad2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b1ad2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400b1ad4
xor al, al
add rsp, 0x28
ret
Function at 0x1400b1cc0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400b1cfa
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400b1cff
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400b1d48
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400b1d48
dec r8
sub rdx, 1
jne 0x1400b1d2e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14000c750
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x20
mov ebx, ecx
xor ecx, ecx
mov r14, r8
mov rdi, rdx
mov qword [r8], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, bx
mov r8, rdi
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000c79c
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov rdx, rax
mov rcx, rsi
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
mov rcx, rsi
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x14000c86a
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call fcn.140040700
lea r8, [rsp + 0x58]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov rbp, qword [rsp + 0x58]
mov ecx, 0x18
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov rbx, rax
test rax, rax
je 0x14000c846
lea rax, vtable.Gdiplus::Bitmap.0
lea rdx, [rsp + 0x50]
mov rcx, rbp
mov qword [rbx], rax
mov qword [rsp + 0x50], 0
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov rcx, qword [rsp + 0x50]
mov dword [rbx + 0x10], eax
mov qword [rbx + 8], rcx
jmp 0x14000c848
xor ebx, ebx
mov rcx, rsi
mov qword [r14], rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov al, 1
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14000cb20
Capabilities:
Get common file path
Get startup folder

Disassembly:
push rdi
sub rsp, 0x270
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x288], rbx
mov rax, qword [0x1400a1650]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 5]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
cmp word [rsp + 0x50], bx
je 0x14000cb9e
lea rax, [rsp + 0x50]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14000cb94
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400060f0
mov dword [rsp + 0x30], 1
mov r8d, 0xd
lea rdx, str.FLiNGTrainer
mov rcx, rdi
call fcn.140003880
mov rax, rdi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140040660
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
Function at 0x140012a80
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, edx
cmp ebx, 0xff
jge 0x140012ac6
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
lea r8, [0x1400ab2c0]
movzx edx, ax
shr edx, 0xf
and dl, 1
je 0x140012abf
cmp byte [rbx + r8], 0
jne 0x140012abf
mov byte [rbx + r8], 1
mov al, 1
add rsp, 0x20
pop rbx
ret
mov rax, rbx
mov byte [rbx + r8], dl
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140013170
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400a1650]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], 0
xor bl, bl
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14001322a
lea r8, [rsp + 0x38]
lea rdx, [0x14008c040]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14001321f
mov rcx, qword [rsp + 0x30]
xor eax, eax
lea r8, [rsp + 0x40]
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x38]
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140040660
add rsp, 0x60
pop rbx
ret

Function at 0x140016290
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
xor eax, eax
mov rbx, rcx
mov qword [rcx + 0x28], rdx
xor ecx, ecx
mov qword [rsp + 0x24], rax
mov qword [rsp + 0x2c], rax
mov qword [rsp + 0x34], rax
mov qword [rsp + 0x3c], rax
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x4c], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [rsp + 0x60], 0
lea rcx, [rsp + 0x20]
je 0x1400162ee
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
jmp 0x1400162f4
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, 0x1000
cmp dword [rsp + 0x48], ecx
cmova ecx, dword [rsp + 0x48]
mov eax, ecx
mov qword [rbx], rax
add rsp, 0x50
pop rbx
ret
Function at 0x140017b50
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x40
mov rax, qword [rcx + 0x28]
mov rbx, rdx
mov rsi, rcx
test rax, rax
je 0x140017bac
mov rcx, qword [rax + 0x80]
test rcx, rcx
jne 0x140017bb9
cmp qword [0x1400ab418], 8
lea r8, [0x1400ab400]
lea rdx, [0x1400ab5c0]
cmovae r8, qword [0x1400ab400]
cmp qword [0x1400ab5d8], 8
cmovae rdx, qword [0x1400ab5c0]
xor r9d, r9d
call qword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x800
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0x20], 0x40
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
xor dil, dil
mov rbp, rax
test rax, rax
je 0x140017cb6
cmp qword [rbx + 0x18], 8
mov r9, qword [rbx + 0x10]
jb 0x140017bfc
mov rbx, qword [rbx]
mov rcx, qword [rsi + 0x28]
lea r9, [r9*2 + 2]
mov r8, rbx
mov rcx, qword [rcx + 0x80]
mov rdx, rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140017c94
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14008c2b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x28]
mov qword [rsp + 0x30], 0
mov rcx, qword [rcx + 0x80]
mov r9, rax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
test rax, rax
je 0x140017c94
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, 1
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x140017cb6
mov rcx, qword [rcx + 0x80]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
movzx eax, dil
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
Function at 0x14001a130
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r14
push r15
sub rsp, 0x2c0
mov rax, qword [0x1400a1650]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov rbx, rcx
xor r15d, r15d
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x234
mov dword [rsp + 0x20], 0x238
mov esi, r15d
mov ebp, r15d
call fcn.140042750
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14001a1a8
cmp qword [rbx + 0x18], 8
jb 0x14001a1a1
mov rcx, qword [rbx]
call fcn.140040640
xor eax, eax
jmp 0x14001a2c1
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14001a2a7
mov qword [rsp + 0x2e8], rdi
mov rcx, rbx
call fcn.140006240
lea rcx, [rsp + 0x4c]
mov rdx, rax
call fcn.1400420d4
test eax, eax
jne 0x14001a289
mov r8d, dword [rsp + 0x28]
xor eax, eax
xor edx, edx
mov ecx, 0x410
mov dword [rsp + 0x260], 0x48
mov qword [rsp + 0x264], rax
mov qword [rsp + 0x26c], rax
mov qword [rsp + 0x274], rax
mov qword [rsp + 0x27c], rax
mov qword [rsp + 0x284], rax
mov qword [rsp + 0x28c], rax
mov qword [rsp + 0x294], rax
mov qword [rsp + 0x29c], rax
mov dword [rsp + 0x2a4], eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14001a271
lea rdx, [rsp + 0x260]
mov r8d, 0x48
mov rcx, rax
call qword [sym.imp.PSAPI.DLL_GetProcessMemoryInfo]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x298]
test esi, esi
je 0x14001a282
cmp rax, rbp
jb 0x14001a289
mov esi, dword [rsp + 0x28]
mov rbp, rax
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14001a1c6
mov rdi, qword [rsp + 0x2e8]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx + 0x18], 8
jb 0x14001a2bf
mov rcx, qword [rbx]
call fcn.140040640
mov eax, esi
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r15
mov word [rbx], r15w
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140040660
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rsi
ret
Function at 0x14001a300
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1400a1650]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r14d, r8d
mov r15, rdx
mov rsi, rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r12
mov word [rsp + 0x48], r12w
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
xor r8d, r8d
lea rdx, [0x140089b80]
lea rcx, [rsp + 0x48]
call fcn.1400060f0
nop
test r14d, r14d
je 0x14001a458
mov ebx, r12d
nop dword [rax]
mov edx, r14d
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001a3bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x14001a458
inc ebx
cmp ebx, 0x64
jl 0x14001a390
mov dword [rsp + 0x70], 0x438
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14001a44f
mov rcx, r15
call fcn.140006240
mov rcx, rax
lea rdx, [rbp - 0x60]
call fcn.1400420d4
test eax, eax
je 0x14001a3ff
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x14001a3d3
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x40], rax
cmp word [rbp + 0x1a0], 0
jne 0x14001a428
mov r8, r12
jmp 0x14001a43e
lea rax, [rbp + 0x1a0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14001a433
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x48]
call fcn.1400060f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x30]
mov qword [rsi], rax
mov rax, qword [rsp + 0x38]
mov qword [rsi + 8], rax
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
lea rcx, [rsi + 0x18]
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], r12
mov word [rcx], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x48]
call fcn.140005d30
nop
cmp qword [rsp + 0x60], 8
jb 0x14001a4aa
mov rcx, qword [rsp + 0x48]
call fcn.140040640
mov rax, rsi
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.140040660
add rsp, 0x4c0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14001a9e0
Capabilities:
Create thread
Resume thread

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x90
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x1400a1650]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rax, qword [rcx + 8]
mov rcx, qword [rax + 0x28]
xor edi, edi
mov qword [r11 - 0x68], rdi
mov dword [rsp + 0x28], 4
mov qword [r11 - 0x78], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
test rax, rax
jne 0x14001aad8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140007160
nop
mov r8, rax
lea rdx, [0x1400ab600]
lea rcx, [rsp + 0x48]
call fcn.1400144d0
lea r8, [0x1400ab400]
cmp qword [0x1400ab418], 8
cmovae r8, qword [0x1400ab400]
cmp qword [rax + 0x18], 8
jb 0x14001aa8c
mov rax, qword [rax]
xor r9d, r9d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp qword [rsp + 0x60], 8
jb 0x14001aaac
mov rcx, qword [rsp + 0x48]
call fcn.140040640
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x48], di
cmp qword [rsp + 0x80], 8
jb 0x14001aad4
mov rcx, qword [rsp + 0x68]
call fcn.140040640
xor al, al
jmp 0x14001aaf8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140040660
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
Function at 0x1400420c8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140041f30

Function at 0x140042248
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140042260
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140042262
xor eax, eax
test eax, eax
je 0x140042272
mov ecx, eax
call fcn.140045a4c
or eax, 0xffffffff
jmp 0x140042274
xor eax, eax
add rsp, 0x28
ret

Function at 0x140048f04
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140048f17
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x20]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.140054de4
lea rdx, [0x14009e2d0]
lea rcx, [rsp + 0x20]
call fcn.140042a38
int3