joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800089d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x50
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r12, r9
mov dword [rax - 0x38], 0x1c
lea r8, [rax - 0x38]
mov word [rax - 0x30], bx
lea rdx, [rax - 0x30]
cmp dword [rsp + 0x80], ebx
je 0x180008a14
call qword [sym.imp.WS2_32.dll_getsockname]
jmp 0x180008a1a
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x180008a22
xor eax, eax
jmp 0x180008a9d
movzx ecx, word [rsp + 0x2a]
mov qword [rsp + 0x60], rbp
movzx ebp, word [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_ntohs]
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x2c]
mov word [r12], ax
movzx eax, word [rsp + 0x28]
movsxd r9, dword [rdi]
cmp eax, 2
mov r8, rsi
cmovne rdx, rcx
mov ecx, eax
call sub.WS2_32.dll_InetNtopW
test rax, rax
je 0x180008a78
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, 1
inc eax
mov dword [rdi], eax
jmp 0x180008a96
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x57
jne 0x180008a96
mov ecx, 0x2e
mov eax, reloc.WS2_32.dll_recv
cmp bp, 2
cmove ecx, eax
mov dword [rdi], ecx
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
Function at 0x180008c20
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
movzx eax, word [r8]
mov rdi, r8
movzx ebx, dx
mov r10, rcx
cmp ax, 2
je 0x180008942
cmp ax, 0x17
je 0x18000893b
mov ecx, 0x2741
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x1c
jmp 0x180008947
mov ecx, reloc.WS2_32.dll_recv
movzx edx, ax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], ecx
mov r9, r8
mov rcx, r10
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAStringToAddressW]
test eax, eax
jne 0x18000892e
test bx, bx
je 0x18000897d
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rdi + 2], ax
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x100
mov rax, qword [0x18002e1e0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor eax, eax
mov rsi, r8
mov rbx, rcx
mov qword [r8 + 2], rax
mov qword [r8 + 0xa], rax
mov qword [r8 + 0x12], rax
mov word [r8 + 0x1a], ax
movzx ebp, dx
lea rcx, [rsp + 0x2c]
lea r8d, [rax + 0x2c]
xor edi, edi
xor edx, edx
mov qword [rsp + 0x20], rdi
call fcn.18000fe40
movzx eax, word [rsi]
mov dword [rsp + 0x2c], eax
lea rax, [rsp + 0x68]
lea r8d, [rdi + 3]
lea rcx, [rsp + 0x60]
mov rdx, rbx
mov dword [rsp + 0x28], 0xc00
mov qword [rsp + 0x60], rax
call fcn.180008ae0
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
lea rax, [rsp + 0x68]
cmp rcx, rax
je 0x180008ccb
call fcn.18000e610
test ebx, ebx
je 0x180008cdb
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x180008d3e
mov rbx, qword [rsp + 0x20]
mov rdx, rbx
test rbx, rbx
je 0x180008d15
mov eax, dword [rdx + 4]
cmp eax, 2
je 0x180008d00
cmp eax, 0x17
je 0x180008d00
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x180008ce8
jmp 0x180008d15
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
mov rcx, rsi
call fcn.18000e060
mov edi, 1
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x180008d31
movzx ecx, bp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsi + 2], ax
jmp 0x180008d3c
mov ecx, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, edi
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.18000e030
mov rbx, qword [rsp + 0x138]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
movzx esi, dx
mov rdi, rcx
call fcn.1800083c0
mov r8, rbx
movzx edx, si
mov word [rbx], ax
mov rcx, rdi
test ax, ax
je 0x180008db2
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x180008900
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x180008c20
Function at 0x180008d70
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
movzx eax, word [r8]
mov rdi, r8
movzx ebx, dx
mov r10, rcx
cmp ax, 2
je 0x180008942
cmp ax, 0x17
je 0x18000893b
mov ecx, 0x2741
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x1c
jmp 0x180008947
mov ecx, reloc.WS2_32.dll_recv
movzx edx, ax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], ecx
mov r9, r8
mov rcx, r10
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAStringToAddressW]
test eax, eax
jne 0x18000892e
test bx, bx
je 0x18000897d
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rdi + 2], ax
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x100
mov rax, qword [0x18002e1e0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor eax, eax
mov rsi, r8
mov rbx, rcx
mov qword [r8 + 2], rax
mov qword [r8 + 0xa], rax
mov qword [r8 + 0x12], rax
mov word [r8 + 0x1a], ax
movzx ebp, dx
lea rcx, [rsp + 0x2c]
lea r8d, [rax + 0x2c]
xor edi, edi
xor edx, edx
mov qword [rsp + 0x20], rdi
call fcn.18000fe40
movzx eax, word [rsi]
mov dword [rsp + 0x2c], eax
lea rax, [rsp + 0x68]
lea r8d, [rdi + 3]
lea rcx, [rsp + 0x60]
mov rdx, rbx
mov dword [rsp + 0x28], 0xc00
mov qword [rsp + 0x60], rax
call fcn.180008ae0
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
lea rax, [rsp + 0x68]
cmp rcx, rax
je 0x180008ccb
call fcn.18000e610
test ebx, ebx
je 0x180008cdb
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x180008d3e
mov rbx, qword [rsp + 0x20]
mov rdx, rbx
test rbx, rbx
je 0x180008d15
mov eax, dword [rdx + 4]
cmp eax, 2
je 0x180008d00
cmp eax, 0x17
je 0x180008d00
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x180008ce8
jmp 0x180008d15
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
mov rcx, rsi
call fcn.18000e060
mov edi, 1
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x180008d31
movzx ecx, bp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsi + 2], ax
jmp 0x180008d3c
mov ecx, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, edi
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.18000e030
mov rbx, qword [rsp + 0x138]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
movzx esi, dx
mov rdi, rcx
call fcn.1800083c0
mov r8, rbx
movzx edx, si
mov word [rbx], ax
mov rcx, rdi
test ax, ax
je 0x180008db2
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x180008900
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x180008c20
Function at 0x18000b3d0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rdx + 0x14]
mov rbx, rcx
test eax, eax
je 0x18000b400
mov dword [rcx + 0x20], eax
mov dword [rcx + 0x18], 1
mov dword [rcx + 0x1c], 2
xor eax, eax
mov dword [rcx + 0x24], 1
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x28]
mov r8d, 0x23
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x18000b43f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0x18], 1
mov dword [rbx + 0x1c], 2
mov dword [rbx + 0x24], 1
mov dword [rbx + 0x20], eax
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x68], 1
xor ecx, ecx
mov dword [rbx + 0x6c], 1
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x108]
cmp eax, 2
je 0x18000b4a5
mov rcx, qword [rbx + 0x28]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x18000b49a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x18000b49a
test eax, eax
je 0x18000b49a
mov ecx, 0x80004005
call fcn.180006590
int3
mov eax, 1
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
mov dword [rbx + 0x1c], 5
test eax, eax
cmove eax, ecx
xor ecx, ecx
mov dword [rbx + 0x18], ecx
mov dword [rbx + 0x24], ecx
mov dword [rbx + 0x20], eax
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x18000b620
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
test r8d, r8d
je 0x18000b6a0
mov rdx, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x28]
lea r8d, [rbx + 0x30]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x18000b68e
cmp word [rsi], 2
mov rcx, qword [rdi + 0x28]
mov eax, reloc.WS2_32.dll_recv
mov r8d, 0x1c
mov rdx, rsi
cmove r8d, eax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x18000b689
cmp eax, 0xffffffff
jne 0x18000b68e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x18000b68e
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp word [rdx], 2
mov rcx, qword [rcx + 0x28]
mov eax, reloc.WS2_32.dll_recv
mov r8d, 0x1c
cmove r8d, eax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x18000b68e
mov rdx, qword [rdi + 0x30]
mov rcx, qword [rdi + 0x28]
mov r8d, 0x23
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x18000b68e
mov dword [rdi + 0x68], 1
xor ecx, ecx
mov dword [rdi + 0x6c], 1
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r11, qword [rdi]
mov rcx, rdi
call qword [r11 + 0x108]
cmp eax, 2
jne 0x18000b72d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
test eax, eax
cmove eax, ecx
mov ecx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rdi + 0x28]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x18000b754
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
cmove eax, ebx
mov ebx, eax
mov rdx, qword [rdi + 0x38]
lea rcx, str._C_CNNID:__Iu__send_0_bytes__detect_package__n
call fcn.18000add0
test ebx, ebx
je 0x18000b689
mov ecx, 0x80004005
call fcn.180006590
int3

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edx, dword [rcx + 0x210]
mov eax, dword [rcx + 0x50]
inc dword [rcx + 0x210]
xor edi, edi
mov rbx, rcx
cmp edx, eax
jb 0x18000b7c1
mov dword [rcx + 0x18], 1
mov qword [rcx + 0x1c], 5
mov dword [rcx + 0x24], edi
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rcx + 0x28]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x18000b7e8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
cmove eax, edi
mov edi, eax
mov rdx, qword [rbx + 0x38]
lea rcx, str._C_CNNID:__Iu__send_0_bytes__detect_package__n
call fcn.18000add0
test edi, edi
je 0x18000b821
mov dword [rbx + 0x18], 1
mov dword [rbx + 0x1c], 5
mov dword [rbx + 0x20], edi
mov dword [rbx + 0x24], 1
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18000b8d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x20c]
mov rbx, rcx
test eax, eax
jne 0x18000b9f9
xor esi, esi
nop word [rax + rax]
mov r8d, dword [rbx + 0x44]
mov rdx, qword [rbx + 0x80]
mov rcx, qword [rbx + 0x28]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jle 0x18000b9af
mov rcx, qword [rbx + 0x80]
mov edx, eax
mov dword [rbx + 0x210], esi
call fcn.180008690
test eax, eax
jne 0x18000ba0e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x80]
mov r8d, edi
mov rcx, rbx
call qword [rax + 0x128]
cmp eax, 2
jne 0x18000b9eb
mov rdx, qword [rbx + 0x38]
lea rcx, str._C_CNNID:__Iu__OnReceive___event_return_HR_ERROR__connection_will_be_closed___n
call fcn.18000add0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
test eax, eax
cmove eax, ecx
mov dword [rbx + 0x18], 1
mov dword [rbx + 0x1c], 4
mov dword [rbx + 0x20], eax
mov dword [rbx + 0x24], 1
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 0xffffffff
jne 0x18000b9d1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x18000b9f9
cmp eax, 0x2744
je 0x18000b9eb
cmp eax, 0x2746
jne 0x18000b985
jmp 0x18000b9eb
test eax, eax
jne 0x18000b9eb
mov rdx, qword [rbx + 0x38]
lea rcx, str._C_CNNID:__Iu__recv_0_bytes__detect_package__n
mov dword [rbx + 0x210], esi
call fcn.18000add0
mov eax, dword [rbx + 0x20c]
test eax, eax
je 0x18000b900
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov dword [rbx + 0x24], esi
mov rsi, qword [rsp + 0x38]
mov dword [rbx + 0x18], 1
mov qword [rbx + 0x1c], 5
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x18000c0b0
Capabilities:
Send data
Send data on socket

Disassembly:
push r12
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov rsi, rcx
call fcn.18000ba40
mov rdi, rax
lea rbx, [rsi + 0xa8]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18000c255
nop dword [rax + rax]
mov r8d, dword [rdi + 0x30]
sub r8d, dword [rdi + 0x28]
xor r9d, r9d
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.WS2_32.dll_send]
mov ebp, eax
test eax, eax
jle 0x18000c177
lea rcx, [rsi + 0x1a8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [rsi + 0x208], ebp
lea rcx, [rsi + 0x1a8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r9, qword [rsi]
mov r8d, ebp
mov rdx, qword [rdi + 0x28]
mov rcx, rsi
call qword [r9 + 0x118]
cmp eax, 2
jne 0x18000c170
mov rdx, qword [rsi + 0x38]
lea rcx, str._C_CNNID:__Iu__OnSend___event_should_not_return_HR_ERROR____n
call fcn.18000add0
mov rbx, qword [rsp + 0x28]
jmp 0x18000c17c
cmp eax, 0xffffffff
je 0x18000c1be
lea rcx, [rbx + 0x30]
mov rdx, rdi
call fcn.180008250
test eax, eax
jne 0x18000c194
mov rcx, rdi
call fcn.18000adb0
mov rcx, rsi
call fcn.18000ba40
mov rdi, rax
lea rbx, [rsi + 0xa8]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x18000c100
jmp 0x18000c255
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x18000c221
lea rcx, [rsi + 0x1a8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 0x1d8]
test rax, rax
je 0x18000c1f5
mov qword [rax + 0x10], rdi
mov rax, qword [rsi + 0x1d8]
mov qword [rdi + 8], rax
jmp 0x18000c204
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], rax
mov qword [rsi + 0x1e0], rdi
mov qword [rsi + 0x1d8], rdi
inc dword [rsi + 0x1d0]
lea rcx, [rsi + 0x1a8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x18000c272
mov dword [rsi + 0x18], 1
mov dword [rsi + 0x1c], 3
mov dword [rsi + 0x20], eax
mov dword [rsi + 0x24], 1
lea rcx, [rbx + 0x30]
mov rdx, rdi
call fcn.180008250
test eax, eax
jne 0x18000c251
mov rcx, rdi
call fcn.18000adb0
xor eax, eax
jmp 0x18000c277
test rdi, rdi
je 0x18000c272
lea rcx, [rbx + 0x30]
mov rdx, rdi
call fcn.180008250
test eax, eax
jne 0x18000c272
mov rcx, rdi
call fcn.18000adb0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret

Function at 0x18000cc40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rax, [rcx + 0x60]
mov rbx, rcx
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x18000c7f0]
xor edi, edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call fcn.18000ea20
test rax, rax
mov qword [rbx + 0x58], rax
mov rbx, qword [rsp + 0x40]
setne dil
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x18001055f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18002e1e0]
jne 0x18000e04a
rol rcx, 0x10
test cx, 0xffff
jne 0x18000e046
repz ret
ror rcx, 0x10
jmp 0x1800104b8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180030cb0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180030da8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18001053d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180030cb0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18001055f
mov rax, qword [rsp + 0x88]
mov qword [0x180030da8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180030d48], rax
mov rax, qword [0x180030da8]
mov qword [0x180030c20], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180030d30], rax
mov dword [0x180030c10], 0xc0000409
mov dword [0x180030c14], 1
mov rax, qword [0x18002e1e0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18002e1e8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180030ca8], eax
mov ecx, 1
call fcn.1800191d4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180025920]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180030ca8], 0
jne 0x1800105e6
mov ecx, 1
call fcn.1800191d4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x180011000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x18001102a
call fcn.180010f98
and dword [rax], 0
call fcn.180010f78
mov ebx, reloc.WS2_32.dll_shutdown
mov dword [rax], ebx
call fcn.180010928
mov eax, ebx
jmp 0x18001107a
test edx, 0xfffffff9
jne 0x18001100d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x180011053
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180010fb8
call fcn.180010f78
mov eax, dword [rax]
jmp 0x18001107a
test al, 0x10
jne 0x180011078
test al, 1
je 0x180011078
test bl, 2
je 0x180011078
call fcn.180010f98
mov dword [rax], 5
call fcn.180010f78
mov dword [rax], select
jmp 0x18001104a
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x18001b0b4
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x18002e1e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.180013324
xor ebx, ebx
cmp qword [0x180031c70], rbx
mov rdi, rax
jne 0x18001b1c7
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x18001b29e
lea rdx, [0x1800273e8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001b29e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180031c70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180031c78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x180031c80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180031c90], rax
test rax, rax
je 0x18001b1be
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180031c88], rax
jmp 0x18001b1ce
mov rax, qword [0x180031c88]
jmp 0x18001b1d5
mov rax, qword [0x180031c88]
mov r11, qword [0x180031c90]
cmp rax, rdi
je 0x18001b23c
cmp r11, rdi
je 0x18001b23c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180031c90]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x18001b23c
test rax, rax
je 0x18001b23c
call rsi
test rax, rax
je 0x18001b236
lea rcx, [rsp + 0x30]
mov r9d, ntohs
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18001b236
test byte [rsp + 0x40], 1
jne 0x18001b23c
bts ebp, 0x15
jmp 0x18001b27c
mov rcx, qword [0x180031c78]
cmp rcx, rdi
je 0x18001b27c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18001b27c
call rax
mov rbx, rax
test rax, rax
je 0x18001b27c
mov rcx, qword [0x180031c80]
cmp rcx, rdi
je 0x18001b27c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18001b27c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180031c70]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18001b29e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x18001b2a0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18000e030
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18000631b
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x18007ad10
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
movsx eax, byte [rsp + 0x10]
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
ret
Function at 0x1400010a4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x1400010d8
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
jne 0x1400010d8
mov dword [rsp + 0x24], 1
jmp 0x1400010e0
mov dword [rsp + 0x24], 0
mov al, byte [rsp + 0x24]
add rsp, 0x38
ret

Function at 0x1400010ec
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, qword [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140001133
xor al, al
jmp 0x140001209
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000117a
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140001209
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400011d3
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x140001209
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov al, 1
add rsp, 0x58
ret