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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rdi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x18005b485
cvtsi2ss xmm0, rdx
jmp 0x18005b49a
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call fcn.1801ae120
movss xmm1, dword [0x18020e030]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x18005b4c8
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x18005b4c8
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x18005b4fa
cmp rbx, 0x200
jae 0x18005b4f7
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x18005b4fa
mov rbx, rcx
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.180055370

Function at 0x18005b510
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1802e1c40]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov rcx, qword [0x1802eac60]
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x18005b558
nop dword [rax]
cmp dword [rax + 0x20], 4
jge 0x18005b54c
mov rax, qword [rax + 0x10]
jmp 0x18005b552
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x18005b540
cmp byte [rcx + 0x19], 0
jne 0x18005b634
cmp dword [rcx + 0x20], 4
jg 0x18005b634
lea r8, [rcx + 0x28]
mov r10, qword [r8 + 0x10]
mov rdx, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x18005b581
mov rdx, qword [r8]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r10, r10
je 0x18005b5b3
movabs r11, 0x100000001b3
nop dword [rax]
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r11
inc rcx
cmp rcx, r10
jb 0x18005b5a0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.18005a5d0
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x18005b5ee
cmp rcx, qword [rbx + 8]
je 0x18005b5ee
cmp qword [rbx + 0x10], 1
jne 0x18005b5f2
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180134d40
add rsp, 0x80
pop rbx
ret
xor al, al
jmp 0x18005b5d8
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.18005b660
nop
mov r8, rax
lea rdx, str.AcceptEncoding_does_not_accept_any_other_values_if_disabled_is_present._You_set_the_following_encodings:
lea rcx, [rsp + 0x58]
call fcn.18005a480
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.18005b360
lea rdx, [0x1802de700]
lea rcx, [rsp + 0x20]
call fcn.180171a30
nop
lea rcx, str.invalid_map_K__T__key
call fcn.180140834
int3
Function at 0x18006b4b0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x18006b57c
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.18006f690
mov edx, eax
cmp eax, 4
jne 0x18006b530
cmp byte [0x1802eae94], r14b
jne 0x18006b53a
mov r9d, 2
mov dword [rsp + 0x50], r14d
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb edx, edx
and edx, 2
test edx, edx
jne 0x18006b57c
mov eax, dword [rsp + 0x50]
jmp 0x18006b559
imul eax, dword [0x1802eae90], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1802eae90], eax
ror eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x18006b573
sub rsi, rdi
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x18006b561
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x18006b4e0
mov rbx, qword [rsp + 0x40]
mov eax, edx
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x18006b5a0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
sub rdi, 1
je 0x18006b668
xor ebp, ebp
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.18006f690
cmp eax, 4
jne 0x18006b611
cmp byte [0x1802eae94], bpl
jne 0x18006b61b
mov r9d, 2
mov dword [rsp + 0x50], ebp
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x18006b66d
mov ecx, dword [rsp + 0x50]
jmp 0x18006b638
imul ecx, dword [0x1802eae90], 0x41c64e6d
add ecx, 0x3039
mov dword [0x1802eae90], ecx
ror ecx, 0x10
mov dword [rsp + 0x50], ecx
cmp ecx, 0xfffffffc
jae 0x18006b5d0
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + r14]
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x18006b5d0
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x180071c90
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x180071d72
call fcn.180088f20
test al, al
jne 0x180071d72
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x180071cc2
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.18008a2a0
test rax, rax
je 0x180071d07
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.18008a2a0
mov rsi, rax
test rax, rax
je 0x180071d07
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x180071d3b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.18006aeb0
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x180071d20
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x180083e00
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x180212168]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x180083e2a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x180212188]
mov rcx, rbx
mov r14, rax
call fcn.1801c5d98
test rax, rax
je 0x180083e8b
mov rcx, rbx
test r14, r14
je 0x180083e78
xor edx, edx
mov r8d, 8
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test r14, r14
je 0x180083ec2
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180083ec2
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x180083f8a
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax + rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x180083ef0
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.1801b063c]
mov rsi, rax
test rax, rax
je 0x180083f7c
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x180083f7c
mov rax, rdi
cmp byte [rsi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x180083f20
mov word [rax + rsi], 0x5c
inc rdi
cmp byte [rsi + rdi], bpl
jne 0x180083f31
mov rax, rsi
sub rax, rbx
add rdi, rax
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rdi + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x180083f50
mov rcx, rsi
test r14, r14
je 0x180083f73
xor edx, edx
mov r8d, 8
call r14
jmp 0x180083f79
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rsi
call qword [fcn.1801ae104]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x180083ff0
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1802e1c40]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x180084056
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180084039
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x180084033
shr ax, 8
cmp al, 2
je 0x180084056
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.180134d40
add rsp, 0x1e8
ret
call fcn.1800a21a0
test eax, eax
jne 0x180084269
mov qword [rsp + 0x200], rsi
lea rcx, [0x180212168]
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x180084096
mov qword [0x1802eaf88], rsi
jmp 0x180084224
mov qword [rsp + 0x1f0], rbx
lea rdx, str.LoadLibraryExA
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, str.iphlpapi.dll
mov rbp, rax
mov rcx, rbx
lea rdx, [0x180212188]
call fcn.1801c5d98
test rax, rax
je 0x1800840fc
mov rcx, rbx
test rbp, rbp
je 0x1800840ee
xor edx, edx
mov r8d, 8
call rbp
mov rsi, rax
jmp 0x1800841ec
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
jmp 0x1800841ec
test rbp, rbp
je 0x18008412b
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18008412b
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x1800841ec
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r14d, eax
test eax, eax
je 0x1800841e4
lea ecx, [rax + 1]
add rcx, 0xc
call qword [fcn.1801b063c]
mov rdi, rax
test rax, rax
je 0x1800841db
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1800841db
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop word [rax + rax]
cmp byte [rdi + rax + 1], sil
lea rax, [rax + 1]
jne 0x180084180
mov word [rax + rdi], 0x5c
inc rcx
cmp byte [rdi + rcx], sil
jne 0x180084191
mov rax, rdi
sub rax, rbx
add rcx, rax
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1800841b0
mov rcx, rdi
test rbp, rbp
je 0x1800841d2
xor edx, edx
mov r8d, 8
call rbp
jmp 0x1800841d8
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov rcx, rdi
call qword [fcn.1801ae104]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x1802eaf88], rsi
test rsi, rsi
je 0x180084224
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180084224
mov qword [0x1802eaf80], rax
mov r9d, 2
mov dword [rsp + 0x20], 3
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.1800a1d50
test al, al
lea rcx, [0x1802ed8b0]
setne byte [0x1802ed8a8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.180134d40
add rsp, 0x1e8
ret
Function at 0x180087140
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [fcn.1801ae118]
mov rdi, rax
test rax, rax
je 0x1800871bd
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x1800871e8
cmp ebx, esi
je 0x1800871e8
cmp ebx, 0x8000
ja 0x1800871e8
cmp ebx, esi
jb 0x1800871e3
mov edx, ebx
mov rcx, rdi
call qword [fcn.1801ae118]
mov rdi, rax
test rax, rax
jne 0x180087180
mov rcx, rbp
call qword [fcn.1801ae104]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x1800871c8
mov rcx, rdi
jmp 0x1800871c0

Function at 0x180089d10
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x180089d25
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.180089780

Function at 0x18008aa80
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.18007d9a0
mov rcx, rbx
movups xmm6, xmmword [rax]
call case.0x180074000.1
mov rcx, rdi
mov rsi, rax
call case.0x180074000.1
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x18008ab30
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.18007d9a0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.18007da30
cmp rax, 0x3e8
ja 0x18008ab61
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x18008aae0
test rsi, rsi
je 0x18008ab3d
mov rcx, rsi
call fcn.1801ae104
test rbx, rbx
je 0x18008ab4a
mov rcx, rbx
call fcn.1801ae104
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x18008ab6e
mov rcx, rsi
call fcn.1801ae104
test rbx, rbx
je 0x18008ab7b
mov rcx, rbx
call fcn.1801ae104
mov eax, 1
jmp 0x18008ab4c
Function at 0x180092e20
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1802e1c40]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r8
mov rsi, rdx
mov r13, rcx
cmp r8, 4
jb 0x180092fbe
inc rsi
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rsi
sub rdi, 2
call fcn.1801b8800
cmp rdi, rax
je 0x180092f2d
cmp byte [rsi + rax], 0x25
lea r14, [rsi + rax]
mov rdi, rax
jne 0x180092fbe
mov r8d, 2
lea rdx, [0x180217210]
lea rcx, [r14 + 1]
xor ebp, ebp
lea rbx, [r14 + 1]
call fcn.1801b6ed0
test eax, eax
jne 0x180092eb4
movzx eax, byte [r14 + 3]
lea rcx, [r14 + 3]
test al, al
je 0x180092eb4
cmp al, 0x5d
cmovne rbx, rcx
movzx edx, byte [rbx]
test dl, dl
je 0x180092fbe
mov rax, rbp
movzx ecx, dl
cmp dl, 0x5d
je 0x180092ee6
cmp rax, 0xf
jge 0x180092ee6
inc rbx
mov byte [rsp + rax + 0x20], cl
inc ebp
inc rax
movzx ecx, byte [rbx]
movzx edx, cl
test cl, cl
jne 0x180092ec5
test ebp, ebp
je 0x180092fbe
cmp byte [rbx], 0x5d
jne 0x180092fbe
movsxd rax, ebp
cmp rax, 0x10
jae 0x180092fdf
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call qword [case.0x180074000.1]
mov qword [r13 + 0x28], rax
test rax, rax
jne 0x180092f27
mov eax, 7
jmp 0x180092fc3
mov word [r14], 0x5d
lea r8, [rsp + 0x20]
mov byte [rdi + rsi], 0
mov rdx, rsi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x180092fbe
mov r9d, 0x2e
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_socket
call sub.WS2_32.dll_inet_ntop
test rax, rax
je 0x180092fb6
lea rax, [rsp + 0x30]
mov rdx, 0xffffffffffffffff
inc rdx
cmp byte [rax + rdx], 0
jne 0x180092f74
cmp rdx, rdi
jae 0x180092fb6
lea rax, [rsp + 0x30]
mov r8, rsi
sub r8, rax
lea rcx, [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [r8 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x180092fa0
mov rdi, rdx
mov byte [rdx + rsi + 1], al
mov byte [rdi + rsi], 0x5d
xor eax, eax
jmp 0x180092fc3
mov eax, socket
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180134d40
add rsp, 0x70
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.18013527c
int3
Function at 0x180094030
Capabilities:
Resolve dns

Disassembly:
push rbp
push rdi
push r12
push r13
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor ebp, ebp
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x1800941cf
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x1800941af
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x20], r15
nop dword [rax]
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x18009409e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x180094090
inc rbx
jmp 0x1800940a0
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1800940b0
mov r15d, reloc.WS2_32.dll_recv
jmp 0x1800940bf
cmp eax, 0x17
jne 0x180094158
mov r15d, 0x1c
cmp qword [rsi + 0x20], 0
je 0x180094158
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x180094158
cmp rax, r15
jb 0x180094158
lea rcx, [rbx + 0x30]
add rcx, r15
call qword [fcn.1801b063c]
mov r14, rax
test rax, rax
je 0x180094167
mov ecx, dword [rsi]
mov r8, r15
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], r15d
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call fcn.1801f5800
test rbx, rbx
je 0x180094145
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, r15
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call fcn.1801f5800
test rdi, rdi
cmove rdi, r14
test rbp, rbp
je 0x180094155
mov qword [rbp + 0x28], r14
mov rbp, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x180094080
jmp 0x18009416d
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x60]
test rcx, rcx
je 0x180094187
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x1800941aa
test rdi, rdi
je 0x1800941a6
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.1801ae104]
mov rdi, rbx
test rbx, rbx
jne 0x180094191
xor edi, edi
jmp 0x1800941be
test rdi, rdi
jne 0x1800941be
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x58]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x18009bab0
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, r8
mov rdi, rdx
mov r15, rcx
lea rdx, str.WWW_Authenticate:
mov r8d, send
mov rcx, r9
mov rbx, r9
call fcn.18006b050
test eax, eax
je 0x18009bafb
mov ebp, dword [rdi + 0x150]
cmp ebp, 0x191
je 0x18009bb22
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Proxy_authenticate:
mov rcx, rbx
call fcn.18006b050
test eax, eax
je 0x18009bb7f
mov ebp, dword [rdi + 0x150]
cmp ebp, 0x197
jne 0x18009bb7f
mov rcx, rbx
call fcn.18008c3a0
mov rsi, rax
test rax, rax
jne 0x18009bb3c
mov eax, 0x1b
jmp 0x18009bd44
mov r9, rbx
lea r8, str.CONNECT:_fwd_auth_header__s
mov rdx, r15
mov rcx, rdi
call fcn.1800811f0
cmp ebp, 0x197
mov r8, rsi
mov rcx, rdi
sete dl
call fcn.18008e4a0
mov rcx, rsi
mov ebx, eax
call qword [fcn.1801ae104]
test ebx, ebx
je 0x18009bd42
mov eax, ebx
jmp 0x18009bd44
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Content_Length:
mov rcx, rbx
call fcn.18006b050
test eax, eax
je 0x18009bbdc
mov r8d, dword [rdi + 0x150]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x18009bbbf
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rdi
call fcn.180081150
jmp 0x18009bd42
lea r9, [r14 + 0xc8]
xor edx, edx
lea rcx, [rbx + 0xf]
mov r8d, 0xa
call fcn.18008a100
jmp 0x18009bd42
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, recv
lea rdx, str.Connection:
mov rcx, rbx
call fcn.18008c2c0
test al, al
jne 0x18009bd3a
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rbx
call fcn.18006b050
test eax, eax
je 0x18009bc9a
mov r8d, dword [rdi + 0x150]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x18009bc49
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
mov rcx, rdi
call fcn.180081150
jmp 0x18009bd42
lea r9, str.chunked
mov qword [rsp + 0x20], 7
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rbx
call fcn.18008c2c0
test al, al
je 0x18009bd42
lea rdx, str.CONNECT_responded_chunked
mov rcx, rdi
call fcn.180081150
mov rcx, rdi
mov byte [r14 + 0xd4], 1
call fcn.180097310
jmp 0x18009bd42
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, send
lea rdx, str.Proxy_Connection:
mov rcx, rbx
call fcn.18008c2c0
test al, al
jne 0x18009bd3a
mov r8d, 7
lea rdx, str.HTTP_1.
mov rcx, rbx
call fcn.1801b6ed0
test eax, eax
jne 0x18009bd42
movzx eax, byte [rbx + 7]
sub al, 0x30
cmp al, 1
ja 0x18009bd42
cmp byte [rbx + 8], 0x20
jne 0x18009bd42
movsx ecx, byte [rbx + 9]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x18009bd42
movsx edx, byte [rbx + 0xa]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x18009bd42
movsx r8d, byte [rbx + 0xb]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x18009bd42
movzx eax, byte [rbx + 0xc]
sub al, 0x30
cmp al, 9
jbe 0x18009bd42
lea ecx, [rcx + rcx*4]
lea ecx, [rdx + rcx*2]
lea ecx, [rcx + rcx*4]
lea ecx, [rcx - 0xa68]
lea ecx, [r8 + rcx*2]
mov dword [rdi + 0x150], ecx
mov dword [rdi + 0x12d4], ecx
jmp 0x18009bd42
mov byte [r14 + 0xd5], 1
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1800a0a60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x148
mov rax, qword [0x1802e1c40]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword [rcx]
mov rdi, rcx
mov rsi, r9
mov rbp, r8
mov rcx, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x1800a0b01
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1800a0ac5
mov dword [rsi], 0x51
jmp 0x1800a0afa
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov ecx, ebx
call fcn.180087dd0
mov rcx, qword [rdi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.180081060
mov rax, qword [rdi + 8]
mov dword [rax + 0xcfc], ebx
mov dword [rsi], 0x38
mov rbx, 0xffffffffffffffff
mov edx, dword [rsi]
lea r8, str.nw_in_read_len_zu______d__err_d
mov rcx, qword [rdi + 8]
mov r9, rbp
mov dword [rsp + 0x28], edx
mov rdx, qword [rdi]
mov dword [rsp + 0x20], ebx
call fcn.1800811f0
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180134d40
add rsp, 0x148
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1802e1c40]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rbx, qword [rcx + 0x10]
mov rcx, qword [rax + 0x2e8]
test dword [rcx + 0x84], 0x800
jne 0x1800a0c81
mov rcx, qword [rbx + 0x98]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1800a0c11
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.180087dd0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.180081060
mov eax, 2
jmp 0x1800a0c83
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x144]
lea r8, [rbx + 0x114]
lea rcx, [rsp + 0x30]
call fcn.180082940
test al, al
jne 0x1800a0c81
mov qword [rsp + 0x1e0], rdi
call fcn.1801810d8
mov ebx, dword [rax]
call fcn.1801810d8
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.180087dd0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.180081060
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x1800a0c83
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.180134d40
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret