joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006fd7f
Capabilities:
Send data
Send data on socket

Disassembly:
jmp 0x1400764a0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14019f020]
call fcn.1400720d9
nop
mov rax, qword [rbp + 0x128]
mov ecx, dword [rbp + 0x120]
mov dword [rax + 4], ecx
mov rax, qword [rbp + 0x128]
mov ecx, dword [0x14018e7b0]
mov dword [rax], ecx
mov rax, qword [rbp + 0x128]
mov ecx, dword [rbp + 0x130]
mov dword [rax + 8], ecx
xor r9d, r9d
mov r8d, dword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [0x14018e790]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
jne 0x14007657e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0x24], eax
mov r9d, dword [rbp + 0x24]
mov r8d, dword [rbp + 0x130]
lea rdx, str.Failed_to_send__0x_x__bytes__error_code__0x_x_
mov ecx, 1
call fcn.140070112
nop
cmp dword [rbp + 0x24], 0x2746
je 0x140076557
xor eax, eax
cmp eax, 0x2736
je 0x14007657e
lea rdx, str.Lost_connection__attempting_to_reconnect
mov ecx, 1
call fcn.140070112
nop
call fcn.1400719fe
movzx eax, al
test eax, eax
jne 0x140076579
xor al, al
jmp 0x140076580
jmp 0x1400764f8
mov al, 1
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x14007021b
Capabilities:
Hash data with crc32

Disassembly:
jmp 0x140076080
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14019f007]
call fcn.1400720d9
nop
mov rax, qword [rbp + 0x108]
mov qword [rbp + 8], rax
mov eax, dword [rbp + 0x100]
xor eax, 0xffffffff
mov dword [rbp + 0x100], eax
mov rax, qword [rbp + 0x110]
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0x110]
dec rax
mov qword [rbp + 0x110], rax
cmp qword [rbp + 0xd8], 0
je 0x14007612c
mov rax, qword [rbp + 8]
movzx eax, byte [rax]
mov ecx, dword [rbp + 0x100]
xor ecx, eax
mov eax, ecx
and eax, 0xff
mov eax, eax
lea rcx, [0x14018d020]
mov edx, dword [rbp + 0x100]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov dword [rbp + 0x100], eax
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
jmp 0x1400760c3
mov eax, dword [rbp + 0x100]
xor eax, 0xffffffff
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x14007052c
Capabilities:
Create thread

Disassembly:
jmp 0x140076b60
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
lea rcx, [0x14019f020]
call fcn.1400720d9
nop
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14007099b]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140076baa
mov al, 1
jmp 0x140076bac
xor al, al
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x1400705f9
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14009c840
mov rax, rcx
neg rcx
test rax, 7
je 0x14009c85d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14009c8b8
test al, 7
jne 0x14009c850
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x14009c871
mov rdx, qword [rax - 8]
test dl, dl
je 0x14009c8e2
test dh, dh
je 0x14009c8dc
shr rdx, 0x10
test dl, dl
je 0x14009c8d6
test dh, dh
je 0x14009c8d0
shr rdx, 0x10
test dl, dl
je 0x14009c8ca
test dh, dh
je 0x14009c8c4
shr edx, 0x10
test dl, dl
je 0x14009c8be
test dh, dh
jne 0x14009c871
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x140070919
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140093530
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140092eb0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14009356f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401a0020]
jmp 0x140093579
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140070a72
Capabilities:
Query environment variable

Disassembly:
jmp 0x140120f30
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140120d60
lea rcx, [rsp + 0x40]
call fcn.140120ee0
movzx eax, al
test eax, eax
jne 0x140120f78
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140120d90
mov rax, qword [rsp + 0x70]
jmp 0x140121149
lea rcx, [rsp + 0x40]
call fcn.140120eb0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140120e50
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140120eb0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400714a4
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14012101e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140120d90
mov rax, qword [rsp + 0x80]
jmp 0x140121149
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14007081a
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400706fd
lea rcx, [rsp + 0x48]
call fcn.1400703ce
movzx eax, al
test eax, eax
jne 0x140121085
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.14006f780
lea rcx, [rsp + 0x40]
call fcn.140120d90
mov rax, qword [rsp + 0x88]
jmp 0x140121149
lea rcx, [rsp + 0x48]
call fcn.140070d38
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140120eb0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400714a4
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14012111b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.14006f780
lea rcx, [rsp + 0x40]
call fcn.140120d90
mov rax, qword [rsp + 0xa0]
jmp 0x140121149
lea rcx, [rsp + 0x48]
call fcn.1400706da
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.14006f780
lea rcx, [rsp + 0x40]
call fcn.140120d90
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140070a81
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140093460
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140092e30
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400934a1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401a0020]
jmp 0x1400934a7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140070afe
Capabilities:
Get geographical location

Disassembly:
jmp 0x14010bb40
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.14010aa70
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14010bba7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1401a0030]
jmp 0x14010bbc9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140070379
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x140070b12
Capabilities:
Terminate process

Disassembly:
jmp 0x140079510
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x140070ce3
Capabilities:
Print debug messages

Disassembly:
jmp 0x14013cc40
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x14018d500]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14013cc66
jmp 0x14013cce3
mov rcx, qword [rbp + 0x30]
call fcn.1400705f9
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14013cc7f
jmp 0x14013cce3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14013cc9c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14006f8ca
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.14006fc8f
test eax, eax
jne 0x14013cce3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400707ac
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x140071166
Capabilities:
Parse pe header

Disassembly:
jmp 0x14007a860
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14007a880
xor al, al
jmp 0x14007a901
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14007a893
xor al, al
jmp 0x14007a901
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14007a8bd
xor al, al
jmp 0x14007a901
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14007a8d1
xor al, al
jmp 0x14007a901
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14007a8e3
xor al, al
jmp 0x14007a901
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14007a8ff
xor al, al
jmp 0x14007a901
mov al, 1
add rsp, 0x38
ret
Function at 0x14007162a
Capabilities:
Terminate process

Disassembly:
jmp 0x140107b60
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140107b8e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140071d4b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140071daa
Capabilities:
Print debug messages

Disassembly:
jmp 0x140118ba0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140071e59
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400935a0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140092ef0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400935e9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401a0020]
jmp 0x1400935f8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x140071eef
Capabilities:
Set environment variable

Disassembly:
jmp 0x14013faf0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.140070261
lea rcx, [rsp + 0x48]
call fcn.140070261
call fcn.140070a27
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.14007007c
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14013fb5f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.14007051d
lea rcx, [rsp + 0x78]
call fcn.14007051d
mov eax, dword [rsp + 0x24]
jmp 0x14013fbf0
call fcn.140070a27
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.14007007c
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14013fba6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.14007051d
lea rcx, [rsp + 0x78]
call fcn.14007051d
mov eax, dword [rsp + 0x2c]
jmp 0x14013fbf0
lea rcx, [rsp + 0x48]
call fcn.1400701df
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400701df
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.14007051d
lea rcx, [rsp + 0x78]
call fcn.14007051d
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140130400
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14006f8ca
sub rsp, rax
mov rax, qword [0x14018d500]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14018fff0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, recv
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1401305f2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140130546
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140130546
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14013052b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1401304c8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401305b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140130611
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x1401305ed
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140130611
jmp 0x14013049e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400707ac
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1401306c0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14006f8ca
sub rsp, rax
mov rax, qword [0x14018d500]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14018fff0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, recv
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1401308cd
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140130819
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140130819
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1401307f9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, recv
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140130788
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14013088d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401308ec
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x1401308c8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401308ec
jmp 0x14013075e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400707ac
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140005cb0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140005cd8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140005cfe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140005d00
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140005d59
test ecx, ecx
jle 0x140005d39
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140005d59
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140005d59
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140005d80
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140005da2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140005db8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140005dd4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005dd6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005e12
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140005eae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140005e4d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140005e8e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140005eae
cmp rbx, rax
ja 0x140005e60
test rbx, rbx
je 0x140005eae
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret