joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004f190
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x1004f1f0
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x1004f1f0
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x1004f1f0
imul r10d, edx, 0xf4240
xor edx, edx
sub r8d, r10d
setne dl
add rax, rdx
jb 0x1004f1f0
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x1004f230
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1006
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1004f21e
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x38
ret

Function at 0x1004f240
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x1004f2a0
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x1004f2a0
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x1004f2a0
imul r10d, edx, 0xf4240
xor edx, edx
sub r8d, r10d
setne dl
add rax, rdx
jb 0x1004f2a0
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x1004f2e0
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1005
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1004f2ce
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x38
ret

Function at 0x1004f450
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
mov r9d, 2
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x1004f491
cdqe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1004f4b8
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x1004f4a5
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1004f4b8
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x1004f4d0
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rcx, qword [rcx]
xor esi, esi
xor eax, eax
cmp r8d, 0x3b9aca00
setne al
cmove edx, esi
mov word [rsp + 0x28], ax
mov word [rsp + 0x2a], dx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x28]
mov edx, 0xffff
mov r8d, pe_nt_image_headers64
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x1004f524
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x1004f5b0
Capabilities:
Set socket configuration

Disassembly:
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, 6
mov r8d, 1
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1004f5e7
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
Function at 0x1004f670
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rdx, [rsp + 0x3c]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x38]
mov rdx, rax
call sub.WS2_32.dll_WSARecv
test eax, eax
je 0x1004f6d2
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x1004f6e3
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1004f6f6
mov eax, dword [rsp + 0x38]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1004f6f6
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x40
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x3c], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rdx, rax
call sub.WS2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x1004f751
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1004f767
call sub.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, 0x40
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x1004f7c1
cdqe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1004f7e8
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x1004f7d5
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1004f7e8
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x20
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rdx, [rsp + 0x3c]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x38]
mov rdx, rax
call sub.WS2_32.dll_WSARecv
test eax, eax
je 0x1004f865
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x1004f876
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1004f889
mov eax, dword [rsp + 0x38]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1004f889
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x40
pop rsi
ret
Function at 0x1004f8a0
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x1004f8dc
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1004f8f2
call sub.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 0x1004f900
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x3c], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rdx, rax
call sub.WS2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x1004f954
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1004f96a
call sub.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, 0x40
pop rsi
ret

Function at 0x1004f9b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
mov rcx, qword [rdx]
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], 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
mov dword [rsp + 0x2c], pe_nt_image_headers64
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
call sub.WS2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x1004fa22
movsxd r8, dword [rsp + 0x2c]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call sym.std::sys_common::net::sockaddr_to_addr::h68374a3f0034eb14
jmp 0x1004fa38
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov word [rsi], 2
mov rax, rsi
add rsp, 0xb0
pop rsi
ret

Function at 0x1004fc70
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rcx, qword [rcx]
mov dword [rsp + 0x2c], edx
mov dword [rsp + 0x20], 4
xor esi, esi
lea r9, [rsp + 0x2c]
xor edx, edx
mov r8d, 4
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x1004fcac
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x1004fd30
Capabilities:
Set socket configuration

Disassembly:
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, 0x29
mov r8d, 0x1b
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1004fd67
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
Function at 0x1004fe60
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 sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x1004fe89
xor eax, eax
add rsp, 0x28
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret

Function at 0x1004ff90
Capabilities:
Set socket configuration

Disassembly:
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, 0x20
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1004ffc7
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x10050050
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x20], 4
xor esi, esi
lea r9, [rsp + 0x2c]
xor edx, edx
mov r8d, 0xb
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x1005008f
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x10050110
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rcx, qword [rcx]
mov dword [rsp + 0x2c], edx
mov dword [rsp + 0x20], 4
xor esi, esi
lea r9, [rsp + 0x2c]
xor edx, edx
mov r8d, 0xa
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x1005014c
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x100501d0
Capabilities:
Set socket configuration

Disassembly:
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, 0x29
mov r8d, 0xb
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x10050207
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x10050290
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rcx, qword [rcx]
mov eax, dword [rdx]
mov edx, dword [r8]
shl rdx, 0x20
or rdx, rax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 8
xor esi, esi
lea r9, [rsp + 0x28]
xor edx, edx
mov r8d, 0xc
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x100502d9
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x100502f0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x48
mov rcx, qword [rcx]
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x20], 0x14
lea r9, [rsp + 0x30]
mov edx, 0x29
mov r8d, 0xc
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1005032d
xor eax, eax
add rsp, 0x48
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x48
ret
Function at 0x10050340
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rcx, qword [rcx]
mov eax, dword [rdx]
mov edx, dword [r8]
shl rdx, 0x20
or rdx, rax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 8
xor esi, esi
lea r9, [rsp + 0x28]
xor edx, edx
mov r8d, 0xd
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x10050389
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x100503a0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x48
mov rcx, qword [rcx]
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x20], 0x14
lea r9, [rsp + 0x30]
mov edx, 0x29
mov r8d, 0xd
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x100503dd
xor eax, eax
add rsp, 0x48
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x48
ret

Function at 0x100503f0
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 sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x10050429
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1005043f
call sub.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 0x10050450
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 sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x1005048e
cdqe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x100504b5
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x100504a2
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x100504b5
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x20
pop rsi
ret
Function at 0x10051730
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x38]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x10051763
test ecx, ecx
jne 0x100517b2
movzx r15d, byte [rdi + 0x3a]
cmp al, 0xff
je 0x10051770
test ecx, ecx
jne 0x100517b2
mov rcx, rdi
call dbg.include_cur_dir
movzx r10d, al
test bl, bl
jne 0x100517b9
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x100517a6.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x1005192c]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x100517a6.2
xor r10d, r10d
test bl, bl
je 0x10051780
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1005190e
mov r11, qword [rdi]
lea r9, [r11 + rcx]
cmp rdx, rcx
jne 0x100517eb
movzx r8d, byte [rdi + 0x10]
xor edi, edi
jmp 0x10051868
movzx r8d, byte [rdi + 0x10]
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x10051830
nop dword [rax + rax]
cmp byte [rax], 0x5c
je 0x1005184b
inc rsi
dec rax
cmp rsi, 1
jne 0x10051810
jmp 0x10051868
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x1005184b
cmp ebx, 0x5c
je 0x1005184b
inc rsi
dec rax
cmp rsi, 1
jne 0x10051830
jmp 0x10051868
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x1005191c
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x10051892
mov al, 9
cmp rdx, 2
je 0x10051896
cmp rdx, 1
jne 0x100518a6
cmp byte [r9], 0x2e
jne 0x100518a6
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x100518a6
mov al, 0xa
jmp 0x100518a6
cmp byte [r9], 0x2e
jne 0x100518a6
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x100517a6.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x100517a6.2
mov esi, 2
jmp case.0x100517a6.2
lea r8, [0x1055f570]
call dbg.slice_start_index_len_fail
ud2
lea r8, [0x1055f588]
call dbg.slice_start_index_len_fail
ud2
Function at 0x100554f0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x30], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x58], rdx
lea rdx, [dbg.callback]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, rax
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x10055582
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 1
jne 0x10055550
mov eax, dword [rsp + 0x34]
test rax, rax
je 0x1005559c
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x100555a6
call fcn.100d8c94
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x100555a9
mov eax, dword [rsp + 0x38]
mov qword [rsi + 8], rax
xor eax, eax
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x60
pop rsi
ret

Function at 0x10055630
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x30], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x58], rdx
lea rdx, [dbg.callback]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, rax
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x100556c2
nop
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 1
jne 0x10055690
mov eax, dword [rsp + 0x34]
test rax, rax
je 0x100556dc
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x100556e6
call fcn.100d8c94
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x100556e9
mov eax, dword [rsp + 0x38]
mov qword [rsi + 8], rax
xor eax, eax
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x60
pop rsi
ret

Function at 0x100557b0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x30], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x58], rdx
lea rdx, [dbg.callback]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, rax
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x10055841
nop dword [rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 1
jne 0x10055810
mov edi, dword [rsp + 0x34]
test edi, edi
je 0x10055862
mov ecx, edi
call dbg.decode_error_kind
cmp al, 0xb
jne 0x10055853
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1005586f
call fcn.100d8c94
mov edi, eax
mov ecx, edi
call dbg.decode_error_kind
cmp al, 0xb
je 0x10055839
shl rdi, 0x20
or rdi, 2
mov eax, 1
jmp 0x10055868
mov edi, dword [rsp + 0x38]
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x10056350
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
mov edx, 1
call sub.KERNEL32.dll_TerminateProcess
test eax, eax
je 0x1005636c
xor eax, eax
add rsp, 0x28
ret
call fcn.100d8c94
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret
Function at 0x10057450
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rdi
sub rsp, 0x1f8
mov rax, qword [rcx]
mov rdi, qword [rax]
mov qword [rax], 0
test rdi, rdi
je 0x100574a8
lea rsi, [rsp + 0x60]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov cx, 0x202
mov rdx, rsi
call sub.WS2_32.dll_WSAStartup
mov dword [rsp + 0x2c], eax
test eax, eax
jne 0x100574c2
lea rax, [0x100d8f14]
mov qword [rdi], rax
add rsp, 0x1f8
pop rdi
pop rsi
ret
lea rcx, [0x1055ccb0]
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call dbg.panic
ud2
mov qword [rsp + 0x40], 0
lea rdx, [0x10561700]
lea r9, str.library_std_src_syswindows_net.rs
lea rcx, [rsp + 0x2c]
lea r8, [rsp + 0x30]
call dbg.assert_failed<i32, i32>
ud2

Function at 0x10058550
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebp, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call sym.__str_as_alloc::ffi::c_str::CString::new::SpecNewImpl_::spec_new_impl::h9c04497cd9a775cc
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x100585ab
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x10058622
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp sym.__rust_dealloc
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x1005862f
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x10058622
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call sym.__rust_dealloc
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
jne 0x10058611
jmp 0x10058622
Function at 0x10059220
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1098
call dbg.___chkstk_ms
sub rsp, rax
movaps xmmword [rsp + 0x1080], xmm6
mov rsi, rdx
mov r15, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rdx
lea rdi, [rsp + 0x80]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rsp + 0x30], 0
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
lea r13, [rsp + 0x30]
mov qword [rsp + 0x58], r13
lea rbp, [dbg.callback]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov rcx, r15
mov rdx, rdi
mov r8d, 0x1000
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x100593da
mov r14d, 0xffffffff
lea r12, [rsp + 0x40]
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 1
jne 0x100592d0
cmp dword [rsp + 0x34], 0
jne 0x100593df
mov edi, dword [rsp + 0x38]
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], rdi
test rdi, rdi
je 0x100593df
cmp edi, 0x1000
ja 0x1005941f
xor ebx, ebx
nop word [rax + rax]
cmp rbx, rdi
ja 0x1005940b
lea rdx, [rsp + rbx]
add rdx, 0x80
mov r8, rdi
sub r8, rbx
cmp r8, r14
cmovae r8, r14
mov dword [rsp + 0x30], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rsi
mov r9, r12
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x100593da
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 1
jne 0x10059370
cmp dword [rsp + 0x34], 0
jne 0x100593df
mov eax, dword [rsp + 0x38]
add rbx, rax
cmp rbx, rdi
jne 0x10059320
mov dword [rsp + 0x30], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, r15
lea rdx, [rsp + 0x80]
mov r8d, 0x1000
mov r9, r12
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
jne 0x100592d0
call fcn.100d8c94
mov rcx, r15
call fcn.100d8de4
mov rcx, rsi
call fcn.100d8de4
movaps xmm6, xmmword [rsp + 0x1080]
add rsp, 0x1098
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, rbx
mov rdx, rdi
call dbg.slice_index_order_fail
jmp 0x10059433
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, rdi
call dbg.slice_end_index_len_fail
ud2