joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cb0b0
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 [0x14017f128]
cmp rax, 3
jne 0x1400cb1a6
cmp rbx, 0x17f
ja 0x1400cb1b8
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.1400d77e0
cmp qword [rsp + 0x28], 0
je 0x1400cb134
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400cb1c9
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 0x1400cb18e
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 0x1400cb1c9
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 0x1400cb1c9
call fcn.1400e5020
cmp rbx, 0x17f
jbe 0x1400cb0ea
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
call fcn.1400e5090
mov rax, rsi
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

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

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, rdx
mov rsi, rcx
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], 0x80
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400cb3d0
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x30]
cmp ecx, 2
je 0x1400cb3e0
cmp ecx, 0x17
jne 0x1400cb407
cmp eax, 0x1b
jbe 0x1400cb420
movzx eax, word [rsp + 0x32]
rol ax, 8
movups xmm0, xmmword [rsp + 0x38]
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x48]
mov word [rsi], 1
movups xmmword [rsi + 4], xmm0
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
add rsp, 0xb0
pop rsi
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x1400cb40e
cmp eax, 0xf
jbe 0x1400cb438
movzx eax, word [rsp + 0x32]
rol ax, 8
mov ecx, dword [rsp + 0x34]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
add rsp, 0xb0
pop rsi
ret
lea rax, str.invalid_argument
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb0
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x14016f0b0]
mov edx, 0x43
call fcn.1400e5e40
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x14016f050]
mov edx, 0x42
call fcn.1400e5e40
int3
Function at 0x1400df570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400df5ea
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400df5e0
cmp r11, r10
ja 0x1400df675
cmp r10, rdx
ja 0x1400df687
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400df5e2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400df5c0
jmp 0x1400df657
ja 0x1400df5ea
mov r11, r10
cmp rax, r8
jne 0x1400df592
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400df65b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1400df630
mov r8, r10
sub ecx, r9d
jns 0x1400df64e
jmp 0x1400df65d
cmp r10, rdx
je 0x1400df669
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400df65d
xor al, 1
cmp r8, rdx
jne 0x1400df610
jmp 0x1400df65d
xor eax, eax
jmp 0x1400df65d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.1400e5ce0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400e6390
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400e6310
int3

Function at 0x1400e1398
Capabilities:
Get disk size

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rax, [r11 + 0x20]
xor ecx, ecx
mov qword [r11 - 0x18], rax
lea r9, [r11 + 0x18]
lea r8, [r11 + 0x10]
lea rdx, [r11 + 8]
call qword [sym.imp.kernel32.dll_GetDiskFreeSpaceA]
xor edx, edx
test eax, eax
je 0x1400e145c
mov eax, dword [rsp + 0x40]
xorps xmm0, xmm0
imul eax, dword [rsp + 0x48]
xorps xmm2, xmm2
movsd xmm3, qword [0x14016b798]
xor ecx, ecx
movsd xmm1, qword [0x14016b7a0]
movabs rdx, 0x8000000000000000
cvtsi2sd xmm2, rax
mov eax, dword [rsp + 0x50]
cvtsi2sd xmm0, rax
mulsd xmm0, xmm2
mulsd xmm0, xmm3
comisd xmm0, xmm1
jb 0x1400e141d
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x1400e141d
mov rcx, rdx
cvttsd2si rax, xmm0
xorps xmm0, xmm0
add rax, rcx
mov qword [rbx + 8], rax
mov eax, dword [rsp + 0x58]
cvtsi2sd xmm0, rax
xor eax, eax
mulsd xmm0, xmm2
mulsd xmm0, xmm3
comisd xmm0, xmm1
jb 0x1400e1452
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x1400e1452
mov rax, rdx
cvttsd2si rdx, xmm0
add rdx, rax
jmp 0x1400e1460
mov qword [rbx + 8], rdx
mov qword [rbx], rdx
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x1400e146c
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14017ef58]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_GlobalMemoryStatusEx]
xor ecx, ecx
test eax, eax
je 0x1400e14f1
mov rax, qword [rsp + 0x28]
shr rax, 0xa
mov qword [rbx], rax
mov rax, qword [rsp + 0x30]
shr rax, 0xa
mov qword [rbx + 8], rax
mov rax, qword [rsp + 0x40]
sub rax, qword [rsp + 0x30]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x20], rcx
mov qword [rbx + 0x18], rcx
mov rcx, qword [rsp + 0x38]
sub rcx, qword [rsp + 0x28]
shr rax, 0xa
shr rcx, 0xa
mov qword [rbx + 0x28], rcx
mov qword [rbx + 0x30], rax
cmp rax, rcx
jbe 0x1400e14ff
mov qword [rbx + 0x30], rcx
jmp 0x1400e14ff
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x38]
call sub.VCRUNTIME140.dll_memset
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400e1880
add rsp, 0x70
pop rbx
ret

Function at 0x1400e1d8c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1400e1dd6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400e1dd6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400e1dd6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400e1dd6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400e1dd6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400e1dd8
xor al, al
add rsp, 0x28
ret

Function at 0x1400e5090
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 fcn.1400d32c0
mov rdx, qword [rsp + 0x30]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x1400e5129
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
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 qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1400e515b
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 byte [rdi], 0
test rbx, rbx
jne 0x1400e5179
jmp 0x1400e518a
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdx, rdx
je 0x1400e518a
mov rcx, qword [rsp + 0x38]
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.1400050a0
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
je 0x1400e518a
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.1400050a0
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x14001ccec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001cd36
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001cd36
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001cd36
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001cd36
cmp dword [rcx + 0x84], 0xe
jbe 0x14001cd36
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001cd38
xor al, al
add rsp, 0x28
ret
Function at 0x140041dc0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140041dcd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140041ddd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140041dc5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140041df5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140041de2
sub eax, 3
jb 0x140041e0f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140041e46
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140041e36
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140041e34
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140041e23
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140041d82
jmp 0x140041dcd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x35400
mov dl, 3
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140041e92
cmp rsi, rcx
jae 0x140041e9a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140041e79
cmp al, 0x8f
ja 0x140041e79
cmp byte [rsi - 2], 0xf
je 0x140041e7f
sub al, 0xe8
cmp al, 1
ja 0x140041e63
cmp rsi, rcx
jae 0x140041e9a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140041e69
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140041e9a
lodsb al, byte [rsi]
jmp 0x140041e79
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x3f000]
mov eax, dword [rdi]
or eax, eax
je 0x140041ef7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x429b8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140041ea7
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140041ef1
mov qword [rbx], rax
add rbx, 8
jmp 0x140041ec7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140041f31
cmp al, 0xef
ja 0x140041f23
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140041f03
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140041f12
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140041f85
sub rsp, 0xffffffffffffff80
jmp 0x14000113b
Function at 0x18000494d
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov r13d, 0x7fffffff
mov rbp, qword [sym.imp.ws2_32.dll_send]
mov rdi, qword [sym.imp.ws2_32.dll_WSAGetLastError]
lea r15, str._rustc_a07f3eb43acc5df851e15176c7081a900a30a4d7library_std_srciomod.rs
Function at 0x18000958c
Capabilities:
Receive http response

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov r13, qword [rcx + 0x38]
cmp qword [r13 + 0x10], 0
jne 0x1800095f1
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
call qword [rax]
mov r15, rax
mov r12, rdx
mov rax, qword [r13 + 0x10]
test rax, rax
je 0x1800095d1
mov rcx, qword [r13 + 0x18]
call qword [rax + 0x18]
mov qword [r13 + 0x10], r15
mov qword [r13 + 0x18], r12
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax + 0x10]
xor edx, edx
call qword [sym.imp.winhttp.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1800096d9
mov rax, qword [r13 + 0x20]
cmp rax, 0xffffffffffffffff
je 0x180009648
mov rdx, qword [rbx + 0x48]
mov rcx, rax
sub rcx, rdx
jbe 0x180009648
cmp rax, rsi
cmovb rsi, rax
cmp rsi, rcx
cmovae rsi, rcx
mov rdi, rsi
add rdi, rdx
jb 0x180009799
cmp rdi, 0x2000
ja 0x1800097ab
add rdx, qword [rbx + 0x40]
mov rcx, r14
mov r8, rsi
call fcn.180068d66
mov qword [rbx + 0x48], rdi
xor ebx, ebx
jmp 0x180009783
mov rdx, qword [rbx]
mov r8, qword [rbx + 8]
lea rsi, [rsp + 0x20]
mov rcx, rsi
call fcn.18001d2c5
mov r14, qword [rsi]
movabs rax, 0x8000000000000005
cmp r14, rax
jne 0x180009688
xor ebx, ebx
cmp byte [rsp + 0x28], 1
adc rbx, 1
movabs rsi, 0x2700000003
jmp 0x180009783
mov rcx, r14
btc rcx, 0x3f
cmp rcx, 5
mov eax, 1
cmovb rax, rcx
cmp rax, 2
je 0x180009704
cmp rax, 3
je 0x1800096eb
cmp rax, 4
jne 0x1800097bf
mov rax, qword [rsp + 0x28]
lea rcx, [rsp + 0x38]
mov qword [rcx], rax
call fcn.18001ba3c
movabs rsi, 0x2700000003
mov ebx, 1
jmp 0x180009760
mov ebx, 1
call fcn.18001e707
mov rsi, rax
jmp 0x180009783
cmp qword [r13 + 0x20], 0
je 0x18000975c
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax + 0x10]
xor edx, edx
call qword [sym.imp.winhttp.dll_WinHttpQueryDataAvailable]
jmp 0x180009729
and qword [rbx + 0x48], 0
or qword [r13 + 0x20], 0xffffffffffffffff
mov rax, qword [rbx + 0x30]
mov rdx, qword [rbx + 0x40]
mov rcx, qword [rax + 0x10]
mov r8d, 0x2000
xor r9d, r9d
call qword [sym.imp.winhttp.dll_WinHttpReadData]
test eax, eax
je 0x180009734
mov ebx, 2
jmp 0x180009760
call fcn.18001e707
mov rsi, rax
movabs rax, 0x8000000000000004
cmp r14, rax
je 0x180009755
lea rcx, [rsp + 0x20]
call fcn.18001cd86
mov ebx, 1
jmp 0x180009783
xor ebx, ebx
xor esi, esi
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
call qword [rax + 0x10]
movabs rax, 0x8000000000000004
cmp r14, rax
je 0x180009783
lea rcx, [rsp + 0x20]
call fcn.18001cd86
mov rax, rbx
mov rdx, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.registery_srcindex.crates.io_6f17d22bba15001f_alhc_0.3.0_alpha.3_srcwindows_response.rs
mov rcx, rdx
mov rdx, rdi
call fcn.180069a50
lea r8, str.registery_srcindex.crates.io_6f17d22bba15001f_alhc_0.3.0_alpha.3_srcwindows_response.rs
mov edx, 0x2000
mov rcx, rdi
call fcn.180069810
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.registery_srcindex.crates.io_6f17d22bba15001f_alhc_0.3.0_alpha.3_srcwindows_response.rs
mov edx, 0x28
call fcn.180069820
int3
Function at 0x18000ab57
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x488
mov rdi, rdx
mov rsi, rcx
lea rbx, [rsp + 0x88]
mov r8d, 0x400
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x400
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
mov qword [rsp + 0x20], rsi
je 0x18000abac
movsxd rdx, eax
jmp 0x18000abbf
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x18000acf0
xor edx, edx
lea r8, [0x18006daa8]
lea rcx, [rsp + 0x88]
call fcn.180007b49
mov r8, rdx
lea rbx, [rsp + 0x58]
mov rcx, rbx
mov rdx, rax
call fcn.180007d70
mov rdi, qword [rbx + 8]
mov rbx, qword [rbx + 0x10]
lea r14, [rsp + 0x28]
mov rcx, r14
call fcn.18000acf6
mov rax, qword [r14 + 0x10]
test rax, rax
je 0x18000acc6
lea r15, [rsp + 0x70]
mov qword [r15], rdi
mov qword [r15 + 8], rbx
mov qword [r15 + 0x10], rax
xor r14d, r14d
lea r12, [rsp + 0x40]
mov rcx, r15
call fcn.18000a500
test rax, rax
je 0x18000ac6c
mov rbp, rax
mov r13, rdx
mov rcx, r12
call fcn.18000acf6
mov rsi, qword [rsp + 0x48]
mov r9, qword [rsp + 0x50]
mov rcx, rbp
mov rdx, r13
mov r8, rsi
call fcn.180035db3
mov ebp, eax
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
call case.0x180046113.1274
test bpl, bpl
jne 0x18000ac7d
inc r14
jmp 0x18000ac20
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
call case.0x180046113.1274
jmp 0x18000ac94
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
call case.0x180046113.1274
cmp rbx, r14
jb 0x18000acde
mov rbx, r14
mov rcx, qword [rsp + 0x20]
mov rdx, rdi
mov r8, rbx
call fcn.180007d70
mov rcx, qword [rsp + 0x58]
mov rdx, rdi
call case.0x180046113.1274
nop
add rsp, 0x488
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.window_size_must_be_non_zero
lea r8, [0x18006dac0]
mov edx, 0x1c
call fcn.180069bd0
lea r8, [0x18006dad8]
mov rcx, r14
mov rdx, rbx
call fcn.180069810
call fcn.180059b50
int3
Function at 0x18001e429
Capabilities:
Receive http response
Send data
Send http request

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov r15, r8
mov rdi, rdx
mov rsi, rcx
mov r13, qword [rdx + 0x38]
cmp qword [r13 + 0x10], 0
jne 0x18001e4b1
mov rax, qword [r15]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
call qword [rdx]
mov rbx, rax
mov r14, rdx
mov rax, qword [r13 + 0x10]
test rax, rax
je 0x18001e47a
mov rcx, qword [r13 + 0x18]
call qword [rax + 0x18]
mov qword [r13 + 0x10], rbx
mov qword [r13 + 0x18], r14
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax + 0x10]
mov eax, dword [rdi + 0x40]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], eax
and dword [rsp + 0x20], 0
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.winhttp.dll_WinHttpSendRequest]
test eax, eax
je 0x18001e6c0
mov rbx, qword [rdi]
mov r14, qword [rdi + 8]
lea r12, [rsp + 0x48]
mov rcx, r12
mov rdx, rbx
mov r8, r14
call fcn.18001d2c5
mov r12, qword [r12]
movabs rax, 0x8000000000000005
cmp r12, rax
jne 0x18001e4ff
cmp byte [rsp + 0x50], 0
je 0x18001e6b7
mov qword [rsi], 3
movabs rax, 0x2700000003
jmp case.0x180004a26.153
mov rcx, r12
btc rcx, 0x3f
cmp rcx, 5
mov eax, 1
cmovb rax, rcx
ror dword [rax - 0x7b], 0xc0

Function at 0x18001f042
Capabilities:
Initialize winhttp library

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
mov dword [rsp + 0x20], 0x10000000
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.winhttp.dll_WinHttpOpen]
mov rdi, rax
lea r8, [0x18006f678]
mov rcx, rax
mov edx, 0xa4
mov r9d, 4
call qword [sym.imp.winhttp.dll_WinHttpSetOption]
mov eax, dword [0x18008b304]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 0x78], 0
jne 0x18001f0a7
call fcn.18005f64e
mov eax, dword [0x18008b304]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov r14, qword [rax + 0x80]
mov r15, qword [rax + 0x88]
lea rcx, [r14 + 1]
mov qword [rax + 0x80], rcx
lea rbx, [rsp + 0x50]
mov edx, 0x10
mov rcx, rbx
call fcn.18001e12d
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rsi + 8], rdi
and word [rsi + 0x10], 0
movups xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rsp + 0x2a]
movups xmm1, xmmword [rsp + 0x3a]
movups xmmword [rsi + 0x12], xmm0
movups xmmword [rsi + 0x22], xmm1
mov rax, qword [rsp + 0x48]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], r14
mov qword [rsi + 0x40], r15
and qword [rsi], 0
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1800284d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x180028550
cmp r11, r10
ja 0x1800285c7
cmp r10, rdx
ja 0x1800285d9
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x180028552
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x180028530
jmp 0x1800285b4
ja 0x18002855a
mov r11, r10
cmp rax, r8
jne 0x1800284fe
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x180028590
mov rdi, r8
sub ecx, edx
jns 0x1800285ab
jmp 0x1800285b6
cmp r8, rsi
je 0x1800285e8
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x1800285b6
xor al, 1
cmp rdi, rsi
jne 0x180028570
jmp 0x1800285b6
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.180069a50
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.180069810
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.180069bb0
int3
Function at 0x180038fd7
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x50]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
call fcn.18003be8f
test rax, rax
je 0x18003900f
mov edx, 4
mov rcx, rax
call fcn.18001b8e0
jmp 0x180039071
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
lea rdx, [rsp + 0x70]
movaps xmmword [rdx + 0x10], xmm1
movaps xmmword [rdx], xmm0
lea rbx, [rsp + 0x90]
mov rcx, rbx
call fcn.180038f8a
mov rax, qword [rbx]
movups xmm0, xmmword [rbx + 8]
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rbx + 0x18]
movaps xmmword [rsp + 0x30], xmm0
mov rcx, qword [rbx + 0x28]
mov qword [rsp + 0x40], rcx
mov qword [rdi], rax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rdi + 8], xmm0
movups xmmword [rdi + 0x18], xmm1
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x28], rax
and qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov rdx, rsi
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
jmp fcn.18003966f