joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012a0b0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
cmp r8, 0xffffffffffffffff
je 0x14012a2cc
mov rbx, r8
mov r15, r8
inc r15
js 0x14012a2d8
mov rdi, r9
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14019f308]
xor ecx, ecx
mov rdx, r15
call fcn.1400e7f40
test rax, rax
je 0x14012a2dd
mov r12, rax
mov rcx, rax
mov rdx, r14
mov r8, rbx
call fcn.140120b90
cmp rbx, 0x10
jae 0x14012a148
test rbx, rbx
je 0x14012a1ef
xor eax, eax
nop word cs:[rax + rax]
cmp byte [r14 + rax], 0
je 0x14012a254
inc rax
cmp rbx, rax
jne 0x14012a130
jmp 0x14012a1ef
lea rax, [r14 + 7]
and rax, 0xfffffffffffffff8
sub rax, r14
jne 0x14012a1a1
lea rcx, [rbx - 0x10]
xor eax, eax
movabs rdx, 0x101010101010100
movabs r8, 0x8080808080808080
nop
mov r9, qword [r14 + rax]
mov r10, qword [r14 + rax + 8]
mov r11, rdx
sub r11, r10
or r11, r10
mov r10, rdx
sub r10, r9
or r10, r9
and r10, r11
not r10
test r10, r8
jne 0x14012a1cc
add rax, 0x10
cmp rax, rcx
jbe 0x14012a170
jmp 0x14012a1cc
xor ecx, ecx
nop word cs:[rax + rax]
cmp byte [r14 + rcx], 0
je 0x14012a254
inc rcx
cmp rax, rcx
jne 0x14012a1b0
lea rcx, [rbx - 0x10]
cmp rax, rcx
jbe 0x14012a15b
cmp rax, rbx
je 0x14012a1ef
nop word cs:[rax + rax]
cmp byte [r14 + rax], 0
je 0x14012a254
inc rax
cmp rbx, rax
jne 0x14012a1e0
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], rbx
lea rcx, [rbp - 0x40]
call fcn.140006c00
mov rbx, rax
mov r14, rdx
xorps xmm0, xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x38], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x40]
lea r9, [rbp - 8]
mov rcx, rax
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14012a287
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x14012a29b
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, qword [0x14019f258]
xor edx, edx
mov r8, r12
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [rdi]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rbx], 0
test r14, r14
je 0x14012a2bc
mov rcx, qword [0x14019f258]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea rcx, str.alloc_src_ffic_str.rs
call fcn.140121f20
call fcn.140006b00
mov ecx, 1
mov rdx, r15
call fcn.1401216a0
int3
Function at 0x14007f140
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
sub rsp, 0xf8
mov r8, rdx
mov rdx, rcx
mov qword [rsp + 0x98], rdx
mov qword [rsp + 0xa0], r8
mov eax, 0xffffffff
mov eax, eax
mov r9d, eax
lea rcx, [rsp + 0x58]
lea rax, [0x1401a6870]
mov qword [rsp + 0x20], rax
call fcn.14007e780
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.14007e860
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x70]
call fcn.14007e880
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rdx
mov rdx, qword [rsp + 0x88]
mov eax, 1
xor ecx, ecx
cmp rdx, 0
cmove rax, rcx
cmp rax, 0
jne 0x14007f1ee
mov dword [rsp + 0x3c], 0
jmp 0x14007f26b
mov rdx, qword [rsp + 0x88]
mov qword [rsp + 0x28], rdx
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0xa8], rdx
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xe8], rdx
mov qword [rsp + 0xf0], rax
mov r8d, eax
xor eax, eax
mov ecx, eax
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0xb8], eax
shr eax, 0x1e
cmp eax, 3
je 0x14007f277
jmp 0x14007f1ad
mov eax, dword [rsp + 0x3c]
add rsp, 0xf8
ret
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xd8], rcx
mov qword [rsp + 0xe0], rax
mov edx, eax
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
mov byte [rsp + 0xbf], al
cmp al, 0
jne 0x14007f1ad
mov ecx, dword [rsp + 0x38]
xor ecx, 0x80000000
mov dword [rsp + 0xc0], ecx
call fcn.14007e610
mov ecx, eax
mov dword [rsp + 0xc4], ecx
call fcn.14007ef70
mov dword [rsp + 0x3c], eax
jmp 0x14007f26b
Function at 0x140081d20
Capabilities:
Connect socket

Disassembly:
push rbp
sub rsp, 0xd0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x48], 0xfffffffffffffffe
mov qword [rbp - 0x50], rcx
mov qword [rbp + 0x28], rcx
mov byte [rbp + 0x27], 0
lea rcx, [rbp - 0x10]
call fcn.14008b010
mov rcx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x2c], rax
mov rax, qword [rbp - 8]
mov qword [rbp - 0x24], rax
mov rax, qword [rbp]
mov qword [rbp - 0x1c], rax
mov eax, dword [rbp + 8]
mov dword [rbp - 0x14], eax
mov eax, dword [rbp + 0xc]
mov dword [rbp - 0x3c], eax
mov dword [rbp + 0x34], eax
call fcn.140085d70
mov qword [rbp - 0x48], rax
lea rcx, [rbp - 0x2c]
call fcn.14008b000
mov rcx, qword [rbp - 0x48]
mov r8d, dword [rbp - 0x3c]
mov rdx, rax
call qword [sym.imp.ws2_32.dll_connect]
mov dword [rbp + 0x20], eax
lea rcx, [rbp + 0x20]
lea rdx, [0x1401a6f40]
call fcn.140089b10
test al, 1
jne 0x140081dc5
mov byte [rbp + 0x27], 1
mov eax, dword [rbp + 0x20]
mov dword [rbp + 0x14], eax
mov dword [rbp + 0x10], 0
jmp 0x140081dd9
call fcn.140082370
mov byte [rbp + 0x27], 1
mov qword [rbp + 0x18], rax
mov dword [rbp + 0x10], 1
mov eax, dword [rbp + 0x10]
cmp rax, 1
jne 0x140081df4
lea rcx, [rbp + 0x18]
mov qword [rbp + 0x38], rcx
call fcn.1400824c0
mov byte [rbp - 0x51], al
jmp 0x140081dfe
mov qword [rbp - 0x38], 0
jmp 0x140081e32
mov al, byte [rbp - 0x51]
mov byte [rbp + 0x26], al
lea rdx, str._rC:UsersDamon.cargo_registry_srcindex.crates.io_6f17d22bba15001fmio_1.0.2_srcio_source.rs
lea rcx, [rbp + 0x26]
call fcn.140082760
mov byte [rbp - 0x52], al
jmp 0x140081e19
mov al, byte [rbp - 0x52]
test al, 1
jne 0x140081e22
jmp 0x140081df4
mov byte [rbp + 0x27], 0
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x40], rax
mov qword [rbp - 0x38], rax
mov eax, dword [rbp + 0x10]
cmp rax, 1
jne 0x140081e41
test byte [rbp + 0x27], 1
jne 0x140081e52
mov byte [rbp + 0x27], 0
mov rax, qword [rbp - 0x38]
add rsp, 0xd0
pop rbp
ret
lea rcx, [rbp + 0x10]
add rcx, 8
call fcn.1400805e0
jmp 0x140081e41
Function at 0x14008ae60
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov dword [rbp - 0x4c], edx
mov dword [rbp - 0x50], ecx
mov dword [rbp + 0x10], ecx
mov dword [rbp + 0x14], edx
call fcn.14008adc0
mov ecx, dword [rbp - 0x50]
mov edx, dword [rbp - 0x4c]
xor r8d, r8d
call qword [sym.imp.ws2_32.dll_socket]
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
lea rdx, [0x1401a8300]
call fcn.140089b50
test al, 1
jne 0x14008aec2
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x28], 0
jmp 0x14008aed3
call fcn.140082370
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x28], 1
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x20]
call fcn.140085a70
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rdx
cmp qword [rbp - 0x38], 0
jne 0x14008af29
mov rcx, qword [rbp - 0x30]
mov qword [rbp - 0x58], rcx
mov qword [rbp + 0x18], rcx
mov dword [rbp + 4], 1
mov edx, 0x8004667e
lea r8, [rbp + 4]
call qword [sym.imp.ws2_32.dll_ioctlsocket]
mov dword [rbp], eax
mov rcx, rbp
lea rdx, [0x1401a8308]
call fcn.140089b30
test al, 1
jne 0x14008af56
jmp 0x14008af47
mov rcx, qword [rbp - 0x30]
mov qword [rbp + 0x20], rcx
lea rdx, str.C:UsersDamon.cargo_registry_srcindex.crates.io_6f17d22bba15001fmio_1.0.2_src_syswindows_net.rs
call fcn.1400841e0
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rdx
jmp 0x14008afb1
mov eax, dword [rbp]
mov dword [rbp - 0xc], eax
mov dword [rbp - 0x10], 0
jmp 0x14008af66
call fcn.140082370
mov qword [rbp - 8], rax
mov dword [rbp - 0x10], 1
mov eax, dword [rbp - 0x10]
cmp rax, 1
jne 0x14008af86
mov rcx, qword [rbp - 0x58]
mov rax, qword [rbp - 8]
mov qword [rbp + 8], rax
mov rax, qword [sym.imp.ws2_32.dll_closesocket]
call rax
jmp 0x14008afa1
lea rcx, [rbp - 0x10]
call fcn.140080bc0
mov rax, qword [rbp - 0x58]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x48], 0
jmp 0x14008afb1
mov rax, qword [rbp + 8]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x48], 1
mov rax, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x40]
add rsp, 0xb0
pop rbp
ret
Function at 0x140171900
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x1401719a0
jmp 0x14017198f
jae 0x140171a5f
cmp r8, 0x201
jae 0x1401719a0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x1401719f7
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x1401719cf
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140196200
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x140171a20
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140171acb
mov r8d, r13d
cmp r12, r8
jne 0x140171980
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140171aff
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14017198f
jmp 0x1401719a0
cmp r14, r8
jb 0x140171b19
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140175670
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x140171ab4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.14002ba20
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x140171a9f
jmp 0x140171ab4
lea rcx, str.internal_error:_entered_unreachable_code_rustc_051478957371ee0084a7c0913941d2a8c4757bb9library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1401979e0
jmp 0x140171b2e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140197ed0
ud2
Function at 0x140172230
Capabilities:
Create directory

Disassembly:
push rbp
mov rbp, rsp
cmp byte [rcx], 0
je 0x140172245
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.140172260
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.14017af70

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

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
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 0x1401755d5
movsxd rdx, eax
xor ecx, ecx
jmp 0x1401755f9
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x1401755f9
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x20
pop rbp
ret

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

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
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_send]
cmp eax, 0xffffffff
je 0x140175649
movsxd rdx, eax
xor eax, eax
add rsp, 0x20
pop rbp
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14017af70
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x10]
call fcn.14017d570
mov rax, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x14017afd0
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov r8b, 1
call fcn.14017df20
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rdi, rbx
jne 0x14017afdc
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x14017b008
test rdi, rdi
je 0x14017b034
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.14002ba20
xor eax, eax
jmp 0x14017afd3
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x14017afd3
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.14002ba20
jmp 0x14017afd0
xor eax, eax
jmp 0x14017afd3
Function at 0x14017b9e0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x1401b5c80]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14017ba18
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
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 0x14017ba6f
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x14017ba7c
xor edx, edx
xor eax, eax
jmp 0x14017baa6
cmp eax, 0x103
je 0x14017bab0
test eax, eax
js 0x14017ba8f
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14017baa6
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x1401b5ce8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.140174af0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14016fa00
mov ecx, 7
int 0x29
ud2

Function at 0x14017bb00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x1401b5c80]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14017bb38
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
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 0x14017bb96
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14017bbc3
test eax, eax
js 0x14017bba2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14017bbb9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x1401b5ce8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.140174af0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14016fa00
mov ecx, 7
int 0x29
ud2
Function at 0x14017bc20
Capabilities:
Create udp socket

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov edi, edx
cmp word [rcx], 0
mov eax, 2
mov r14d, 0x17
cmove r14d, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor ebx, ebx
mov ecx, r14d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14017bd01
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x14017bc88
mov esi, eax
cmp eax, 0x2726
jne 0x14017bcf4
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, r14d
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14017bcec
mov rsi, rax
xor ebx, ebx
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x14017bd01
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 ebx, 1
mov rsi, rdi
jmp 0x14017bd01
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov ebx, 1
mov rax, rbx
mov rdx, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

Function at 0x14017cc70
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
and al, 0x50

Function at 0x14017e920
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x208
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x186], ax
mov rax, qword [0x1401fe2c0]
cmp rax, 3
jne 0x14017ea52
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
ja 0x14017ea78
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
inc rdi
lea rcx, [rbp + 0x158]
mov rdx, rbx
mov r8, rdi
call fcn.14018c190
cmp qword [rbp + 0x158], 0
je 0x14017e9c1
lea rax, str._Qe_
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14017ea43
mov rcx, qword [rbp + 0x160]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x120], xmm0
movaps xmmword [rbp + 0x140], xmm0
movaps xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x178], 0
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x178]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14017ea24
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x14017ea3c
mov rax, qword [rbp + 0x178]
movzx ecx, word [rbp + 0x186]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov rax, rsi
add rsp, 0x208
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rbx, rdx
call fcn.1401966e0
mov rdx, rbx
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
jbe 0x14017e977
lea r9, [rbp + 0x170]
mov rcx, rsi
mov r8, rdi
call fcn.140196830
jmp 0x14017ea43
Function at 0x140192580
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14019260a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140192600
cmp r11, r10
ja 0x140192686
cmp r10, rdx
ja 0x140192698
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140192602
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1401925e0
jmp 0x140192667
ja 0x14019260a
mov r11, r10
cmp rax, r8
jne 0x1401925a7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14019266b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140192640
mov r8, r10
sub ecx, r9d
jns 0x14019265e
jmp 0x14019266d
cmp r10, rdx
je 0x14019267a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14019266d
xor al, 1
cmp r8, rdx
jne 0x140192620
jmp 0x14019266d
xor eax, eax
jmp 0x14019266d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.1401978a0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140197f40
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140197ed0
int3

Function at 0x1401959f4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x140195a3e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140195a3e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140195a3e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140195a3e
cmp dword [rcx + 0x84], 0xe
jbe 0x140195a3e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140195a40
xor al, al
add rsp, 0x28
ret
Function at 0x140196830
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov r14, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.1401865d0
mov rdx, qword [rbp - 0x28]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x1401968b9
mov rdi, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1401968ec
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x140196900
lea rax, str._Qe_
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdx, rdx
je 0x140196920
mov rcx, qword [rbp - 0x20]
mov r8d, 1
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.14002ba20
mov rcx, qword [r14]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test rbx, rbx
je 0x140196920
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.14002ba20
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret