joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140074670
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xaaf], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x14007473b
cmp qword [rcx + 0x278], 0
je 0x1400746ee
mov qword [rsp + 0x40], rbx
call fcn.140063e60
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.1400643f0
mov rcx, qword [rdi + 0x1f0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x278]
movzx edx, bl
mov rcx, rdi
call fcn.1400643f0
mov rbx, qword [rsp + 0x40]
jmp 0x14007473b
mov ecx, esi
test edx, edx
je 0x1400746fe
sub ecx, 1
je 0x1400746fe
cmp ecx, 1
jne 0x14007473b
mov r9, qword [rdi + 0x1e8]
lea rax, [0x1400b9718]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x1e8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1400783c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov rbx, rdx
mov rcx, r8
call fcn.140078430
mov r8d, eax
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov rbx, qword [rsp + 0x30]
cdqe
add rsp, 0x20
pop rdi
ret
Function at 0x140078700
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x1400b9f30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x14007872a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x1400b9f48]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400b9f58]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
test rax, rax
je 0x14007878e
mov rcx, rbx
test r14, r14
je 0x140078778
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x1400787c6
lea rdx, [0x1400b9f60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400787c6
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x14007888a
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x1400787f0
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14007887c
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14007887c
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x140078823
mov dword [rsi + rax*2], 0x5c
cmp word [rsi + rdi*2 + 2], bp
lea rdi, [rdi + 1]
jne 0x140078835
lea rcx, [rdi + rdi]
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140078850
mov rcx, rsi
test r14, r14
je 0x140078873
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140078879
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [case.0x14006a89c.0]
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 0x1400788a0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x140185640]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x140078906
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400788e9
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x1400788e3
shr ax, 8
cmp al, 2
je 0x140078906
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400b2d40
add rsp, 0x1e8
ret
lea rcx, [0x1400b9ec0]
mov qword [rsp + 0x1e0], rbx
call fcn.140078700
mov qword [0x14021bad0], rax
test rax, rax
je 0x14007894b
lea rdx, [0x1400b9ee0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14021bab0]
test rax, rax
cmovne rcx, rax
mov qword [0x14021bab0], rcx
lea rcx, [0x1400b9ef0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x1400789a5
lea rdx, [0x1400b9ef8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400b9f08]
mov rcx, rbx
mov qword [0x14021bab8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400b9f20]
mov rcx, rbx
mov qword [0x14021bac0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14021bac8], rax
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.1400ab150
mov r9d, 2
mov dword [rsp + 0x20], 3
test al, al
mov edx, r9d
setne byte [0x14021c311]
xor r8d, r8d
lea ecx, [r9 + 4]
call fcn.1400ab150
test al, al
lea rcx, [0x14021c318]
setne byte [0x14021c310]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rbx, qword [rsp + 0x1e0]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400b2d40
add rsp, 0x1e8
ret

Function at 0x14007a8f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movzx ebp, byte [rcx]
mov rsi, rdx
mov rbx, rcx
test bpl, bpl
je 0x14007a93e
movzx ecx, byte [rsi]
test cl, cl
je 0x14007a93e
call fcn.14007a780
movzx ecx, bpl
movzx edi, al
call fcn.14007a780
cmp al, dil
jne 0x14007a963
movzx ebp, byte [rbx + 1]
inc rbx
inc rsi
test bpl, bpl
jne 0x14007a912
xor ecx, ecx
mov eax, ecx
cmp byte [rbx], al
sete al
cmp byte [rsi], cl
setne cl
xor eax, ecx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x14007a94e
test rcx, rcx
je 0x14007a97f
test rdx, rdx
je 0x14007a98a
jmp 0x14007a8f0
test rdx, rdx
jne 0x14007a98a
mov eax, 1
ret
xor eax, eax
ret
Function at 0x140086d30
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x140086d5a
cmp dword [rdx], 0
jne 0x140086d70
test rbx, rbx
je 0x140086d65
cmp dword [r8], 0
jne 0x140086d70
test rdi, rdi
je 0x140086dbc
cmp dword [r9], 0
je 0x140086dbc
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.1400af690
test rdi, rdi
je 0x140086d89
cmp dword [rdi], 0
jne 0x140086d8b
xor edi, edi
test rbx, rbx
je 0x140086d95
cmp dword [rbx], 0
jne 0x140086d97
xor ebx, ebx
test rsi, rsi
je 0x140086da1
cmp dword [rsi], 0
jne 0x140086da3
xor esi, esi
lea ecx, [rbp + 1]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, rbx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_select]
jmp 0x140086dc6
mov rcx, qword [rsp + 0x60]
call fcn.140086ce0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400889b0
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.1400697e0
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.140086ed0
mov rcx, rdi
mov rsi, rax
call fcn.140086ed0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140088a60
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1400697e0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.140069870
cmp rax, 0x3e8
ja 0x140088a93
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_MoveFileExW]
test eax, eax
je 0x140088a10
test rsi, rsi
je 0x140088a6e
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x140088a7c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
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 0x140088aa1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x140088aaf
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
jmp 0x140088a7e
Function at 0x140089030
Capabilities:
Resolve dns

Disassembly:
push r12
push r13
push r14
push r15
sub rsp, 0x28
mov r13, r9
xor r14d, r14d
mov qword [r9], r14
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x1400891bb
mov qword [rsp + 0x20], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x1400891a0
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14008909e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140089090
inc rbx
jmp 0x1400890a0
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x1400890ad
lea ebp, [rax + 0xe]
jmp 0x1400890b9
cmp eax, 0x17
jne 0x140089155
lea ebp, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x140089155
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x140089155
cmp rax, rbp
jb 0x140089155
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x140089164
mov ecx, dword [rdi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rsi + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x20], rcx
mov rdx, qword [rdi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
je 0x140089142
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test r14, r14
cmove r14, rsi
test r15, r15
je 0x140089152
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140089080
jmp 0x14008916a
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rcx, rcx
je 0x140089189
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x14008919b
mov rcx, r14
call fcn.140089000
xor r14d, r14d
jmp 0x1400891af
test r14, r14
jne 0x1400891af
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x20]
mov eax, r12d
mov qword [r13], r14
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
ret

Function at 0x140089670
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
je 0x1400896a7
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret

Function at 0x14008a260
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov r8, rdx
xor edx, edx
mov rdi, rcx
call sub.VCRUNTIME140.dll_memset
mov r9d, 2
mov r8d, ebx
mov rdx, rdi
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
mov rbx, qword [rsp + 0x30]
neg eax
sbb eax, eax
and eax, 2
add rsp, 0x20
pop rdi
ret
Function at 0x14008a360
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 [case.0x1400709c2.0]
mov rdi, rax
test rax, rax
je 0x14008a3dd
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 0x14008a408
cmp ebx, esi
je 0x14008a408
cmp ebx, 0x8000
ja 0x14008a408
cmp ebx, esi
jb 0x14008a403
mov edx, ebx
mov rcx, rdi
call qword [case.0x1400709c2.0]
mov rdi, rax
test rax, rax
jne 0x14008a3a0
mov rcx, rbp
call qword [case.0x14006a89c.0]
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 0x14008a3e8
mov rcx, rdi
jmp 0x14008a3e0
jmp 0x14008a360

Function at 0x14008a410
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 [case.0x1400709c2.0]
mov rdi, rax
test rax, rax
je 0x14008a3dd
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 0x14008a408
cmp ebx, esi
je 0x14008a408
cmp ebx, 0x8000
ja 0x14008a408
cmp ebx, esi
jb 0x14008a403
mov edx, ebx
mov rcx, rdi
call qword [case.0x1400709c2.0]
mov rdi, rax
test rax, rax
jne 0x14008a3a0
mov rcx, rbp
call qword [case.0x14006a89c.0]
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 0x14008a3e8
mov rcx, rdi
jmp 0x14008a3e0
jmp 0x14008a360
Function at 0x140094950
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x140185640]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x20]
lea r8, [rsp + 0x20]
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov rbx, qword [rsi + 0x228]
mov rcx, rbx
mov qword [rsp + 0x28], 0xffffffffffffffff
mov dword [rsp + 0x20], Ordinal_133
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400949cc
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x28], rax
jmp 0x1400949d1
mov rax, qword [rsp + 0x28]
mov rcx, rdi
cmp rax, 0xffffffffffffffff
jne 0x1400949f0
lea rdx, [0x1400be430]
call fcn.140074760
mov eax, 0x1e
jmp 0x140094a7c
lea rdx, [0x1400be458]
call fcn.140074850
mov byte [rsi + 0x34d], 0
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.1400af700
lea r9, [rsp + 0x28]
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call fcn.1400a29c0
test eax, eax
jne 0x140094a7c
cmp qword [rdi + 0x288], 0
je 0x140094a7a
mov dl, 1
mov rcx, rdi
call fcn.1400643f0
mov rdx, qword [rsp + 0x28]
mov r8d, 1
mov rcx, qword [rdi + 0x290]
call qword [rdi + 0x288]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1400643f0
test ebx, ebx
je 0x140094a7a
mov rdx, rsi
mov rcx, rdi
call fcn.1400950b0
mov eax, Ordinal_46
jmp 0x140094a7c
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400b2d40
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
add rdx, 0x3f8
cmp byte [rdx + 0x115], 0
jne 0x140095d89
xor r8d, r8d
mov dword [rdx + 0x104], r8d
cmp byte [rax + 0x347], r8b
je 0x140095d43
mov r9, qword [rdx + 0xb0]
test r9, r9
je 0x140095d43
cmp dword [rdx + 0xf8], r8d
je 0x140095d37
mov rax, qword [rdx + 0xc0]
mov rcx, qword [rax]
cmp byte [rcx], 0x2f
je 0x140095d43
mov dword [rdx + 0xfc], r8d
mov rcx, rbx
jmp 0x140095d63
mov rcx, rbx
cmp dword [rdx + 0xf8], r8d
je 0x140095d89
mov r9, qword [rdx + 0xc0]
mov dword [rdx + 0xfc], 1
mov r9, qword [r9]
lea r8, [0x1400be5f0]
call fcn.1400afbf0
mov r8d, eax
test eax, eax
jne 0x140095d93
mov dl, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.140095050
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140096180
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x20]
mov rbx, rcx
add rdx, 0x3f8
cmp byte [rcx + 0xa9a], 0
jne 0x1400961a6
cmp byte [rcx + 0x530], 0
je 0x1400961d8
mov r9, qword [rdx + 0xb8]
test r9, r9
je 0x1400961d8
lea r8, [0x1400be870]
call fcn.1400afbf0
mov r8d, eax
test eax, eax
jne 0x1400961e2
mov dl, reloc.WS2_32.dll_select
mov rcx, rbx
call fcn.140095050
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140097280
add rsp, 0x20
pop rbx
ret
Function at 0x140096910
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
lea eax, [rdx - 0xc8]
mov rbx, rcx
cmp eax, 0x64
jb 0x14009698f
mov qword [rsp + 0x30], rsi
mov rsi, qword [rcx + 0x20]
mov qword [rsp + 0x38], rdi
mov eax, dword [rsi + 0x4f8]
lea edi, [rax + 1]
test eax, eax
jne 0x14009696b
lea rdx, [0x1400bea00]
call fcn.140074850
mov byte [rsi + 0x351], 0
mov edx, edi
mov rcx, rbx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
jmp 0x140097680
cmp edi, 2
jne 0x140096952
lea rdx, [0x1400bea18]
call fcn.140074760
mov rsi, qword [rsp + 0x30]
lea eax, [rdi + 0x1c]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
lea rdx, [0x1400bea30]
call fcn.140074850
xor edx, edx
mov rcx, rbx
call fcn.140095050
add rsp, 0x20
pop rbx
jmp fcn.1400952f0
Function at 0x140096cb0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1c0]
add rdx, 0x3f8
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x140096d00
cmp qword [rdx + 0xb8], 0
je 0x140096d00
xor r9d, r9d
lea r8, [0x1400be860]
call fcn.1400afbf0
mov r8d, eax
test eax, eax
jne 0x140096d0a
mov dl, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rbx
call fcn.140095050
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400969b0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1c0]
mov rbx, rcx
cmp dword [rax + 0x10], 1
jne 0x14009700f
mov r9, qword [rdx + 0x4b0]
test r9, r9
je 0x14009700f
lea r8, [0x1400be868]
add rdx, 0x3f8
call fcn.1400afbf0
mov r8d, eax
test eax, eax
jne 0x140097019
mov dl, reloc.WS2_32.dll_socket
mov rcx, rbx
call fcn.140095050
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140096cb0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x1e0], 0
mov r10, rcx
mov r11, qword [rcx + 0x20]
je 0x1400972d9
cmp qword [r11 + 0x4b0], 0
je 0x1400972d9
movzx edx, byte [rcx + 0x1321]
mov rcx, r11
call fcn.140095560
test eax, eax
je 0x1400972d9
mov rax, qword [r10 + 0x1c0]
mov r9b, reloc.WS2_32.dll_send
mov rdx, r11
mov rcx, r10
mov dword [rax + 0x10], 1
movzx r8d, byte [r10 + 0x1321]
add rsp, 0x28
jmp fcn.1400954c0
mov rdx, r11
mov rcx, r10
add rsp, 0x28
jmp fcn.140096fc0

Function at 0x1400972f0
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx + 0x20]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x14009732d
lea rdx, [0x1400beb38]
call fcn.140074760
lea eax, [rdi + 0x11]
jmp 0x140097389
cmp edx, 0xc8
je 0x140097344
mov r8d, edx
lea rdx, [0x1400beb58]
call fcn.140074850
cmp sil, 0x13
jne 0x140097357
mov rdx, rbp
mov rcx, rbx
call fcn.140096fc0
jmp 0x140097385
cmp sil, 0x14
jne 0x140097367
mov rcx, rbx
call fcn.140095fe0
jmp 0x140097385
cmp sil, 0x15
jne 0x140097377
mov rcx, rbx
call fcn.140096fb0
jmp 0x140097385
cmp sil, 0x16
jne 0x140097387
mov rcx, rbx
call fcn.1400971d0
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14009e300
Capabilities:
Send data
Send data on socket

Disassembly:
mov r9, qword [rcx + 0x1c0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 8]
sub r8d, 1
je 0x14009e381
sub r8d, 1
je 0x14009e358
cmp r8d, 1
jne 0x14009e395
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x14009e379
cmp ecx, r8d
jne 0x14009e395
xor eax, eax
mov dword [r9 + r10*4 + 8], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x408], eax
mov edx, 0xfb
mov rcx, r11
jmp fcn.14009e520
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x14009e379
cmp ecx, 1
jne 0x14009e395
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
mov dword [r9 + r10*4 + 0x408], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfc
mov dword [r9 + r10*4 + 8], eax
jmp fcn.14009e520
ret

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

Disassembly:
mov r9, qword [rcx + 0x1c0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 0xc08]
test r8d, r8d
je 0x14009e444
sub r8d, 2
je 0x14009e3fd
cmp r8d, 1
jne 0x14009e436
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14009e3f0
cmp ecx, r8d
jne 0x14009e436
mov dword [r9 + r10*4 + 0xc08], r8d
mov dword [r9 + r10*4 + 0x1008], 0
ret
mov dword [r9 + r10*4 + 0xc08], 0
ret
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14009e437
cmp ecx, 1
jne 0x14009e436
mov dword [r9 + r10*4 + 0xc08], 3
mov rcx, r11
mov dword [r9 + r10*4 + 0x1008], 0
mov r8d, edx
mov edx, 0xfe
jmp fcn.14009e520
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x14009e429
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.14009e520

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

Disassembly:
mov r9, qword [rcx + 0x1c0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 0xc08]
sub r8d, 1
je 0x14009e4fd
sub r8d, 1
je 0x14009e4ce
cmp r8d, 1
jne 0x14009e514
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14009e4f2
cmp ecx, r8d
jne 0x14009e514
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x1008], eax
mov edx, 0xfd
mov rcx, r11
jmp fcn.14009e520
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14009e4f2
cmp ecx, 1
jne 0x14009e514
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
mov dword [r9 + r10*4 + 0x1008], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfe
mov dword [r9 + r10*4 + 0xc08], eax
jmp fcn.14009e520
ret
Function at 0x14009e520
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x20]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x220]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14009e57f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x1400c0398]
mov rcx, rbx
mov r8d, eax
call fcn.140074760
mov r9d, edi
lea rdx, [0x1400c03b4]
mov r8d, esi
mov rcx, rbx
call fcn.14009dd10
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret