joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180015a04
Capabilities:
Get socket status

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r15
lea rbp, [rax - 0x5b8]
sub rsp, 0x6a0
mov rax, qword [0x18003e060]
xor rax, rsp
mov qword [rbp + 0x590], rax
mov rdi, qword [0x18003fd20]
and dword [rsp + 0x30], 0
and dword [rsp + 0x38], 0
mov rsi, rcx
mov dword [rsp + 0x3c], 0x64
test rdi, rdi
je 0x180015c51
mov r12d, 1
lea r15d, [r12 + 3]
cmp dword [rdi + 4], 2
jne 0x180015c44
mov ecx, dword [rdi]
call qword [sym.imp.WS2_32.dll_htonl]
and dword [rbp + 0x380], 0
and dword [rbp + 0x170], 0
and dword [rsp + 0x60], 0
mov dword [rsp + 0x30], eax
mov rax, qword [rdi + 0x20]
mov qword [rbp + 0x388], rax
mov dword [rbp + 0x380], r12d
mov rax, qword [rdi + 0x20]
mov qword [rbp + 0x178], rax
mov dword [rbp + 0x170], r12d
mov rax, qword [rdi + 0x20]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x38]
lea r9, [rbp + 0x170]
lea r8, [rbp + 0x380]
lea rdx, [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], r12d
call qword [sym.imp.WS2_32.dll_select]
cmp dword [rdi + 0x10], 2
mov rcx, qword [rdi + 0x20]
jne 0x180015b9b
lea rdx, [rsp + 0x60]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180015c44
mov rcx, qword [rdi + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
call fcn.1800159c0
xor r9d, r9d
mov r8d, 0x2bf20
mov rcx, rbx
mov edx, eax
mov dword [rsp + 0x28], r12d
and dword [rsp + 0x20], 0
mov dword [rsp + 0x30], eax
call fcn.18001548c
lea rcx, [rsp + 0x40]
mov edx, 0x80
call fcn.18000d5a0
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.18000d5e8
mov edx, dword [rdi + 0x14]
lea rcx, [rsp + 0x40]
call fcn.18000d5e8
lea rcx, [rsp + 0x40]
call fcn.18000d618
lea rcx, [rsp + 0x40]
mov ebx, eax
call fcn.18000d67c
mov r8d, reloc.WS2_32.dll_socket
mov rcx, rax
mov edx, ebx
call rsi
lea rcx, [rsp + 0x40]
call fcn.18000d57c
jmp 0x180015c44
lea rdx, [rbp + 0x170]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x180015c33
mov rcx, qword [rdi + 0x20]
lea rdx, [rbp + 0x380]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180015bcf
mov dword [rdi + 4], r12d
mov r8d, 6
jmp 0x180015c3a
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x60]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180015c25
mov rbx, qword [rdi + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov edx, r15d
lea rcx, [rsp + 0x30]
mov qword [rdi + 0x20], rax
cmp rax, 0xffffffffffffffff
jne 0x180015c0e
and dword [rdi + 4], 0
mov r8d, r15d
jmp 0x180015c18
mov dword [rdi + 4], r12d
mov r8d, 6
call rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180015c44
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rdi + 0x18]
cmp eax, dword [rdi + 8]
jbe 0x180015c44
and dword [rdi + 4], 0
mov r8d, r15d
lea rcx, [rsp + 0x30]
mov edx, r15d
call rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x180015a67
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.18001be40
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r12
pop rbp
ret
Function at 0x180015c80
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r15
sub rsp, 0x20
and dword [rax + 0x10], 0
mov rbx, qword [0x18003fd20]
xor edi, edi
cmp qword [0x18003fd28], rdi
mov rsi, rcx
jne 0x180015cbf
mov ecx, 0x100000
call fcn.18001bcf0
mov qword [0x18003fd28], rax
test rbx, rbx
je 0x180015d73
mov r15d, 0xffffc
cmp dword [rbx + 4], 1
jne 0x180015d66
mov ecx, dword [rbx]
call qword [sym.imp.WS2_32.dll_htonl]
lea r8, [rsp + 0x38]
mov edx, 0x4004667f
mov ecx, eax
mov rax, qword [0x18003fd28]
mov dword [rax], ecx
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rsp + 0x38]
cmp r8d, r15d
cmova r8d, r15d
mov dword [rsp + 0x38], r8d
cmp eax, 0xffffffff
je 0x180015d33
test r8d, r8d
je 0x180015d66
mov rdx, qword [0x18003fd28]
mov rcx, qword [rbx + 0x20]
add rdx, 4
call fcn.180015e38
cmp eax, 0xffffffff
jne 0x180015d4a
mov rcx, qword [0x18003fd28]
and dword [rbx + 4], 0
mov edx, 4
mov r8d, edx
call rsi
jmp 0x180015d66
mov edx, dword [rsp + 0x38]
cmp eax, edx
jne 0x180015d66
mov rcx, qword [0x18003fd28]
add edx, 4
mov r8d, 5
call rsi
inc edi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180015cce
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x180015d8c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.180015a04
mov rcx, rbx
call fcn.180015c80
test eax, eax
jg 0x1800159ea
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x180015d8c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x18003fd20]
xor edi, edi
test rbx, rbx
je 0x180015e2a
mov eax, dword [rbx + 4]
test eax, eax
jne 0x180015dbd
cmp dword [rbx + 0xc], eax
jne 0x180015dc6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
jmp 0x180015d9f
test eax, eax
jne 0x180015dbd
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x180015dbd
cmp dword [rbx + 0x10], 0
jne 0x180015def
mov rcx, qword [rbx + 0x20]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x180015e03
cmp dword [rbx + 0x10], 2
je 0x180015dbd
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x180015e1e
mov qword [rdi + 0x28], rax
call fcn.18001bcb0
mov rbx, qword [rdi + 0x28]
jmp 0x180015d9f
mov qword [0x18003fd20], rax
call fcn.18001bcb0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180015e38
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
test r8d, r8d
jle 0x180015e82
mov r8d, esi
xor r9d, r9d
mov rdx, rbp
sub r8d, ebx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
add rbp, rcx
add ebx, ecx
cmp ecx, 0xffffffff
je 0x180015e99
cmp ebx, esi
jl 0x180015e5c
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 2
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x180015e84

Function at 0x180015eb8
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x18003e060]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0x64
lea edi, [rax + 0x7530]
jmp 0x180015f9c
mov rax, qword [rbx + 0x20]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x250]
mov qword [rsp + 0x258], rax
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x250], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rbx + 0x20]
lea rdx, [rsp + 0x40]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x180015faa
mov rcx, qword [rbx + 0x20]
lea rdx, [rsp + 0x250]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x180015f9c
mov rcx, qword [rbx + 0x20]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x180015faa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x180015faa
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x180015f00
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.18001be40
mov rbx, qword [rsp + 0x4a8]
add rsp, 0x470
pop rdi
pop rsi
pop rbp
ret

Function at 0x180016a84
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x40
and qword [r11 - 0x28], 0
xor eax, eax
mov r8d, edx
mov rdx, rcx
lea rcx, [r11 - 0x28]
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x10], rax
call fcn.1800152e0
lea rcx, [rsp + 0x20]
call fcn.1800152f0
xor edx, edx
lea ecx, [rdx + 1]
mov r8d, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x180016ae3
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x180016af8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, edi
mov ecx, 0x23
mov r8d, eax
call fcn.18000daf8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180016b0c
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x8c0]
sub rsp, 0x9c0
mov rax, qword [0x18003e060]
xor rax, rsp
mov qword [rbp + 0x8b0], rax
mov rbx, rcx
mov r15, r8
mov edi, edx
lea rcx, [rbp + 0xb1]
xor edx, edx
mov r8d, 0x7ff
mov byte [rbp + 0xb0], 0
call fcn.18001c370
lea rcx, [rsp + 0x60]
mov r8d, edi
mov rdx, rbx
call fcn.1800152e0
lea rcx, [rsp + 0x60]
call fcn.1800152f0
lea rcx, [rsp + 0x48]
mov edx, 0x8000
mov r14d, eax
call fcn.18000d5a0
test r14d, r14d
jle 0x180016b99
lea rcx, [rsp + 0x48]
mov edx, r14d
call fcn.18000d5e8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call fcn.18001160c
test eax, eax
je 0x180016bb4
lea rdi, [0x18002cc80]
jmp 0x180016bcd
call fcn.180011654
lea rcx, [0x18002cc80]
lea rdi, [0x18002cc84]
test eax, eax
cmovne rdi, rcx
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180016d31
lea rdx, [rbp - 0x80]
mov rcx, rax
mov dword [rbp - 0x80], 0x130
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x180016c09
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180016d31
mov r8d, dword [rbp - 0x78]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x180016c47
mov ecx, dword [rbp - 0x78]
mov r9d, dword [rbp - 0x60]
lea r8, [rbp - 0x54]
mov dword [rsp + 0x20], ecx
lea rdx, str._s_t_d_t_d_n
lea rcx, [rsp + 0x48]
call fcn.18000d61c
jmp 0x180016cd2
lea rdx, [rbp + 0xb0]
mov r8d, 0x800
mov rcx, rax
call fcn.180016d9c
lea rdx, [rsp + 0x40]
neg eax
sbb cl, cl
and byte [rbp + 0xb0], cl
mov ecx, dword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov ecx, dword [rsp + 0x40]
or edx, 0xffffffff
test eax, eax
cmove ecx, edx
mov dword [rsp + 0x40], ecx
mov rcx, rsi
call fcn.18001160c
mov r9d, dword [rbp - 0x60]
lea rcx, [0x18002cc84]
test eax, eax
mov eax, dword [rsp + 0x40]
lea r8, [rbp - 0x54]
mov dword [rsp + 0x38], eax
lea rax, [rbp + 0xb0]
cmove rcx, rdi
mov qword [rsp + 0x30], rax
mov eax, dword [rbp - 0x78]
mov qword [rsp + 0x28], rcx
lea rdx, str._s_t_d_t_d_t_s_t_s_t_d_n
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x20], eax
call fcn.18000d61c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp - 0x80]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x180016c09
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x48]
call fcn.18000d618
lea rcx, [rsp + 0x48]
mov ebx, eax
call fcn.18000d67c
mov edx, ebx
mov r8d, select
mov rcx, rax
test r14d, r14d
je 0x180016d24
mov r8d, reloc.WS2_32.dll_shutdown
call r15
lea rcx, [rsp + 0x48]
call fcn.18000d57c
mov rcx, qword [rbp + 0x8b0]
xor rcx, rsp
call fcn.18001be40
mov rbx, qword [rsp + 0xa08]
add rsp, 0x9c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180016e2c
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r14, rcx
mov r12d, 0x8000
mov r15, r8
mov ecx, r12d
mov rsi, rdx
call fcn.18001bcf0
lea r8, str._s
mov r9, r14
mov rcx, rax
mov edx, r12d
mov rbx, rax
call fcn.18001b94c
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rbx
mov rbp, rax
call fcn.18001bcb0
cmp rbp, 0xffffffffffffffff
je 0x180016f4a
lea rdi, [rsi + 0x2c]
test byte [rsi], 0x10
je 0x180016f21
mov al, byte [rdi]
cmp al, byte [0x18002ccb4]
jne 0x180016eb7
mov al, byte [rdi + 1]
cmp al, byte [0x18002ccb5]
je 0x180016f2d
mov al, byte [rdi]
cmp al, byte [0x18002ccb8]
jne 0x180016ed7
mov al, byte [rdi + 1]
cmp al, byte [0x18002ccb9]
jne 0x180016ed7
mov al, byte [rdi + 2]
cmp al, byte [0x18002ccba]
je 0x180016f2d
mov rcx, r12
call fcn.18001bcf0
lea r8, [0x18002c774]
mov r9, rdi
mov rcx, rax
mov rdx, r12
mov rbx, rax
call fcn.18001b94c
mov r9, r15
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.180016f6c
mov r8d, 1
mov rdx, rbx
mov rcx, r14
call r15
mov rcx, rbx
call fcn.18001bcb0
jmp 0x180016f2d
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call r15
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180016e9d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1800181b8
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 r15
sub rsp, 0x40
mov qword [0x18004d350], rcx
mov ebx, 0x400
mov ecx, ebx
call fcn.18001bcf0
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov qword [0x18004d358], rax
call fcn.18001c370
xor r15d, r15d
lea rbp, str.ihihikiaikihikh
mov eax, r15d
xor byte [rax + rbp], 0x69
inc rax
cmp rax, 0x1000
jl 0x180018205
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, rbp
call fcn.1800152e0
jmp 0x1800182d2
lea rcx, [rsp + 0x20]
call fcn.180015350
lea rcx, [rsp + 0x20]
movsx ebx, ax
call fcn.180015350
mov rcx, qword [0x18004d358]
movsx rdi, di
mov edx, ebx
movzx esi, ax
shl rdi, 4
mov word [rdi + rcx], bx
dec edx
je 0x1800182bc
dec edx
je 0x1800182a5
dec edx
jne 0x1800182d2
movsx rbx, ax
mov rcx, rbx
call fcn.18001bcf0
mov rdx, qword [0x18004d358]
lea rcx, [rsp + 0x20]
mov qword [rdi + rdx + 8], rax
movsx edx, si
call fcn.180015328
mov rcx, qword [0x18004d358]
mov r8, rbx
mov rcx, qword [rdi + rcx + 8]
mov rdx, rax
call fcn.18001be70
jmp 0x1800182d2
lea rcx, [rsp + 0x20]
call fcn.1800152f0
mov rcx, qword [0x18004d358]
mov dword [rdi + rcx + 8], eax
jmp 0x1800182d2
lea rcx, [rsp + 0x20]
call fcn.180015350
mov rdx, qword [0x18004d358]
mov word [rdi + rdx + 8], ax
lea rcx, [rsp + 0x20]
call fcn.180015350
movzx edi, ax
test ax, ax
jg 0x18001822c
xor edx, edx
mov r8d, 0x1000
mov rcx, rbp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
jmp fcn.18001c370
Function at 0x1800183d0
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x18003e060]
xor rax, rsp
mov qword [rbp + 0x380], rax
lea rcx, [rbp - 0x7f]
xor edx, edx
mov r8d, 0x3ff
mov byte [rbp - 0x80], 0
call fcn.18001c370
and dword [rsp + 0x40], 0
xor eax, eax
lea rcx, [rsp + 0x59]
xor edx, edx
lea r8d, [rax + 0x27]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x58], al
call fcn.18001c370
lea rcx, [rsp + 0x58]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
lea rcx, [rsp + 0x58]
lea edx, [r9 + 1]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea rax, [rsp + 0x58]
lea rdx, [rbp - 0x80]
lea rcx, [0x18002ccb4]
mov r8d, 0x400
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 0x18
mov dword [rsp + 0x50], 1
call fcn.180014f84
lea rax, [rsp + 0x40]
mov edx, 3
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
lea r8d, [rdx + 3]
mov r9d, 0xff
mov dword [rsp + 0x28], 0x100000
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1800184da
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rbx + 0x18]
mov edx, eax
call fcn.18000daec
xor eax, eax
jmp 0x180018508
mov ecx, 0x100000
call fcn.18001bcf0
and dword [0x180049098], 0
mov dword [reloc.WS2_32.dll_accept], 2
mov qword [0x180049090], rax
mov qword [0x18003e040], rbx
mov eax, 1
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.18001be40
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x490
pop rbp
ret

Function at 0x180018654
Capabilities:
Connect pipe

Disassembly:
push rbx
sub rsp, 0x440
mov rax, qword [0x18003e060]
xor rax, rsp
mov qword [rsp + 0x430], rax
movsxd r8, dword [rdx + 4]
mov dword [rsp + 0x20], ecx
mov rbx, rdx
lea rcx, [rsp + 0x24]
add rdx, 8
call fcn.18001be70
mov rcx, qword [0x18003e040]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1800186af
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x217
sete cl
test ecx, ecx
je 0x180018688
mov r8d, dword [rbx + 4]
mov rcx, qword [0x18003e040]
lea rdx, [rsp + 0x20]
add r8d, 4
call fcn.180015024
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.18001be40
add rsp, 0x440
pop rbx
ret

Function at 0x1800187f8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
or rsi, 0xffffffffffffffff
mov rdi, rdx
mov rbx, rcx
lea edx, [rsi + 0x19]
lea r9d, [rsi + 5]
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [r14 + 0x10], rax
call fcn.180018940
mov r8, qword [0x1800490b0]
test r8, r8
je 0x18001886d
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, r14
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop r14
ret
Function at 0x180018888
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov esi, 1
mov rdi, rcx
mov rbx, rdx
add dword [0x1800490a8], esi
lea ecx, [rsi + 0x26]
call fcn.180018188
cmp ax, si
jne 0x1800188c2
mov rdx, rbx
mov rcx, rdi
call fcn.1800187f8
jmp 0x1800188dd
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, rbx
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1800188f0
Capabilities:
Create thread
Terminate process

Disassembly:
sub rsp, 0x38
mov ecx, 0x27
call fcn.180018188
cmp ax, 1
jne 0x180018934
mov r8, qword [sym.imp.KERNEL32.dll_ExitProcess]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x180018cf4
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x18003e060]
xor rax, rsp
mov qword [rbp - 8], rax
lea rax, [rbp - 0x18]
lea rcx, [rbp - 0x10]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
and dword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r8d, 0x20
mov dl, 2
mov dword [rbp - 0x10], 0
mov word [rbp - 0xc], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp - 0x20], eax
test eax, eax
je 0x180018d85
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp - 0x20], ecx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp - 0x20]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18001be40
add rsp, 0x80
pop rbp
ret

Function at 0x180018d9c
Capabilities:
Impersonate user

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, r9
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
call fcn.180018b3c
lea rax, [0x1800490b8]
mov qword [rsp + 0x28], rax
mov r9d, 9
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x20], 3
call qword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
jne 0x180018e02
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x18
mov edx, eax
call fcn.18000daec
jmp 0x180018e51
mov rcx, qword [0x1800490b8]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x180018e20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x19
jmp 0x180018df9
mov rcx, qword [0x1800490b8]
mov r8d, 0x400
mov rdx, rsi
call fcn.180018ea0
test eax, eax
je 0x180018e51
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rsi + rdx], 0
jne 0x180018e3d
mov r8d, reloc.WS2_32.dll_ntohs
mov rcx, rsi
call rbp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180019028
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rdi, rdx
mov rbp, rcx
test r8d, r8d
je 0x180019082
xor r9d, r9d
mov edx, ebx
mov rcx, rbp
lea r8d, [r9 + 1]
add rdx, rdi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x180019082
add ebx, eax
cmp ebx, 2
jb 0x18001907e
lea eax, [rbx - 1]
cmp byte [rax + rdi], 0xa
jne 0x18001907e
lea eax, [rbx - 2]
cmp byte [rax + rdi], 0xd
je 0x18001909a
cmp ebx, esi
jb 0x18001904c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea ecx, [rbx - 2]
mov eax, ebx
mov byte [rcx + rdi], 0
jmp 0x180019085
Function at 0x18001ced4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.18001cd3c

Function at 0x180024960
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180024976
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180024978
xor eax, eax
test eax, eax
je 0x180024988
mov ecx, eax
call fcn.18001f354
or eax, 0xffffffff
jmp 0x18002498a
xor eax, eax
add rsp, 0x28
ret

Function at 0x180024990
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1800249a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800249aa
xor eax, eax
test eax, eax
je 0x1800249ba
mov ecx, eax
call fcn.18001f354
or eax, 0xffffffff
jmp 0x1800249bc
xor eax, eax
add rsp, 0x28
ret

Function at 0x1800249c4
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1800249da
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800249dc
xor eax, eax
test eax, eax
je 0x1800249ec
mov ecx, eax
call fcn.18001f354
or eax, 0xffffffff
jmp 0x1800249ee
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400023cc
Capabilities:
Extract resource via kernel32 functions

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 rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140002443
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140002443
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140002430
cmp rbx, rcx
jae 0x140002443
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14000241b
cmp rbx, rcx
jae 0x140002443
movzx eax, word [rbx]
neg ax
sbb rax, rax
and rax, rbx
jmp 0x140002445
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret