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

Disassembly:
jmp 0x14033df20
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1403726e0
mov rcx, rax
call fcn.1403726e0
mov rcx, rax
call fcn.14037c7b0
movzx ecx, bl
mov dword [rsp + 0x2c], ecx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rax
mov edx, 0xffff
mov r8d, 4
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14033df70
xor eax, eax
add rsp, 0x30
pop rbx
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret

Function at 0x140317770
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x14033df90
push rsi
sub rsp, 0x30
mov rsi, rdx
call fcn.1403726e0
mov rcx, rax
call fcn.1403726e0
mov rcx, rax
call fcn.14037c7b0
mov dword [rsp + 0x2c], esi
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rax
mov edx, 0xffff
mov r8d, 0x1001
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14033dfde
xor eax, eax
add rsp, 0x30
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rsi
ret

Function at 0x140317780
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x14033deb0
push rsi
sub rsp, 0x30
mov rsi, rdx
call fcn.1403726e0
mov rcx, rax
call fcn.1403726e0
mov rcx, rax
call fcn.14037c7b0
mov dword [rsp + 0x2c], esi
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rax
mov edx, 0xffff
mov r8d, 0x1002
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14033defe
xor eax, eax
add rsp, 0x30
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rsi
ret

Function at 0x140322df0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
nop word [rax + rax]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x140322e00
test al, 1
je 0x140322e1f
test al, 2
jne 0x140322e39
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140480c10]
mov edx, 0x23
call fcn.1403b6260
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140480c50]
mov edx, 0x25
call fcn.1403b6260
ud2

Function at 0x140326570
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x140326584
add rsp, 0x28
jmp 0x140341ff0
lea rcx, [0x1404811fd]
lea r8, [0x140481290]
mov edx, 0x2b
call fcn.1403b6260
ud2
add rcx, 8
jmp 0x140372530
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 qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140372568
xor eax, eax
add rsp, 0x38
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
Function at 0x14033a1a0
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rbp + 8], rcx
mov rax, qword [rcx]
nop
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x14033a1c0
test al, 1
je 0x14033a222
test al, 2
jne 0x14033a23c
xor rax, 3
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
lea rdx, [rbp + 8]
call fcn.140313240
mov rcx, qword [rbp + 8]
mov qword [rbp], 1
mov rax, 0xffffffffffffffc0
lock xadd qword [rcx], rax
shr rax, 6
cmp rax, qword [rbp]
jb 0x14033a256
jne 0x14033a218
mov rcx, qword [rbp + 8]
call fcn.140339c80
nop
add rsp, 0xb0
pop rbp
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140480c10]
mov edx, 0x23
call fcn.1403b6260
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140480c50]
mov edx, 0x25
call fcn.1403b6260
ud2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [fcn.14039d910]
mov qword [rbp - 0x28], rax
mov rcx, rbp
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rax
lea rax, str.current:___sub:_h_fH_
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 2
mov qword [rbp - 0x50], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 2
lea rdx, [0x140480c98]
lea rcx, [rbp - 0x60]
call fcn.1403b63d0
ud2

Function at 0x14033a380
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rax, qword [rcx]
nop dword [rax + rax]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x14033a3a0
test al, 1
je 0x14033a42b
test al, 2
jne 0x14033a445
test al, 8
mov qword [rbp + 8], rcx
jne 0x14033a3dc
add rcx, 0x20
mov qword [rbp + 0x18], rcx
call fcn.14032cea0
mov rax, qword [rbp + 0x18]
mov qword [rax], 4
jmp 0x14033a3f8
test al, 0x10
je 0x14033a3f8
mov rcx, qword [rbp + 8]
mov rax, qword [rcx + 0x60]
test rax, rax
je 0x14033a4be
mov rcx, qword [rcx + 0x58]
call qword [rax + 0x10]
mov qword [rbp], 1
mov rax, 0xffffffffffffffc0
mov rcx, qword [rbp + 8]
lock xadd qword [rcx], rax
shr rax, 6
cmp rax, qword [rbp]
jb 0x14033a45f
jne 0x14033a421
call fcn.140339b40
nop
add rsp, 0xb0
pop rbp
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140480c10]
mov edx, 0x23
call fcn.1403b6260
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140480c50]
mov edx, 0x25
call fcn.1403b6260
ud2
mov qword [rbp - 8], rax
lea rax, [rbp - 8]
mov qword [rbp - 0x28], rax
lea rax, [fcn.14039d910]
mov qword [rbp - 0x20], rax
mov rcx, rbp
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rax
lea rax, str.current:___sub:_h_fH_
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 2
mov qword [rbp - 0x48], 0
lea rax, [rbp - 0x28]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 2
lea rdx, [0x140480c98]
lea rcx, [rbp - 0x58]
call fcn.1403b63d0
ud2
lea rcx, str.waker_missing
lea r8, str.C:Usershrdp.cargo_registry_srcgithub.com_1ecc6299db9ec823_tokio_1.21.2_src_runtime_taskcore.rs
mov edx, 0xd
call fcn.1403b48b0
ud2
Function at 0x14033db90
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 0x14033de00
Capabilities:
Connect socket

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
call fcn.1403726e0
mov rcx, rax
call fcn.1403726e0
mov rcx, rax
call fcn.14037c7b0
mov r8d, dword [rsi + 0x80]
mov rcx, rax
mov rdx, rsi
call sub.ws2_32.dll_connect
test eax, eax
je 0x14033de46
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x20
pop rsi
ret
xor eax, eax
add rsp, 0x20
pop rsi
ret

Function at 0x14033de50
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1403726e0
mov rcx, rax
call fcn.1403726e0
mov rcx, rax
call fcn.14037c7b0
movzx ecx, bl
mov dword [rsp + 0x2c], ecx
lea r8, [rsp + 0x2c]
mov rcx, rax
mov edx, 0x8004667e
call sub.ws2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x14033de92
xor eax, eax
add rsp, 0x30
pop rbx
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret

Function at 0x14033deb0
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x14033deb0
push rsi
sub rsp, 0x30
mov rsi, rdx
call fcn.1403726e0
mov rcx, rax
call fcn.1403726e0
mov rcx, rax
call fcn.14037c7b0
mov dword [rsp + 0x2c], esi
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rax
mov edx, 0xffff
mov r8d, 0x1002
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14033defe
xor eax, eax
add rsp, 0x30
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rsi
ret

Function at 0x14033df20
Capabilities:
Set socket configuration

Disassembly:
jmp 0x14033df20
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1403726e0
mov rcx, rax
call fcn.1403726e0
mov rcx, rax
call fcn.14037c7b0
movzx ecx, bl
mov dword [rsp + 0x2c], ecx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rax
mov edx, 0xffff
mov r8d, 4
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14033df70
xor eax, eax
add rsp, 0x30
pop rbx
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret

Function at 0x14033df90
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x14033df90
push rsi
sub rsp, 0x30
mov rsi, rdx
call fcn.1403726e0
mov rcx, rax
call fcn.1403726e0
mov rcx, rax
call fcn.14037c7b0
mov dword [rsp + 0x2c], esi
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rax
mov edx, 0xffff
mov r8d, 0x1001
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14033dfde
xor eax, eax
add rsp, 0x30
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rsi
ret
Function at 0x14033e000
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rbx, rdx
mov rdi, rcx
call fcn.1403726e0
mov rcx, rax
call fcn.1403726e0
mov rcx, rax
call fcn.14037c7b0
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov rcx, rax
mov edx, 0xffff
mov r8d, 8
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14033e144
mov rcx, rdi
call fcn.1403726e0
mov rcx, rax
call fcn.1403726e0
mov rcx, rax
call fcn.14037c7b0
mov r9, rax
xor edi, edi
cmp qword [rbx], 0
mov ecx, 0
je 0x14033e0ae
mov ecx, dword [rbx + 0x10]
mov eax, 0x3e8
mul qword [rbx + 8]
imul rsi, rcx, 0x431bde83
shr rsi, 0x32
add rsi, rax
adc rdx, 0
mov eax, 0xffffffff
cmp rsi, rax
cmovae rsi, rax
xor ecx, ecx
neg rdx
sbb ecx, ecx
or ecx, esi
cmp qword [rbx + 0x18], 0
je 0x14033e0e8
mov edi, dword [rbx + 0x28]
mov eax, 0x3e8
mul qword [rbx + 0x20]
imul rbx, rdi, 0x431bde83
shr rbx, 0x32
add rbx, rax
adc rdx, 0
mov eax, 0xffffffff
cmp rbx, rax
cmovae rbx, rax
xor edi, edi
neg rdx
sbb edi, edi
or edi, ebx
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x54], ecx
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x5c], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x50]
mov rcx, r9
mov edx, 0x98000004
mov r9d, 0xc
call sub.ws2_32.dll_WSAIoctl
cmp eax, 0xffffffff
je 0x14033e144
xor eax, eax
jmp 0x14033e151
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
Function at 0x1403656a0
Capabilities:
Generate random numbers via winapi

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
test rdx, rdx
je 0x140365707
mov rdx, rcx
mov r15d, 0xffffffff
xor r14d, r14d
mov rsi, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
nop word cs:[rax + rax]
test rdi, rdi
je 0x14036570a
cmp rdi, r15
mov r8d, 0xffffffff
cmovb r8, rdi
sub rdi, r8
lea rbx, [rdx + r8]
xor ecx, ecx
mov r9d, 2
call rsi
mov rdx, rbx
cmp eax, 0xc0000000
jb 0x1403656d0
add eax, 0x80000000
mov r14d, eax
jmp 0x14036570a
xor r14d, r14d
mov eax, r14d
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14036d5f0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rsi
sub rsp, 0x30
test rcx, rcx
je 0x14036d616
mov rsi, qword [rcx]
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
mov qword [rcx], 0
cmp rsi, 1
je 0x14036d6bc
mov rsi, qword [0x14056a328]
mov qword [rsp + 0x20], rsi
cmp rsi, 0xffffffffffffffff
je 0x14036d662
test rsi, rsi
jne 0x14036d686
lea rdx, [0x1404be1fe]
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x14036d669
mov rcx, qword [rsp + 0x20]
xor eax, eax
lock cmpxchg qword [0x14056a328], rcx
jne 0x14036d676
mov rsi, qword [rsp + 0x20]
jmp 0x14036d686
mov eax, 0xc00000bb
jmp 0x14036d6b5
mov qword [0x14056a328], 0xffffffffffffffff
jmp 0x14036d6b5
mov rsi, rax
mov rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov r8d, 0x10
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x14036d6b5
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14036d6bc
mov ecx, eax
call fcn.1403840b0
mov ecx, dword [0x14056a3c0]
mov rsi, qword gs:[0x58]
mov rcx, qword [rsi + rcx*8]
mov qword [rcx + 0xb0], 1
mov qword [rcx + 0xb8], rax
mov qword [rcx + 0xc0], rdx
add rsp, 0x30
pop rsi
ret
Function at 0x14036dce0
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 r12d, r12d
xor r13d, r13d
xor edi, edi
cmp r8, 0x201
jae 0x14036dd70
jmp 0x14036dd5f
jae 0x14036de2e
cmp r8, 0x201
jae 0x14036dd70
mov r14d, 0x200
lea rbx, [rbp - 0x58]
mov rsi, r8
jmp 0x14036ddc7
sub r8, rdi
sub r13, rdi
cmp r13, r8
jae 0x14036dd9f
lea rcx, [rbp + 0x3c8]
mov rdx, rdi
call fcn.1403b5100
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov r12, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp r12, rax
mov edi, 0xffffffff
cmovb rdi, r12
mov qword [rbp + 0x3d8], rdi
mov r13, r12
mov r14, rdi
mov rbx, qword [rbp + 0x3e8]
mov rsi, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, esi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r15d, eax
test eax, eax
jne 0x14036ddef
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14036de96
mov r8d, r15d
cmp rsi, r8
jne 0x14036dd50
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14036deb9
add rsi, rsi
mov eax, 0xffffffff
cmp rsi, rax
cmovae rsi, rax
mov r8, rsi
cmp r8, 0x201
jb 0x14036dd5f
jmp 0x14036dd70
cmp r14, r8
jb 0x14036ded3
lea rcx, [rbp + 0x3a8]
mov rdx, rbx
call fcn.140372790
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 r12, r12
je 0x14036de7f
add r12, r12
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, r12
call fcn.1400938b0
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 r12, r12
jne 0x14036de67
jmp 0x14036de7f
lea rcx, [0x1404bba78]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1403b6260
jmp 0x14036dee8
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.1403b65a0
ud2
Function at 0x140372530
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x140326584
add rsp, 0x28
jmp 0x140341ff0
lea rcx, [0x1404811fd]
lea r8, [0x140481290]
mov edx, 0x2b
call fcn.1403b6260
ud2
add rcx, 8
jmp 0x140372530
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 qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140372568
xor eax, eax
add rsp, 0x38
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x140372580
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 qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1403725c2
cdqe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1403725ea
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1403725d7
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1403725ea
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 0x140372600
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 qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x14037263d
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140372654
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 0x140372660
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 qword [sym.imp.ws2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x1403726b5
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1403726cc
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, 0x40
pop rsi
ret
Function at 0x1403730b0
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 + 0x39]
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 0x1403730e3
test ecx, ecx
jne 0x140373132
movzx r15d, byte [rdi + 0x38]
cmp al, 0xff
je 0x1403730f0
test ecx, ecx
jne 0x140373132
mov rcx, rdi
call fcn.140372f90
movzx r10d, al
test bl, bl
jne 0x140373139
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x140373126.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x1403732ac]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x140373126.2
xor r10d, r10d
test bl, bl
je 0x140373100
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14037328e
mov r11, qword [rdi]
lea r9, [r11 + rcx]
movzx r8d, byte [rdi + 0x10]
cmp rdx, rcx
jne 0x14037316b
xor edi, edi
jmp 0x1403731e8
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x1403731b0
nop word cs:[rax + rax]
cmp byte [rax], 0x5c
je 0x1403731cb
inc rsi
dec rax
cmp rsi, 1
jne 0x140373190
jmp 0x1403731e8
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x1403731cb
cmp ebx, 0x5c
je 0x1403731cb
inc rsi
dec rax
cmp rsi, 1
jne 0x1403731b0
jmp 0x1403731e8
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x14037329c
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x140373212
mov al, 9
cmp rdx, 2
je 0x140373216
cmp rdx, 1
jne 0x140373226
cmp byte [r9], 0x2e
jne 0x140373226
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140373226
mov al, 0xa
jmp 0x140373226
cmp byte [r9], 0x2e
jne 0x140373226
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.0x140373126.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.0x140373126.2
mov esi, 2
jmp case.0x140373126.2
lea r8, str.library_std_srcpath.rs
call fcn.1403b6590
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1403b6590
ud2
Function at 0x140377120
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10a8
call fcn.1403aaad0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1010], xmm6
mov qword [rbp + 0x1008], 0xfffffffffffffffe
mov rsi, rdx
mov rbx, rcx
mov qword [rbp + 0xfc0], rcx
mov qword [rbp + 0xfc8], rdx
lea rdi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xff8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfd0], xmm6
mov qword [rbp + 0xfe0], 0
lea rax, [rbp + 0xff8]
mov qword [rbp + 0xfe8], rax
lea r14, [0x14037ef60]
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0xfd0]
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x140377345
mov r15, qword [sym.imp.KERNEL32.dll_SleepEx]
mov r13d, 0xffffffff
lea r12, [rbp + 0xfd0]
mov qword [rbp + 0xff0], rbx
mov ecx, 0xffffffff
mov edx, 1
call r15
cmp dword [rbp + 0xff8], 1
jne 0x1403771f0
cmp dword [rbp + 0xffc], 0
jne 0x14037735a
mov eax, dword [rbp + 0x1000]
mov edi, eax
mov qword [rbp + 0xfb0], 0
mov qword [rbp + 0xfb8], rdi
test eax, eax
je 0x14037735a
cmp eax, 0x1000
ja 0x14037739a
xor ebx, ebx
nop word cs:[rax + rax]
cmp rbx, rdi
ja 0x140377386
lea rdx, [rbx + rbp]
add rdx, 0xffffffffffffffb0
mov r8, rdi
sub r8, rbx
cmp r8, r13
cmovae r8, r13
mov dword [rbp + 0xff8], 0
movaps xmmword [rbp + 0xfd0], xmm6
mov qword [rbp + 0xfe0], 0
lea rax, [rbp + 0xff8]
mov qword [rbp + 0xfe8], rax
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov r9, r12
call qword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x14037734d
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r15
cmp dword [rbp + 0xff8], 1
jne 0x1403772c0
cmp dword [rbp + 0xffc], 0
jne 0x140377353
mov eax, dword [rbp + 0x1000]
add rbx, rax
cmp rbx, rdi
jne 0x140377250
mov dword [rbp + 0xff8], 0
movaps xmmword [rbp + 0xfd0], xmm6
mov qword [rbp + 0xfe0], 0
lea rax, [rbp + 0xff8]
mov qword [rbp + 0xfe8], rax
mov qword [rsp + 0x20], r14
mov rbx, qword [rbp + 0xff0]
mov rcx, rbx
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, r12
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x1403771f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14037735a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rbp + 0xff0]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call rdi
mov rcx, rsi
call rdi
movaps xmm6, xmmword [rbp + 0x1010]
add rsp, 0x10a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, rbx
mov rdx, rdi
call fcn.1403b65b0
jmp 0x1403773ae
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, rdi
call fcn.1403b65a0
ud2
Function at 0x14037c6b0
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 0x14037c705
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14037c7a1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x14037c719
cmp eax, 0x2739
jne 0x14037c76a
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 0x14037c764
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x14037c77f
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x14037c7a1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14037c7a1
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