joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140036810
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1400b1040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rcx + 8]
mov rdi, rcx
mov r8, qword [rcx + 0x28]
mov rdx, qword [rcx + 0x20]
mov qword [rsp + 0x48], rax
lea esi, [rax + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
nop dword [rax]
lea rax, [rsp + 0x38]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x14003688d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140036860
test ebx, ebx
jle 0x140036931
mov rdi, qword [rdi + 8]
xor eax, eax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], 1
nop dword [rax]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
lea ecx, [rdi + 1]
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x1400368df
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400368b0
test ebx, ebx
je 0x14003692d
jns 0x1400368f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
je 0x140036931
lea rsi, [rsp + 0x30]
nop word [rax + rax]
mov r9d, 2
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jns 0x140036929
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140036900
test ebx, ebx
jle 0x140036931
mov al, 1
jmp 0x140036933
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140070670
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140036960
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x268
mov rax, qword [0x1400b1040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov eax, 0x7fffffff
mov rcx, qword [rcx + 0x48]
cmp r8, rax
mov rsi, r8
mov r14, rdx
cmova rsi, rax
mov rdi, qword [rbx + 0x50]
cmp rcx, rdi
jae 0x1400369db
mov rdx, qword [rbx + 0x30]
sub rdi, rcx
add rdx, rcx
mov rcx, r14
cmp rsi, rdi
ja 0x1400369c7
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rsi
mov rax, rsi
jmp 0x140036b02
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rdi
mov rax, rdi
jmp 0x140036b02
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
mov qword [rsp + 0x2a8], rbp
lea ebp, [rax + 1]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], edx
nop word [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_select]
mov edi, eax
test eax, eax
jns 0x140036a3e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140036a10
test edi, edi
jg 0x140036a4e
mov rax, 0xffffffffffffffff
jmp 0x140036afa
mov rbp, qword [rbx + 8]
xor eax, eax
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
cmp rsi, 0x1000
jae 0x140036ad3
mov qword [rsp + 0x260], r15
mov r15, qword [rbx + 0x30]
xor r9d, r9d
mov r8d, 0x1000
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdi, eax
test eax, eax
jns 0x140036a98
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140036a71
mov r15, qword [rsp + 0x260]
test rdi, rdi
jle 0x140036ab9
mov rdx, qword [rbx + 0x30]
mov rcx, r14
cmp rdi, rsi
jg 0x140036abe
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, rdi
jmp 0x140036afa
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rax, rsi
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x50], rdi
jmp 0x140036afa
xor r9d, r9d
mov r8d, esi
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x140036af7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140036ad3
mov rax, rbx
mov rbp, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140070670
add rsp, 0x268
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140036b20
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x1400b1040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rcx + 8]
mov r14, r8
mov r10, qword [rcx + 0x28]
mov r15, rdx
mov r9, qword [rcx + 0x20]
mov rbp, rcx
mov qword [rsp + 0x48], rax
lea edi, [rax + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x38], r9d
mov dword [rsp + 0x3c], r10d
nop word [rax + rax]
lea rax, [rsp + 0x38]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x140036bad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140036b80
mov qword [rsp + 0x280], rsi
test ebx, ebx
jle 0x140036c8a
mov rdi, qword [rbp + 8]
xor eax, eax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], 1
nop word [rax + rax]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
lea ecx, [rdi + 1]
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x140036c0f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140036be0
test ebx, ebx
je 0x140036c5d
jns 0x140036c20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
je 0x140036c8a
lea rsi, [rsp + 0x30]
nop word [rax + rax]
mov r9d, 2
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jns 0x140036c59
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140036c30
test ebx, ebx
jle 0x140036c8a
mov rdi, qword [rbp + 8]
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x140036c85
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140036c61
mov rax, rbx
jmp 0x140036c91
mov rax, 0xffffffffffffffff
mov rsi, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140070670
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400b1040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rcx, qword [rcx + 8]
mov rdi, r8
mov rbx, rdx
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140036da9
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.140031160
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140070670
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
Function at 0x140041290
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x1400b1040]
xor rax, rsp
mov qword [rsp + 0x48], rax
movsd xmm1, qword [rdx]
xorps xmm5, xmm5
movd xmm4, dword [0x14016aa98]
xorps xmm3, xmm3
movaps xmmword [rsp + 0x90], xmm6
xorps xmm2, xmm2
movd xmm6, dword [0x14016aa94]
movaps xmmword [rsp + 0x70], xmm8
movss xmm8, dword [0x140162650]
movaps xmmword [rsp + 0x60], xmm9
movsd xmm9, qword [rdx + 8]
cvtpd2ps xmm1, xmm1
cvtdq2pd xmm6, xmm6
cvtdq2pd xmm4, xmm4
mulsd xmm6, qword [0x1400a0040]
mulsd xmm4, qword [0x1400a0040]
movaps xmmword [rsp + 0x50], xmm10
xorps xmm10, xmm10
ucomiss xmm1, xmm10
cvtpd2ps xmm9, xmm9
jp 0x14004131b
je 0x140041386
movaps xmmword [rsp + 0x80], xmm7
cvtps2pd xmm7, xmm1
comisd xmm7, xmm6
jbe 0x140041359
movaps xmm3, xmm6
subsd xmm3, xmm7
cvtps2pd xmm0, xmm8
xorps xmm3, xmmword [0x1400a0800]
divsd xmm3, xmm0
movaps xmm0, xmm6
movaps xmm1, xmm3
addsd xmm0, xmm6
addsd xmm1, xmm6
comisd xmm1, xmm0
jbe 0x140041359
xorps xmm3, xmm3
comisd xmm6, xmm7
jbe 0x14004137e
movaps xmm3, xmm7
cvtps2pd xmm0, xmm8
subsd xmm3, xmm6
divsd xmm3, xmm0
movaps xmm0, xmm3
addsd xmm0, xmm6
comisd xmm5, xmm0
jbe 0x14004137e
xorps xmm3, xmm3
movaps xmm7, xmmword [rsp + 0x80]
ucomiss xmm9, xmm10
movaps xmm10, xmmword [rsp + 0x50]
jp 0x140041394
je 0x1400413f0
cvtps2pd xmm6, xmm9
comisd xmm6, xmm4
jbe 0x1400413cb
movaps xmm2, xmm4
subsd xmm2, xmm6
cvtps2pd xmm0, xmm8
xorps xmm2, xmmword [0x1400a0800]
divsd xmm2, xmm0
movaps xmm0, xmm4
movaps xmm1, xmm2
addsd xmm0, xmm4
addsd xmm1, xmm4
comisd xmm1, xmm0
jbe 0x1400413cb
xorps xmm2, xmm2
comisd xmm4, xmm6
jbe 0x1400413f0
movaps xmm2, xmm6
cvtps2pd xmm0, xmm8
subsd xmm2, xmm4
divsd xmm2, xmm0
movaps xmm0, xmm2
addsd xmm0, xmm4
comisd xmm5, xmm0
jbe 0x1400413f0
xorps xmm2, xmm2
xor eax, eax
mov qword [rsp + 0x34], 0x4001
mov qword [rsp + 0x20], rax
mov edx, 0x1000
mov qword [rsp + 0x3c], rax
xor ecx, ecx
mov dword [rsp + 0x44], eax
mov r9d, 0x40
mov dword [rsp + 0x30], eax
mov r8d, edx
cvttsd2si eax, xmm3
mov dword [rsp + 0x28], eax
cvttsd2si eax, xmm2
mov dword [rsp + 0x2c], eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movaps xmm9, xmmword [rsp + 0x60]
mov rbx, rax
movaps xmm8, xmmword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x90]
test rax, rax
je 0x1400414ad
movups xmm0, xmmword [0x14016a910]
mov r8d, 0x28
lea rdx, [rsp + 0x20]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x14016a920]
movsd qword [rax + 0x10], xmm1
mov ecx, dword [0x14016a928]
mov dword [rax + 0x18], ecx
movzx ecx, word [0x14016a92c]
mov word [rax + 0x1c], cx
mov ecx, 1
call rbx
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140070670
add rsp, 0xa0
pop rbx
ret
Function at 0x1400472c0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2c0
mov rax, qword [0x1400b1040]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x20], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea r12, [rsp + 0x2f8]
movabs r13, 0xff00ff00ff00ff00
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r12
mov rsi, qword [r12]
mov r14, rsi
xor r14, r13
mov qword [rsp + 0x58], r14
xor r15d, r15d
mov qword [r12], r15
movups xmmword [rcx], xmm0
mov qword [rcx], r15
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
mov dword [rsp + 0x20], 1
cmp qword [rdx + 0x10], r15
jne 0x140047364
mov qword [r12], rsi
mov rdx, qword [rdx + 0x18]
jmp 0x140047492
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
mov dword [rsp + 0x70], 0x238
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1400473a1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [r12], rsi
jmp 0x14004748e
lea rdx, [rsp + 0x9c]
lea rcx, [rsp + 0x30]
call fcn.140050fe0
mov r8, rax
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400473c3
mov rcx, qword [rbx]
mov rdx, qword [rax + 0x10]
cmp qword [rax + 0x18], 7
jbe 0x1400473d1
mov r8, qword [rax]
cmp rdx, qword [rbx + 0x10]
jne 0x1400473f9
test rdx, rdx
je 0x1400473f4
sub r8, rcx
nop
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x1400473f9
add rcx, 2
sub rdx, 1
jne 0x1400473e0
mov sil, 1
jmp 0x1400473fc
xor sil, sil
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x14004743e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047439
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140047507
call fcn.1400707f4
test sil, sil
je 0x140047467
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x14004745a
mov eax, dword [rsp + 0x78]
mov dword [rdx], eax
add qword [rdi + 8], 4
jmp 0x140047467
lea r8, [rsp + 0x78]
mov rcx, rdi
call fcn.14005e9f0
lea rdx, [rsp + 0x70]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400473a1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor r14, r13
mov qword [r12], r14
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x1400474c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400474c4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004750e
mov rcx, r8
call fcn.1400707f4
mov word [rbx], r15w
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r15
mov rax, rdi
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140070670
mov rbx, qword [rsp + 0x310]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14004f660
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 case.default.0x14004f681
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 0x14004f6ae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14004f6b0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14004f709
test ecx, ecx
jle 0x14004f6e9
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 0x14004f709
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14004f709
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
add dword [rax], eax
add dword [rax], 1
add dword [rcx + rdx + 0x10], esi
add al, byte [rdi]
invalid
Function at 0x14004f730
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 0x14004f752
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14004f761
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 0x14004f784
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14004f786
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14004f7c2
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 0x14004f85e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14004f7fd
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 0x14004f83e
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 0x14004f85e
cmp rbx, rax
ja 0x14004f810
test rbx, rbx
je 0x14004f85e
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
adc al, 0x14
sbb al, 0x1c
adc al, 3
or al, 0x1c
Function at 0x14004fcc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400b1040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14004fced
xor eax, eax
jmp 0x14004fe59
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14004fd27
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14004fd27
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14004fe59
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14004fe4c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14004fd6a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14004fd95
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14004fe51
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14004fe04
sub eax, 1
je 0x14004fe04
cmp eax, 2
jne 0x14004fe4c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14004fe51
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14004fe32
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14004fe4c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14004fe51
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140070670
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140050d30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140050d64
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140050d50
ret

Function at 0x140051d00
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400b1040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140051dd3
cmp byte [rcx + 0x71], 0
je 0x140051dd3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140051dcf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140051d94
sub eax, 1
je 0x140051d98
cmp eax, 2
jne 0x140051dcf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140070670
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140051dc6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140051dcf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140051d7c
xor al, al
jmp 0x140051d7c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140070670
add rsp, 0x60
pop rbx
ret
Function at 0x140065ea0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400b1040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
mov rdi, rdx
mov ecx, 8
call fcn.1400707b0
mov rcx, qword [rbx]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14006fd40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140065f19
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140070670
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400660b0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, r8
mov rsi, rdx
sub rdi, rdx
sar rdi, 2
test rdi, rdi
je 0x140066293
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x14016be60]
sub rbx, qword [0x14016be58]
mov qword [rsp + 0x50], r13
sar rbx, 2
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x20], r15
cmp rdi, 0x26f
jb 0x140066103
mov eax, listen
jmp 0x140066131
cmp rdi, 0x44
jb 0x140066110
mov eax, 7
jmp 0x140066131
cmp rdi, 0x27
jb 0x14006611d
mov eax, 5
jmp 0x140066131
cmp rdi, 7
jb 0x14006612a
mov eax, 3
jmp 0x140066131
lea rax, [rdi - 1]
shr rax, 1
mov r14, rdi
lea r15, [rbx + 1]
sub r14, rax
shr r14, 1
lea r13, [r14 + rax]
cmp rdi, rbx
jbe 0x14006614a
mov r15, rdi
mov r8, rdi
mov qword [rsp + 0x48], rbp
shl r8, 2
mov edx, 0x8b8b8b8b
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
test r15, r15
je 0x1400661fd
nop
xor edx, edx
lea rax, [rcx + r14]
div rdi
mov r11d, dword [rsi + rdx*4]
lea r10, [rsi + rdx*4]
xor edx, edx
mov rax, rcx
div rdi
lea rbp, [rsi + rdx*4]
mov r8d, r11d
mov r9, rdx
lea rax, [rcx - 1]
xor edx, edx
div rdi
xor r8d, dword [rsi + rdx*4]
xor r8d, dword [rbp]
mov eax, r8d
shr eax, 0x1b
xor eax, r8d
imul edx, eax, 0x19660d
test rcx, rcx
jne 0x1400661bd
mov rax, rbx
jmp 0x1400661d5
cmp rcx, rbx
ja 0x1400661d2
mov rax, qword [0x14016be58]
mov eax, dword [rax + rcx*4 - 4]
add rax, r9
jmp 0x1400661d5
mov rax, r9
lea r8d, [rax + rdx]
lea eax, [r11 + rdx]
xor edx, edx
mov dword [r10], eax
lea rax, [rcx + r13]
div rdi
inc rcx
add dword [rsi + rdx*4], r8d
mov dword [rbp], r8d
cmp rcx, r15
jb 0x140066170
add r15, rdi
cmp rcx, r15
jae 0x14006627a
inc r14
lea rbp, [rcx - 1]
inc r13
nop
xor edx, edx
lea rax, [r14 + rbp]
div rdi
mov r10d, dword [rsi + rdx*4]
lea r11, [rsi + rdx*4]
xor edx, edx
lea rbx, [rbp + 1]
mov rax, rbx
div rdi
mov rax, rbp
mov r9, rdx
xor edx, edx
div rdi
mov ecx, dword [rsi + rdx*4]
xor edx, edx
add ecx, dword [rsi + r9*4]
add ecx, r10d
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul ecx, eax, 0x5d588b65
mov rax, rbp
add rax, r13
mov rbp, rbx
div rdi
xor r10d, ecx
lea rax, [rbx + 1]
mov dword [r11], r10d
mov r8d, ecx
sub r8d, r9d
xor dword [rsi + rdx*4], r8d
mov dword [rsi + r9*4], r8d
cmp rax, r15
jb 0x140066210
mov rbp, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret