joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14017d480
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp], rcx
mov rax, qword [rcx]
nop word cs:[rax + rax]
mov rcx, rax
xor rcx, 3
lock cmpxchg qword [rsi], rcx
jne 0x14017d4b0
test al, 1
je 0x14017d584
test al, 2
jne 0x14017d59c
xor rax, 3
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
mov rdx, rbp
call fcn.140169b20
mov qword [rbp + 0x18], rax
test rax, rax
je 0x14017d517
mov qword [rbp + 0x10], rdx
mov rax, qword [rdx]
test rax, rax
je 0x14017d4fd
mov rcx, qword [rbp + 0x18]
call rax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14017d517
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp + 0x18]
call fcn.1400262a0
mov qword [rbp + 8], 1
mov rax, 0xffffffffffffffc0
lock xadd qword [rsi], rax
shr rax, 6
cmp rax, qword [rbp + 8]
jb 0x14017d5b4
jne 0x14017d579
lea rcx, [rsi + 0x28]
mov qword [rbp + 0x18], rsi
call fcn.140179bf0
mov rax, qword [rbp + 0x18]
mov rax, qword [rax + 0x58]
test rax, rax
je 0x14017d55c
mov rcx, qword [rbp + 0x18]
mov rcx, qword [rcx + 0x60]
call qword [rax + 0x18]
mov edx, 0x80
mov r8d, 0x80
mov rcx, qword [rbp + 0x18]
add rsp, 0xa8
pop rsi
pop rbp
jmp fcn.1400262a0
nop
add rsp, 0xa8
pop rsi
pop rbp
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1402809d8]
mov edx, 0x23
call fcn.1401dccb0
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140280a18]
mov edx, 0x25
call fcn.1401dccb0
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [fcn.1401cdf10]
mov qword [rbp - 0x28], rax
lea rcx, [rbp + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rax
lea rax, str.current:___sub:_0_n__
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 2
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 2
lea rdx, [0x140280a60]
lea rcx, [rbp - 0x60]
call fcn.1401dcbf0
int3

Function at 0x14017e380
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140181fb0
sub rsp, 0x38
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 4
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140181fe8
xor eax, eax
add rsp, 0x38
ret
call fcn.1401b2b90
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x14017e390
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x140182000
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140182035
xor eax, eax
add rsp, 0x38
ret
call fcn.1401b2b90
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
Function at 0x14017e3a0
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x140181f60
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1002
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140181f95
xor eax, eax
add rsp, 0x38
ret
call fcn.1401b2b90
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x140181d10
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x140181ee0
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
mov r8d, dword [rdx + 0x80]
call qword [sym.imp.ws2_32.dll_connect]
test eax, eax
je 0x140181f0a
call fcn.1401b2b90
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x140181f20
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
call qword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x140181f4a
xor eax, eax
add rsp, 0x28
ret
call fcn.1401b2b90
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret

Function at 0x140181f60
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x140181f60
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1002
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140181f95
xor eax, eax
add rsp, 0x38
ret
call fcn.1401b2b90
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x140181fb0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140181fb0
sub rsp, 0x38
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 4
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140181fe8
xor eax, eax
add rsp, 0x38
ret
call fcn.1401b2b90
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x140182000
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x140182000
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140182035
xor eax, eax
add rsp, 0x38
ret
call fcn.1401b2b90
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
Function at 0x140182050
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rdi, rdx
mov rsi, qword [rcx]
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
mov rcx, rsi
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140182177
mov r9d, dword [rdi + 8]
xor ecx, ecx
mov r8d, 0
cmp r9d, 0x3b9aca00
je 0x1401820d8
mov eax, 0x3e8
mul qword [rdi]
mov r8d, r9d
imul r9, r8, 0x431bde83
shr r9, 0x32
add r9, rax
adc rdx, 0
mov eax, 0xffffffff
cmp r9, rax
cmovae r9, rax
xor r8d, r8d
neg rdx
sbb r8d, r8d
or r8d, r9d
mov r9d, dword [rdi + 0x18]
cmp r9d, 0x3b9aca00
je 0x140182119
mov eax, 0x3e8
mul qword [rdi + 0x10]
mov ecx, r9d
imul r9, rcx, 0x431bde83
shr r9, 0x32
add r9, rax
adc rdx, 0
mov eax, 0xffffffff
cmp r9, rax
cmovae r9, rax
xor ecx, ecx
neg rdx
sbb ecx, ecx
or ecx, r9d
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x4c], r8d
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x54], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x48]
mov rcx, rsi
mov edx, 0x98000004
mov r9d, 0xc
call qword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x140182177
xor eax, eax
jmp 0x140182184
call fcn.1401b2b90
shl rax, 0x20
or rax, 2
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x140192240
Capabilities:
Get memory capacity

Disassembly:
push rsi
push rbx
sub rsp, 0xa8
mov ebx, r8d
mov rsi, rcx
test dl, dl
je 0x1401922cd
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x14019228f
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsi + 0xc0], xmm0
jmp 0x1401922cd
call fcn.140197510
mov qword [rsp + 0x98], rax
mov dword [rsp + 0xa0], edx
mov qword [rsp + 0x90], 1
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsi + 0xc0], xmm0
test rax, rax
je 0x1401922cd
lea rcx, [rsp + 0x98]
call fcn.140159f40
test bl, bl
je 0x140192364
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x20]
mov edx, 0x68
call qword [sym.imp.kernel32.dll_K32GetPerformanceInfo]
test eax, eax
je 0x140192364
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
xor r9d, r9d
sub rdx, r8
cmovb rdx, r9
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul rdx
mov r10, 0xffffffffffffffff
cmovo rax, r10
mov rdx, qword [rsp + 0x28]
sub rdx, r8
cmovb rdx, r9
mov qword [rsi + 0xd0], rax
mov rax, rcx
mul rdx
cmovo rax, r10
mov qword [rsi + 0xd8], rax
add rsp, 0xa8
pop rbx
pop rsi
ret
Function at 0x1401949a0
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov rax, rdx
mov rsi, rcx
lea rdx, [rbp - 0x24]
mov rcx, rax
call qword [sym.imp.shell32.dll_CommandLineToArgvW]
test rax, rax
je 0x140194ab1
mov rdi, rax
mov qword [rbp - 0x30], rsi
movsxd rax, dword [rbp - 0x24]
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 8
mov qword [rbp - 0x10], 0
lea r13, [rdi + rax*8]
lea rbx, [rbp - 0x60]
lea r14, [rbp - 0x48]
lea r15, [rbp - 0x20]
mov r12, rdi
jmp 0x140194a44
add r12, 8
mov rax, qword [rbp - 0x18]
lea rcx, [rsi + rsi*2]
mov rdx, qword [rbp - 0x50]
mov qword [rax + rcx*8 + 0x10], rdx
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [rax + rcx*8], xmm0
inc rsi
mov qword [rbp - 0x10], rsi
cmp r12, r13
je 0x140194a8a
mov byte [rbp - 1], 1
mov rcx, r12
call fcn.140197ab0
lea rcx, [rax + rdx*2]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rcx
mov word [rbp - 0x38], 0
mov byte [rbp - 1], 1
mov rcx, rbx
mov rdx, r14
call fcn.140191590
mov rsi, qword [rbp - 0x10]
cmp rsi, qword [rbp - 0x20]
jne 0x140194a20
mov rcx, r15
call fcn.140073cd0
jmp 0x140194a20
mov byte [rbp - 1], 1
mov rcx, rdi
call qword [sym.imp.kernel32.dll_LocalFree]
test rax, rax
je 0x140194aca
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x30]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rcx], xmm0
jmp 0x140194b07
mov qword [rsi], 0
mov qword [rsi + 8], 8
mov qword [rsi + 0x10], 0
jmp 0x140194b07
mov byte [rbp - 1], 1
call fcn.140197510
mov dword [rbp - 0x38], edx
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x48], 1
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x30]
mov qword [rdx + 0x10], rcx
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rdx], xmm0
test rax, rax
je 0x140194b07
lea rcx, [rbp - 0x40]
mov byte [rbp - 1], 0
call fcn.140159f40
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14019bbc0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov r14, rdx
mov rsi, rcx
movups xmm0, xmmword [rdx + 0x38]
movups xmm1, xmmword [rdx + 0x48]
movaps xmmword [rbp - 0x30], xmm1
movaps xmmword [rbp - 0x40], xmm0
mov rax, qword [rdx + 0x28]
movzx ebx, byte [rdx + 0x30]
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x50], rax
mov byte [rbp - 0x48], bl
movzx eax, byte [0x1402f0341]
mov ecx, 0x5f0
mov edx, 8
call fcn.140026290
test rax, rax
mov qword [rbp - 8], r14
je 0x14019be30
mov rdi, rax
mov r8d, 0x5f0
mov rcx, rax
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rax, qword [r14 + 0x60]
mov qword [rbp - 0x18], rax
movabs rcx, 0x7465646279746573
movabs rdx, 0x6c7967656e657261
movabs r8, 0xded7d4e2d7dedfc6
movabs r9, 0xa60c596fc19fead0
movabs r10, 0xe414a674f0de7325
movabs r11, 0x800000000000000
mov r12d, 1
lock xadd qword [0x1402f03b0], r12
mov r14, r12
xor r14, rcx
lea r15, [r14 + rdx]
mov rax, r14
rol rax, 0x10
xor rax, r15
lea r15, [rax + r8]
rol rax, 0x15
add r14, r9
mov r13, r14
xor r13, r10
rol r14, 0x20
xor r12, r15
add r12, r13
rol r13, 0xd
xor r15, r11
xor r13, r12
rol r12, 0x20
xor r15, rax
add r14, r15
rol r15, 0x10
xor r15, r14
add r12, r15
rol r15, 0x15
add r14, r13
rol r13, 0x11
xor r15, r12
xor r13, r14
rol r14, 0x20
xor r12, r11
add r12, r13
rol r13, 0xd
xor r13, r12
rol r12, 0x20
xor r14, 0xff
add r14, r15
rol r15, 0x10
xor r15, r14
add r12, r15
rol r15, 0x15
add r14, r13
rol r13, 0x11
xor r13, r14
rol r14, 0x20
xor r15, r12
add r12, r13
rol r13, 0xd
xor r13, r12
rol r12, 0x20
add r14, r15
rol r15, 0x10
xor r15, r14
add r12, r15
rol r15, 0x15
add r14, r13
rol r13, 0x11
xor r13, r14
rol r14, 0x20
xor r15, r12
add r12, r13
rol r13, 0xd
add r14, r15
rol r15, 0x10
xor r15, r14
rol r15, 0x15
xor r13, r12
add r14, r13
rol r13, 0x11
mov r12, r14
rol r12, 0x20
xor r12, r13
xor r12, r15
xor r12, r14
je 0x14019bc80
mov rcx, qword [rbp - 8]
mov rax, qword [rcx + 0x58]
movaps xmm0, xmmword [rbp - 0x40]
movaps xmm1, xmmword [rbp - 0x30]
movups xmmword [rsi + 0x128], xmm1
movups xmmword [rsi + 0x118], xmm0
mov rdx, qword [rbp - 0x10]
mov qword [rsi + 0x138], rdx
mov byte [rsi + 0x140], bl
mov qword [rsi], 0
mov qword [rsi + 8], rdi
mov qword [rsi + 0x80], 0
mov qword [rsi + 0x88], rdi
mov rdx, qword [rbp - 0x18]
mov qword [rsi + 0x100], rdx
mov qword [rsi + 0x108], r12
mov qword [rsi + 0x110], rax
mov rdx, qword [rcx + 0x10]
movabs rax, 0x8000000000000000
cmp rdx, rax
je 0x14019be1c
test rdx, rdx
je 0x14019be1c
mov rcx, qword [rcx + 0x18]
mov r8d, 1
call fcn.1400262a0
mov rax, rsi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov ecx, 8
mov edx, 0x5f0
call fcn.1401dc9a0
ud2
Function at 0x1401a72f0
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x30]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [rbp - 0x10]
xor eax, eax
test rcx, rcx
sete al
lea rdx, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
cmovne rdx, rcx
add rsp, 0x50
pop rbp
ret

Function at 0x1401a7330
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 0x1401a73d0
jmp 0x1401a73bf
jae 0x1401a748f
cmp r8, 0x201
jae 0x1401a73d0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x1401a7427
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x1401a73ff
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.1401db730
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 0x1401a7450
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1401a74fb
mov r8d, r13d
cmp r12, r8
jne 0x1401a73b0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1401a752f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1401a73bf
jmp 0x1401a73d0
cmp r14, r8
jb 0x1401a7549
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.1401a9f10
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 0x1401a74e4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.1400262a0
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 0x1401a74cf
jmp 0x1401a74e4
lea rcx, [0x140289db8]
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1401dccb0
jmp 0x1401a755e
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.1401dd100
ud2
Function at 0x1401a9cd0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x1401771c8
add rcx, 0x18
add rsp, 0x28
jmp 0x140187760
lea rcx, [0x140282b48]
call fcn.1401dcb70
int3
jmp 0x1401a9cd0
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rbp - 4], eax
mov dword [rsp + 0x20], 4
lea r9, [rbp - 4]
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1401a9d0d
xor eax, eax
add rsp, 0x30
pop rbp
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbp
ret

Function at 0x1401a9d30
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 0x1401a9d65
movsxd rdx, eax
xor ecx, ecx
jmp 0x1401a9d89
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x1401a9d89
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x20
pop rbp
ret

Function at 0x1401a9da0
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 0x1401a9dd9
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 0x1401a9e00
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rsi
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov rax, qword [rcx]
mov rcx, qword [rax]
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov dword [rbp + 4], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rbp + 4]
call qword [sym.imp.ws2_32.dll_WSASend]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1401a9e53
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
xor ecx, ecx
cmp esi, 0xffffffff
sete cl
mov edx, dword [rbp + 4]
cmove rdx, rax
mov rax, rcx
add rsp, 0x48
pop rsi
pop rbp
ret
Function at 0x1401ac9f0
Capabilities:
Terminate process

Disassembly:
jmp 0x1401ac9f0
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov rsi, qword [rcx + 0x30]
mov rcx, rsi
mov edx, 1
call qword [sym.imp.kernel32.dll_TerminateProcess]
test eax, eax
je 0x1401aca16
xor eax, eax
jmp 0x1401aca81
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 5
jne 0x1401aca79
mov rdi, rax
mov rcx, rsi
xor edx, edx
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x1401aca3c
cmp eax, 0x102
je 0x1401aca12
jmp 0x1401aca54
mov dword [rbp - 4], 0
lea rdx, [rbp - 4]
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetExitCodeProcess]
test eax, eax
jne 0x1401aca12
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x18], 1
lea rcx, [rbp - 0x10]
call fcn.1401a1410
mov rax, rdi
shl rax, 0x20
or rax, 2
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401ade80
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.1401ce690
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r15, rcx
lea r12, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r12
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xorps xmm6, xmm6
lea r13, [rbp + 0xffc]
lea rbx, [0x1401b4280]
lea r14, [rbp + 0xfb0]
mov rsi, qword [sym.imp.kernel32.dll_WriteFileEx]
mov rdi, qword [sym.imp.kernel32.dll_SleepEx]
mov qword [rbp + 0x1010], r15
mov r8d, 0x1000
mov rcx, r15
mov rdx, r12
call fcn.1401b4050
mov r15, rdx
mov qword [rbp + 0xfd8], rax
mov qword [rbp + 0xfe0], rdx
test rax, rax
jne 0x1401ae070
test r15, r15
je 0x1401ae03c
cmp r15, 0x1000
ja 0x1401ae092
xor r12d, r12d
nop word cs:[rax + rax]
mov r8d, r15d
sub r8d, r12d
lea rdx, [r12 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r13
mov qword [rsp + 0x20], rbx
mov rcx, qword [rbp + 0x1008]
mov r9, r14
call rsi
test eax, eax
je 0x1401ae010
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x1401adfa0
mov ecx, dword [rbp + 0x1000]
mov eax, dword [rbp + 0x1004]
mov rdx, rcx
shl rdx, 0x20
or rdx, 2
xor r8d, r8d
test ecx, ecx
setne r8b
cmove rdx, rax
mov qword [rbp + 0xfe8], r8
mov qword [rbp + 0xff0], rdx
jne 0x1401ae030
add r12, rax
cmp r12, r15
je 0x1401ae000
jbe 0x1401adf50
jmp 0x1401ae07e
mov r15, qword [rbp + 0x1010]
lea r12, [rbp - 0x50]
jmp 0x1401adefe
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe8], 1
mov qword [rbp + 0xff0], rax
lea rcx, [rbp + 0xff0]
call fcn.1401a1410
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xfe0]
call fcn.1401a1410
jmp 0x1401ae03c
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.1401dd170
jmp 0x1401ae0a6
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.1401dd100
ud2