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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov r12, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
mov rsi, r9
mov r13, rcx
cmp edx, 1
jne 0x1800670d4
test r8, r8
je 0x180067151
lea rbx, [r8 - 1]
shr rbx, 3
inc rbx
nop
movzx eax, byte [r12]
mov r8, rdi
mov rdx, rdi
xor al, byte [rsi]
mov rcx, r13
mov byte [rdi], al
movzx eax, byte [r12 + 1]
xor al, byte [rsi + 1]
mov byte [rdi + 1], al
movzx eax, byte [r12 + 2]
xor al, byte [rsi + 2]
mov byte [rdi + 2], al
movzx eax, byte [r12 + 3]
xor al, byte [rsi + 3]
mov byte [rdi + 3], al
movzx eax, byte [r12 + 4]
xor al, byte [rsi + 4]
mov byte [rdi + 4], al
movzx eax, byte [r12 + 5]
xor al, byte [rsi + 5]
mov byte [rdi + 5], al
movzx eax, byte [r12 + 6]
xor al, byte [rsi + 6]
mov byte [rdi + 6], al
movzx eax, byte [r12 + 7]
xor al, byte [rsi + 7]
mov byte [rdi + 7], al
call fcn.180066d20
mov r11, qword [rdi]
add r12, 8
add rdi, 8
sub rbx, 1
mov qword [rsi], r11
jne 0x180067050
jmp 0x180067151
test r8, r8
je 0x180067151
mov qword [rsp + 0x68], rbp
lea rbp, [r8 - 1]
shr rbp, 3
inc rbp
nop dword [rax]
mov rbx, qword [r12]
mov r8, rdi
mov rdx, r12
mov rcx, r13
call fcn.180066d20
movzx r11d, byte [rsi]
add rdi, 8
xor byte [rdi - 8], r11b
movzx eax, byte [rsi + 1]
add r12, 8
xor byte [rdi - 7], al
movzx eax, byte [rsi + 2]
xor byte [rdi - 6], al
movzx eax, byte [rsi + 3]
xor byte [rdi - 5], al
movzx eax, byte [rsi + 4]
xor byte [rdi - 4], al
movzx eax, byte [rsi + 5]
xor byte [rdi - 3], al
movzx eax, byte [rsi + 6]
xor byte [rdi - 2], al
movzx eax, byte [rsi + 7]
xor byte [rdi - 1], al
sub rbp, 1
mov qword [rsi], rbx
jne 0x1800670f0
mov rbp, qword [rsp + 0x68]
xor eax, eax
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.1800c9b90
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800676b0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov r12, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
mov rsi, r9
mov r13, rcx
cmp edx, 1
jne 0x180067784
test r8, r8
je 0x180067801
lea rbx, [r8 - 1]
shr rbx, 3
inc rbx
nop
movzx eax, byte [r12]
mov r8, rdi
mov rdx, rdi
xor al, byte [rsi]
mov rcx, r13
mov byte [rdi], al
movzx eax, byte [r12 + 1]
xor al, byte [rsi + 1]
mov byte [rdi + 1], al
movzx eax, byte [r12 + 2]
xor al, byte [rsi + 2]
mov byte [rdi + 2], al
movzx eax, byte [r12 + 3]
xor al, byte [rsi + 3]
mov byte [rdi + 3], al
movzx eax, byte [r12 + 4]
xor al, byte [rsi + 4]
mov byte [rdi + 4], al
movzx eax, byte [r12 + 5]
xor al, byte [rsi + 5]
mov byte [rdi + 5], al
movzx eax, byte [r12 + 6]
xor al, byte [rsi + 6]
mov byte [rdi + 6], al
movzx eax, byte [r12 + 7]
xor al, byte [rsi + 7]
mov byte [rdi + 7], al
call fcn.180067170
mov r11, qword [rdi]
add r12, 8
add rdi, 8
sub rbx, 1
mov qword [rsi], r11
jne 0x180067700
jmp 0x180067801
test r8, r8
je 0x180067801
mov qword [rsp + 0x68], rbp
lea rbp, [r8 - 1]
shr rbp, 3
inc rbp
nop dword [rax]
mov rbx, qword [r12]
mov r8, rdi
mov rdx, r12
mov rcx, r13
call fcn.180067170
movzx r11d, byte [rsi]
add rdi, 8
xor byte [rdi - 8], r11b
movzx eax, byte [rsi + 1]
add r12, 8
xor byte [rdi - 7], al
movzx eax, byte [rsi + 2]
xor byte [rdi - 6], al
movzx eax, byte [rsi + 3]
xor byte [rdi - 5], al
movzx eax, byte [rsi + 4]
xor byte [rdi - 4], al
movzx eax, byte [rsi + 5]
xor byte [rdi - 3], al
movzx eax, byte [rsi + 6]
xor byte [rdi - 2], al
movzx eax, byte [rsi + 7]
xor byte [rdi - 1], al
sub rbp, 1
mov qword [rsi], rbx
jne 0x1800677a0
mov rbp, qword [rsp + 0x68]
xor eax, eax
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.1800c9b90
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x180069470
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor ebx, ebx
mov rbp, r8
mov rsi, rcx
mov dword [rsp + 0x28], 0x6a09e667
mov dword [rsp + 0x2c], 0xbb67ae85
mov dword [rsp + 0x30], 0x3c6ef372
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x24], ebx
mov dword [rsp + 0x88], ebx
mov dword [rsp + 0x34], 0xa54ff53a
mov dword [rsp + 0x38], 0x510e527f
mov dword [rsp + 0x3c], 0x9b05688c
mov dword [rsp + 0x40], 0x1f83d9ab
mov dword [rsp + 0x44], 0x5be0cd19
nop dword [rax + rax]
mov rdx, qword [rsi + rbx*8]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.18004f4f0
inc rbx
cmp rbx, 3
jl 0x1800694f0
lea rcx, [rsp + 0x20]
mov rdx, rbp
call fcn.18004f5d0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1800c9b90
mov rbx, qword [rsp + 0xc8]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
Function at 0x18006a0b0
Capabilities:
Hash data using sha256

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x120
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x160]
xor ebx, ebx
mov rsi, rcx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x64], ebx
mov dword [rsp + 0x68], 0x6a09e667
mov dword [rsp + 0x6c], 0xbb67ae85
mov dword [rsp + 0x70], 0x3c6ef372
mov dword [rsp + 0x74], 0xa54ff53a
mov dword [rsp + 0x78], 0x510e527f
mov dword [rsp + 0x7c], 0x9b05688c
mov dword [rsp + 0x80], 0x1f83d9ab
mov dword [rsp + 0x84], 0x5be0cd19
mov dword [rsp + 0xc8], ebx
nop word [rax + rax]
mov rdx, qword [rsp + rbx*8 + 0x40]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x60]
call fcn.18004f4f0
inc rbx
cmp rbx, 3
jl 0x18006a150
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x60]
call fcn.18004f5d0
xor eax, eax
mov r9d, reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0xd1], rax
mov qword [rsp + 0xd9], rax
mov qword [rsp + 0xe1], rax
mov dword [rsp + 0xe9], eax
mov word [rsp + 0xed], ax
mov byte [rsp + 0xef], al
lea rax, [rsp + 0xd0]
lea edx, [r9 - 0x1f]
lea r8, [rsp + 0xf0]
lea rcx, [rsp + 0x38]
mov byte [rsp + 0xd0], 0
mov qword [rsp + 0x20], rax
call fcn.180069550
lea rdx, [rsp + 0xd0]
mov r8d, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rsi
call fcn.1800697c0
mov rax, rsi
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1800c9b90
add rsp, 0x120
pop rdi
pop rsi
pop rbx
ret
Function at 0x18007b050
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x18007b10f
call fcn.18007ade0
test eax, eax
jne 0x18007b10f
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
xor eax, eax
mov rdi, rbx
xor esi, esi
repne scasb al, byte [rdi]
lea edx, [rsi + 0x2e]
not rcx
lea r8, [rcx - 1]
lea rdi, [rcx - 1]
mov rcx, rbx
call fcn.1800ae930
test rax, rax
je 0x18007b0c6
sub rax, rbx
lea edx, [rsi + 0x2e]
mov rcx, rbx
mov r8, rax
call fcn.1800ae930
mov rsi, rax
test rax, rax
je 0x18007b0c6
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 0x18007b0fb
nop dword [rax + rax]
movzx ecx, byte [rbx]
call fcn.18007cf30
inc rbx
movsx rcx, al
imul rdi, rdi, 0x21
xor rdi, rcx
cmp rbx, rsi
jb 0x18007b0e0
mov rsi, qword [rsp + 0x30]
movzx eax, dil
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x18007dbc0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.1800e122c
cdqe
add rsp, 0x28
ret
Function at 0x18007e870
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x180111af8]
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x18007e89a
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov rcx, rax
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x180111ae0]
mov rcx, rbx
mov rbp, rax
call fcn.1800cddb4
test rax, rax
je 0x18007e8ff
test rbp, rbp
je 0x18007e8e6
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 8]
call rbp
mov rbp, qword [rsp + 0x40]
mov rsi, rax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, qword [rsp + 0x40]
mov rsi, rax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
test rbp, rbp
je 0x18007e936
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18007e936
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rbp, qword [rsp + 0x40]
mov rsi, rax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x50], r13
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r13d, eax
test eax, eax
je 0x18007e9fc
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
mov qword [rsp + 0x48], r12
not rcx
lea rax, [rcx - 1]
lea ecx, [r13 + 1]
add rcx, rax
call qword [section..data]
mov r12, rax
test rax, rax
je 0x18007e9ee
mov edx, r13d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x18007e9ee
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
repne scasb al, byte [rdi]
mov eax, 0x5c
mov rdi, r12
not rcx
mov word [rcx + r12 - 1], ax
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
dec rcx
add rcx, r12
nop dword [rax]
movzx eax, byte [rbx]
inc rcx
inc rbx
mov byte [rcx - 1], al
test al, al
jne 0x18007e9c0
test rbp, rbp
je 0x18007e9e2
xor edx, edx
mov rcx, r12
lea r8d, [rdx + 8]
call rbp
jmp 0x18007e9eb
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov rcx, r12
call qword [fcn.1800cb340]
mov r12, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
mov rax, rsi
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x18007ea20
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x278
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x260], rax
test cl, 2
je 0x18007ea8c
lea rdx, [rsp + 0xc0]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x18007ea6f
movzx eax, word [rsp + 0xc0]
cmp al, 2
jne 0x18007ea69
shr ax, 8
cmp al, 2
je 0x18007ea8c
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1800c9b90
add rsp, 0x278
ret
call fcn.1800b04c0
test eax, eax
jne 0x18007eb8b
lea rcx, str.iphlpapi.dll
mov qword [rsp + 0x270], rbx
call fcn.18007e870
mov qword [0x1801612f0], rax
test rax, rax
je 0x18007eade
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1801612f8]
test rax, rax
cmovne rcx, rax
mov qword [0x1801612f8], rcx
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x9c
call fcn.1800cc600
xor ebx, ebx
mov r8b, 3
lea edx, [rbx + 2]
xor ecx, ecx
mov dword [rsp + 0x20], 0x9c
mov dword [rsp + 0x24], 6
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x30], 2
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [rbx + 1]
mov r8b, 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [rbx + 0x20]
mov r8b, 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [rbx + 0x10]
mov r8b, 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [rbx + 8]
mov r8b, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [rbx + 0x33]
lea rcx, [rsp + 0x20]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
lea rcx, [0x1801651f8]
test eax, eax
setne bl
mov dword [0x180165200], ebx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rbx, qword [rsp + 0x270]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1800c9b90
add rsp, 0x278
ret

Function at 0x180083000
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x180083047
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
mov edx, 0x51
cmp eax, 0x2733
mov eax, gethostname
mov qword [rbx], 0
sete cl
test ecx, ecx
cmovne eax, edx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1800830f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x718], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x180083151
mov edx, 1
call fcn.180080580
mov r11, qword [rdi + 0x670]
mov r9, rsi
mov r8, rbp
mov edx, ebx
mov rcx, rdi
mov qword [rsp + 0x20], r11
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.180080580
mov eax, ebx
jmp 0x180083197
test edx, edx
js 0x180083195
cmp ebx, 2
jg 0x180083195
mov r9, qword [rdi + 0x668]
lea rdx, [0x180111da8]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call fcn.1800cb6c4
mov r9, qword [rdi + 0x668]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call fcn.1800cb6c4
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1800831b0
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x18008330b
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
sub rsp, 0x860
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x840], rax
cmp dword [rcx + 0x1018], 0
mov rbx, rcx
je 0x1800832f3
mov r8, rdx
lea r9, [r11 + 0x18]
lea rcx, [rsp + 0x30]
mov edx, 0x801
mov qword [r11 - 0x10], rdi
call fcn.180088360
cmp eax, 0x801
jb 0x180083262
mov rdx, qword [rsp + 0x878]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
cmp byte [rcx + rdx - 2], 0xa
jne 0x180083249
lea r8, str...._n
lea edx, [rax + 5]
lea rcx, [rsp + 0x82c]
call fcn.1800883d0
jmp 0x180083262
lea r8, [0x180111dc0]
lea rcx, [rsp + 0x82d]
mov edx, 4
call fcn.1800883d0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x30]
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
cmp qword [rbx + 0x718], rax
je 0x1800832b5
lea edx, [rax + 1]
mov rcx, rbx
call fcn.180080580
mov rdx, qword [rbx + 0x670]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
mov r9, rdi
mov rcx, rbx
xor edx, edx
call qword [rbx + 0x718]
xor edx, edx
mov rcx, rbx
call fcn.180080580
jmp 0x1800832eb
mov r9, qword [rbx + 0x668]
mov edx, 2
lea rcx, [0x180111da8]
lea r8d, [rdx - 1]
call fcn.1800cb6c4
mov r9, qword [rbx + 0x668]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rdi
call fcn.1800cb6c4
mov rdi, qword [rsp + 0x858]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1800c9b90
add rsp, 0x860
pop rbx
repz ret
Function at 0x1800831b9
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x18008330b
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
sub rsp, 0x860
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x840], rax
cmp dword [rcx + 0x1018], 0
mov rbx, rcx
je 0x1800832f3
mov r8, rdx
lea r9, [r11 + 0x18]
lea rcx, [rsp + 0x30]
mov edx, 0x801
mov qword [r11 - 0x10], rdi
call fcn.180088360
cmp eax, 0x801
jb 0x180083262
mov rdx, qword [rsp + 0x878]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
cmp byte [rcx + rdx - 2], 0xa
jne 0x180083249
lea r8, str...._n
lea edx, [rax + 5]
lea rcx, [rsp + 0x82c]
call fcn.1800883d0
jmp 0x180083262
lea r8, [0x180111dc0]
lea rcx, [rsp + 0x82d]
mov edx, 4
call fcn.1800883d0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x30]
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
cmp qword [rbx + 0x718], rax
je 0x1800832b5
lea edx, [rax + 1]
mov rcx, rbx
call fcn.180080580
mov rdx, qword [rbx + 0x670]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
mov r9, rdi
mov rcx, rbx
xor edx, edx
call qword [rbx + 0x718]
xor edx, edx
mov rcx, rbx
call fcn.180080580
jmp 0x1800832eb
mov r9, qword [rbx + 0x668]
mov edx, 2
lea rcx, [0x180111da8]
lea r8d, [rdx - 1]
call fcn.1800cb6c4
mov r9, qword [rbx + 0x668]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rdi
call fcn.1800cb6c4
mov rdi, qword [rsp + 0x858]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1800c9b90
add rsp, 0x860
pop rbx
repz ret

Function at 0x180083310
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x160
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp dword [rcx + 0x1018], 0
mov rbx, rcx
jne 0x180083353
cmp qword [rcx + 0x678], 0
je 0x180083455
mov r8, rdx
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
mov edx, pe_nt_image_headers64
mov qword [rsp + 0x158], rdi
call fcn.180088360
mov rdx, qword [rbx + 0x678]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x30]
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
test rdx, rdx
je 0x1800833bc
cmp dword [rbx + 0x17f4], eax
jne 0x1800833bc
lea rcx, [rsp + 0x30]
movzx eax, byte [rcx]
inc rdx
inc rcx
mov byte [rdx - 1], al
test al, al
jne 0x1800833a2
mov dword [rbx + 0x17f4], 1
cmp dword [rbx + 0x1018], 0
je 0x18008344d
cmp qword [rbx + 0x718], 0
mov byte [rsp + rdi + 0x30], 0xa
mov byte [rsp + rdi + 0x31], 0
je 0x180083416
mov edx, 1
mov rcx, rbx
call fcn.180080580
mov rdx, qword [rbx + 0x670]
lea r9, [rdi + 1]
mov qword [rsp + 0x20], rdx
lea r8, [rsp + 0x30]
mov rcx, rbx
xor edx, edx
call qword [rbx + 0x718]
xor edx, edx
mov rcx, rbx
call fcn.180080580
jmp 0x18008344d
mov r9, qword [rbx + 0x668]
mov edx, 2
lea rcx, [0x180111da8]
lea r8d, [rdx - 1]
call fcn.1800cb6c4
mov r9, qword [rbx + 0x668]
lea rdx, [rdi + 1]
lea rcx, [rsp + 0x30]
mov r8d, 1
call fcn.1800cb6c4
mov rdi, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800c9b90
add rsp, 0x160
pop rbx
ret
Function at 0x1800838d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
movsxd rcx, edx
mov rax, qword [rbx + 0x720]
mov rbp, qword [rbx + rcx*8 + 0x4c0]
mov rdi, rcx
shl rdi, 5
mov rsi, qword [rdi + rbx + 0x510]
sub rsi, qword [rdi + rbx + 0x518]
test byte [rax + 0x7c], 3
je 0x1800839ec
lea rax, [0x1800835d0]
cmp qword [rbx + rcx*8 + 0x4e8], rax
jne 0x1800839ec
cmp qword [rdi + rbx + 0x508], 0
je 0x180083943
test rsi, rsi
je 0x1800839ec
or r8, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rbp
or rdx, r8
call fcn.1800a3e20
cmp eax, 0xffffffff
je 0x1800839ec
test al, 1
je 0x1800839ec
cmp qword [rdi + rbx + 0x508], 0
jne 0x1800839be
mov rax, qword [rbx]
mov ecx, dword [rax + 0xbe0]
add ecx, ecx
movsxd rcx, ecx
mov qword [rdi + rbx + 0x510], rcx
call qword [section..data]
mov rsi, qword [rdi + rbx + 0x510]
xor ecx, ecx
mov qword [rdi + rbx + 0x508], rax
mov qword [rdi + rbx + 0x518], rcx
mov qword [rdi + rbx + 0x520], rcx
test rax, rax
jne 0x1800839be
mov qword [rdi + rbx + 0x510], rcx
jmp 0x1800839ec
mov rdx, qword [rdi + rbx + 0x508]
xor r9d, r9d
mov r8d, esi
add rdx, qword [rdi + rbx + 0x518]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1800839ec
add qword [rdi + rbx + 0x518], rcx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x130
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbp, qword [rsp + 0x180]
movsxd rax, edx
mov rsi, r9
mov rbx, qword [rcx + rax*8 + 0x4c0]
mov rdi, r8
mov r12, rcx
call fcn.1800838d0
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
mov dword [rbp], 0
movsxd rdi, eax
cmp rdi, 0xffffffffffffffff
jne 0x180083ac4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x180083a8d
mov dword [rbp], 0x51
xor eax, eax
jmp 0x180083ac7
lea rdx, [rsp + 0x20]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.180070a50
mov rcx, qword [r12]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.180083310
mov r11, qword [r12]
mov dword [r11 + 0x1350], ebx
mov dword [rbp], gethostname
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1800c9b90
add rsp, 0x130
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180084b90
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
xor esi, esi
mov rdi, rdx
mov rbx, rcx
mov eax, esi
lea r9, [rsp + 0x70]
lea r8d, [rsi + 8]
cmp dword [rcx + 0x1050], eax
mov edx, 0xffff
mov rcx, rdi
setne al
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x70], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x180084bfe
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov r8, rdi
mov rcx, rbx
call fcn.1800831b0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
mov ecx, dword [rbx + 0xf2c]
mov dword [rsp + 0x50], 1
call fcn.18007db20
mov ecx, dword [rbx + 0xf30]
imul eax, eax, 0x3e8
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x54], eax
call fcn.18007db20
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x50]
mov r9d, ntohl
mov edx, 0x98000004
imul eax, eax, 0x3e8
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x180084c90
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r8d, edi
mov r9d, eax
mov rcx, rbx
call fcn.1800831b0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret