joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400192f0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140022ab0], rbx
je 0x140019357
cmp rax, rbx
jne 0x14001934a
mov ebx, 1
mov esi, ebx
jmp 0x14001935c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14001932f
mov ebx, 1
mov eax, dword [0x140022ab8]
cmp eax, ebx
jne 0x140019374
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x1400193e0
mov eax, dword [0x140022ab8]
test eax, eax
jne 0x1400193d5
mov dword [0x140022ab8], ebx
lea r15, [0x14001b730]
lea rdi, [0x14001b718]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x1400193c7
test eax, eax
jne 0x1400193cb
cmp qword [rdi], r14
je 0x1400193bc
mov rax, qword [rdi]
mov rcx, qword [0x14001b6d8]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14001939e
test eax, eax
je 0x1400193db
mov eax, 0xff
jmp 0x140019536
mov dword [0x140022490], ebx
mov edi, 0x1f
mov eax, dword [0x140022ab8]
cmp eax, ebx
jne 0x140019407
lea rdx, [0x14001b710]
lea rcx, [0x14001b6e0]
call sub.msvcrt.dll__initterm
mov dword [0x140022ab8], 2
test esi, esi
jne 0x140019415
mov rax, r14
xchg qword [0x140022ab0], rax
cmp qword [0x140022ad0], r14
je 0x140019448
lea rcx, [0x140022ad0]
call fcn.140019950
test eax, eax
je 0x140019448
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140022ad0]
mov r9, qword [0x14001b6d8]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140019461
mov eax, 0xff
jmp 0x140019536
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x1400194e7
test ax, ax
je 0x14001947c
test edx, edx
jne 0x1400194e7
sub ax, bx
cmp ax, di
ja 0x140019492
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14001947c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14001023c
mov dword [0x14002248c], eax
cmp dword [0x1400224b0], r14d
jne 0x1400194d0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140022490], r14d
jne 0x1400194e5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14002248c]
jmp 0x140019536
cmp ax, 0x22
jne 0x1400194fb
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14001946a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1401a0000
add rsp, 0x28
jmp 0x1400192f0
Function at 0x14001984c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140019898
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140019890
cmp dword [rcx + 0x3c], edx
jl 0x140019890
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140019890
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140019898
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140019ae4
Capabilities:
Print debug messages

Disassembly:
jmp 0x140019af0
push rbx
sub rsp, 0x540
mov rax, qword [0x140022150]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140019b6d
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlVirtualUnwind]
jmp 0x140019b8d
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1400196c0
add rsp, 0x540
pop rbx
ret

Function at 0x140019af0
Capabilities:
Print debug messages

Disassembly:
jmp 0x140019af0
push rbx
sub rsp, 0x540
mov rax, qword [0x140022150]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140019b6d
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlVirtualUnwind]
jmp 0x140019b8d
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1400196c0
add rsp, 0x540
pop rbx
ret
Function at 0x140002c30
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 fcn.140004700
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004700
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002ca0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002dd0
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002ceb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002d75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002cd0
mov rcx, rbx
call fcn.1400036f0
mov rdi, rax
test rax, rax
je 0x140002df2
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003830
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002dd7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002d6e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002d80
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002d6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002c30
nop dword [rax]
xor esi, esi
jmp 0x140002cf8
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002c30
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002c30
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003360
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x1400033bc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400033b3
test rsi, rsi
je 0x1400033b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003398
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400036f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006af0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003710
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003718
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003710
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000376d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003764
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003710
add rax, 0x28
cmp rax, r9
jne 0x140003750
xor eax, eax
ret

Function at 0x140003770
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006af0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000378f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003798
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000378f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003830
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006af0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000384f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003858
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14001146a
Capabilities:
Terminate process

Disassembly:
jmp 0x14001d6c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011578
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001c570
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001c590
xor al, al
jmp 0x14001c611
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001c5a3
xor al, al
jmp 0x14001c611
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001c5cd
xor al, al
jmp 0x14001c611
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001c5e1
xor al, al
jmp 0x14001c611
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001c5f3
xor al, al
jmp 0x14001c611
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001c60f
xor al, al
jmp 0x14001c611
mov al, 1
add rsp, 0x38
ret
Function at 0x1400019d0
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rbp - 0x10], rcx
mov edx, 0x100000
xor ecx, ecx
mov r8d, 0x1000
mov r9d, 0x40
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov rdi, rax
mov rax, qword [rbp - 0x10]
mov rsi, qword [rax]
mov r8, qword [rax + 0x10]
mov rcx, rdi
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
mov r8, rdi
xor r9d, r9d
call qword [sym.imp.kernel32.dll_CreateThread]
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x20]
call fcn.140003950
test al, al
jne 0x140001a70
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140001a67
mov r8d, 1
mov rcx, rsi
call fcn.140003870
nop
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
call fcn.140003cf0
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], edx
lea rax, str.srcmain.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x1400244f8]
lea r9, fcn.140001770
lea r8, [rbp - 0x20]
mov edx, 0x2b
call fcn.1400232a0
ud2
Function at 0x140005dd0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x60], 0xfffffffffffffffe
mov rax, r9
shr rax, 0x20
jne 0x140005fe1
mov rdi, r9
mov rbx, rdx
mov rsi, rcx
mov dword [rbp + 0x10], 0
mov rax, qword [rdx + 0x10]
mov rcx, qword [rdx + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x10]
mov rdx, r8
mov r8d, edi
call sub.kernel32.dll_WriteFile
mov r15d, eax
test eax, eax
setne cl
cmp dword [rbp + 0x10], edi
sete r13b
xor eax, eax
mov r12d, edi
and r13b, cl
jne 0x140005e6b
call sub.kernel32.dll_GetLastError
mov r14d, eax
test r15d, r15d
jne 0x140005f57
mov al, 1
mov r12d, 0
cmp r14d, 0x3e5
jne 0x140005f57
mov dword [rbp - 0x50], 2
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x10], rbx
lea rcx, [0x140024e98]
mov qword [rbp - 8], rcx
mov dword [rbp], r12d
mov dword [rbp + 4], edi
mov byte [rbp + 8], al
test r13b, r13b
je 0x140005f16
movups xmm0, xmmword [rbp - 0x50]
movups xmm1, xmmword [rbp - 0x40]
movaps xmmword [rbp + 0x10], xmm0
mov rax, qword [rbp - 0x30]
mov qword [rbp + 0x30], rax
movaps xmmword [rbp + 0x20], xmm1
mov dword [rbp - 0x50], 2
mov qword [rbp - 0x28], 0
cmp dword [rbp + 0x10], 2
je 0x140005eeb
mov rcx, qword [rbp + 0x30]
call fcn.140021188
mov rcx, qword [rbp + 0x20]
mov edx, 0x20
mov r8d, 8
call fcn.140003870
mov rcx, qword [rbp + 0x28]
call fcn.140021188
mov edi, r12d
lea rcx, [rbp - 0x50]
call fcn.1400053f0
mov qword [rbp + 0x10], rdi
mov dword [rbp + 0x18], 2
lea rcx, [rbp + 0x10]
call fcn.140004e90
mov qword [rsi + 8], rdi
xor eax, eax
jmp 0x140005fc7
xor edx, edx
cmp dword [rbx + 8], 1
sbb edx, edx
or edx, dword [rbx + 0xc]
mov rcx, qword [rbx + 0x18]
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0xffffffff
je 0x140005f97
test eax, eax
je 0x140005f61
cmp eax, 0x102
jne 0x140005ffb
lea rdx, str.timed_out_while_writing_into_pipe
mov r8d, 0x21
mov cl, 0x16
call fcn.1400060e0
mov r14, rax
jmp 0x140005fb5
shl r14, 0x20
or r14, 2
jmp 0x140005fbe
mov dword [rbp + 0x10], 0
mov byte [rbp + 8], 0
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x20]
lea r8, [rbp + 0x10]
mov r9d, 1
call sub.kernel32.dll_GetOverlappedResult
test eax, eax
je 0x140005f9e
cmp dword [rbp + 0x10], edi
jne 0x140005fa5
mov dword [rbp], edi
mov r12d, edi
jmp 0x140005e98
call sub.kernel32.dll_GetLastError
jmp 0x140005faa
call sub.kernel32.dll_GetLastError
jmp 0x140005faa
call sub.kernel32.dll_GetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
lea rcx, [rbp - 0x50]
call fcn.1400053f0
mov qword [rsi + 8], r14
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, str.assertion_failed:_buf.len_____0xFFFFFFFF
lea r8, [0x140024f00]
mov edx, 0x29
call fcn.140022f70
ud2
lea rcx, [0x140024d10]
lea r8, [0x140024f18]
mov edx, 0x28
call fcn.140022f70
ud2
Function at 0x140008e90
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 + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140008f20
jmp 0x140008f0f
jae 0x140008fe0
cmp r8, 0x201
jae 0x140008f20
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140008f78
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x140008f4f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400220e0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140008fa1
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140009048
mov r8d, r14d
cmp r15, r8
jne 0x140008f00
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000906b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140008f0f
jmp 0x140008f20
cmp rsi, r8
jb 0x140009085
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14000bda0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140009031
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140003870
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 + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140009019
jmp 0x140009031
lea rcx, str.internal_error:_entered_unreachable_code_rustc_79e9716c980570bfd1f666e3b16ac583f0168962library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140022f70
jmp 0x14000909a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400233c0
ud2
Function at 0x14000bcd0
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x14000bd0a
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000bd21
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14000bd64
cdqe
jmp 0x14000bd73
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x14000bd7b
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000bd8c
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x140010bc0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140026de8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140010c04
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140010c6a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140010ca1
test eax, eax
js 0x140010c7b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140010c94
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14000b410
mov rcx, rax
call fcn.140006d90
mov ecx, 7
int 0x29
ud2
Function at 0x140010d00
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
cmp word [rdx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x140010d55
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140010df1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x140010d69
cmp eax, 0x2739
jne 0x140010dba
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 0x140010db4
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
je 0x140010dcf
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x140010df1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140010df1
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x140012be0
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1f0
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x1400311e8]
cmp rax, 3
jne 0x140012cd6
cmp rbx, 0x17f
ja 0x140012ce8
lea r15, [rsp + 0x70]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x70], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, rbx
call fcn.14001b7a0
cmp qword [rsp + 0x28], 0
je 0x140012c64
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140012cf9
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x140012cbe
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
jmp 0x140012cf9
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
jmp 0x140012cf9
call fcn.140022490
cmp rbx, 0x17f
jbe 0x140012c1a
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
call fcn.140022570
mov rax, rsi
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret