joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007a76c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14007a782
mov al, 1
jmp 0x14007a7e2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14007a793
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14007a7e0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140078a34
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14007a7e0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14007a7e0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14007a7e0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14007a7e2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14007b214
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400af5a0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14007b26b
cmp word [rdx], r13w
jne 0x14007b26b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14007b270
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14007b395
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14007b3b6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14007b2a9
mov rdx, r9
mov word [rbx], cx
jmp 0x14007b2d0
cmp r9, r8
jae 0x14007b2e0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14007b28a
jmp 0x14007b395
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14007b38a
cmp dword [rsp + 0x80], esi
je 0x14007b38a
lea r8, [0x1400af5a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14007b362
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14007b332
mov word [rbx], r13w
jmp 0x14007b392
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14007b33f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14007b392
cmp word [rsp + 0x70], r13w
jne 0x14007b36f
cmp rbx, r14
je 0x14007b32c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14007780c
cmp word [rsp + 0x70], r13w
je 0x14007b395
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400af5a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14007b38f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14007b395
Function at 0x14008398c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14007780c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14007780c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140083adc
cmp rax, 0xffffffffffffffff
je 0x140083adc
xor edi, edi
test rbp, rbp
jle 0x140083a87
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140071334
mov rbx, rax
test rax, rax
jne 0x140083a14
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140083a7d
mov edx, 0x8000
mov ecx, r14d
call fcn.140068530
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140079664
cmp eax, 0xffffffff
je 0x140083a5d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140083a24
mov edx, r15d
mov ecx, r14d
call fcn.140068530
jmp 0x140083a7d
cmp byte [rsi + 0x38], dil
je 0x140083a74
cmp dword [rsi + 0x34], 5
jne 0x140083a74
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140083a7d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14006fd90
jmp 0x140083af0
jns 0x140083af0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14007780c
cmp rax, 0xffffffffffffffff
jne 0x140083aa8
cmp byte [rsi + 0x30], dil
je 0x140083af0
mov edi, dword [rsi + 0x2c]
jmp 0x140083af0
mov ecx, r14d
call fcn.140078a34
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140083af0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140083af0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140083ae9
mov eax, dword [rsi + 0x2c]
jmp 0x140083aee
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14007780c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140002560
Capabilities:
Create thread
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x10], rdx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov edi, dword [0x1401d5360]
movsxd rax, dword [reloc.WS2_32.dll_accept]
xor edx, edx
cmp eax, 0x7b
ja 0x140002596
lea rdx, [0x1401d3b20]
mov rdx, qword [rdx + rax*8]
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
movdqa xmm1, xmmword [0x140165f20]
movdqu xmmword [rbp - 0x18], xmm1
mov byte [rbp - 0x28], 0
test rdx, rdx
jne 0x140002602
mov dword [rbp - 0x40], 0xc6cec4f3
mov dword [rbp - 0x3c], 0xec86d1c7
mov dword [rbp - 0x38], 0x100d0cd
xor ecx, ecx
nop word [rax + rax]
lea eax, [rcx - 0x60]
xor byte [rbp + rcx - 0x40], al
inc rcx
cmp rcx, 0xa
jb 0x1400025d0
mov byte [rbp - 0x35], 0
lea rax, [rbp - 0x40]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x1400025f2
lea rdx, [rbp - 0x40]
jmp 0x14000261a
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140002610
lea rcx, [rbp - 0x28]
call fcn.14001a750
cmp edi, 1
jne 0x140002689
movdqa xmm0, xmmword [0x140166200]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x30], Ordinal_217
mov byte [rbp - 0x2e], dil
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x60]
xor byte [rbp + rcx - 0x40], al
inc rcx
cmp rcx, 0x11
jb 0x140002650
mov byte [rbp - 0x2e], 0
lea rax, [rbp - 0x40]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140002670
mov r8, rbx
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x28]
call fcn.14001a750
mov dword [rbp + 0x18], 0x42f00000
mov dword [rbp + 0x1c], 0x41a00000
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rcx, qword [rbp - 0x28]
lea rdx, [rbp + 0x18]
call fcn.140053a00
test al, al
je 0x1400026d8
test edi, edi
jne 0x1400026d8
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x140002510]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x140002716
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002711
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002711
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14012e9c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140004670
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 4], 0
je 0x140004693
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x60]
xor byte [rax + rcx], dl
inc rax
cmp rax, 3
jb 0x140004680
mov byte [rcx + 4], 0
mov rax, rcx
ret

Function at 0x1400050c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x1080
call fcn.14012f4d0
sub rsp, rax
mov eax, dword [0x1401d5230]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], eax
xor esi, esi
xor eax, eax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov rcx, qword [0x1401d5228]
lea rax, [rsp + 0x40]
mov ebx, edx
lea r9d, [rsi + 0x10]
mov qword [rsp + 0x30], rsi
mov edx, 0x7ab6fbbc
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, ebx
sar eax, 0x10
lea ecx, [rax*8 + 0x10]
mov rax, qword [rsp + 0x48]
add rax, 0xacad640
add rcx, rax
call fcn.14001ae10
movzx ecx, bx
lea r8, [rsp + 0x870]
mov r9d, 0x808
lea rdx, [rax + rcx*4]
call fcn.140002480
lea rcx, [rsp + 0x60]
mov r8d, 0x808
lea rdx, [rsp + 0x870]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [0x1401d5220]
call fcn.14001ae10
mov qword [rsp + 0x1090], rax
movzx r9d, si
movzx eax, word [rsp + 0x874]
shr ax, 1
cmp si, ax
jae 0x1400051e5
nop word [rax + rax]
movzx ecx, r9w
lea r8, [rsp + 0x66]
add r8, rcx
movzx ecx, r9b
and ecx, 3
inc r9w
movzx edx, byte [rsp + rcx + 0x1090]
xor dl, byte [r8]
xor dl, al
mov byte [r8], dl
movzx eax, word [rsp + 0x64]
shr ax, 1
cmp r9w, ax
jb 0x1400051b0
xorps xmm0, xmm0
lea rax, [rsp + 0x66]
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov r8, 0xffffffffffffffff
mov qword [rdi + 0x18], rsi
nop
inc r8
cmp byte [rax + r8], sil
jne 0x140005200
lea rdx, [rsp + 0x66]
mov rcx, rdi
call fcn.14001bca0
lea r11, [rsp + 0x1080]
mov rax, rdi
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000ae80
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x38
mov rcx, qword [0x1401d5280]
test rcx, rcx
je 0x14000af73
lea rdx, [0x1401d53b8]
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [0x1401d5280]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rsp + 0x40]
mov dword [0x1401d53b8], eax
mov eax, dword [rsp + 0x44]
mov dword [0x1401d53bc], eax
mov eax, dword [0x1401d53c0]
mov dword [0x1401d5494], eax
mov eax, dword [0x1401d53c4]
mov dword [0x1401d5488], eax
mov rax, qword [0x1401d5810]
test rax, rax
jne 0x14000af10
nop dword [rax + rax]
lea rdx, str.MedalOverlay
lea rcx, str.MedalOverlayClass
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [0x1401d5810], rax
test rax, rax
je 0x14000aef0
xor ecx, ecx
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x24], rcx
mov rcx, rax
mov qword [rsp + 0x20], 0xffffffffffffffff
mov qword [rsp + 0x28], 0xffffffffffffffff
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov rcx, qword [0x1401d5810]
mov r9d, 2
mov r8b, 0xff
xor edx, edx
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov rcx, qword [0x1401d5810]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1401d5810]
call qword [sym.imp.USER32.dll_UpdateWindow]
add rsp, 0x38
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x1400156e0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x300
mov rbx, rcx
xor edi, edi
lea rcx, [rsp + 0x40]
call fcn.140017bd0
nop
mov r8, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140015712
mov r8, qword [rbx]
mov r9, qword [rbx + 0x10]
add r9, r8
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140019ca0
nop
lea rcx, [rsp + 0x40]
call fcn.140017ae0
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140015770
mov dword [rsp + 0xc0], 0x238
lea rdx, [rsp + 0xc0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1400157ba
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x14001587b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015876
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400158e9
jmp 0x140015876
mov rbp, qword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x20]
nop dword [rax]
lea rcx, [rsp + 0xec]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400157e0
lea r8, [rsp + 0x20]
cmp rbp, 7
cmova r8, rbx
cmp r14, rax
jne 0x140015898
mov rdx, r14
lea rcx, [rsp + 0xec]
test r14, r14
je 0x140015834
lea rax, [rsp + 0xec]
sub r8, rax
nop dword [rax + rax]
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x140015898
add rcx, 2
sub rdx, 1
jne 0x140015820
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [rsp + 0xc8]
cmp rbp, 7
jbe 0x14001587b
lea rdx, [rbp*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140015873
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400158e9
mov rcx, rbx
call fcn.14012e9c0
test edi, edi
setne al
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
lea rdx, [rsp + 0xc0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400157d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rbp, 7
jbe 0x14001587b
lea rdx, [rbp*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140015873
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140015873
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140018250
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 0x140018278
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 0x14001829e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400182a0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400182f9
test ecx, ecx
jle 0x1400182d9
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 0x1400182f9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400182f9
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 0x140018320
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140018351
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x14001836f
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001838b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001838d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400183c9
mov qword [rsp + 0x38], 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 + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001845e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140018404
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 0x14001843e
nop dword [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 0x14001845e
cmp rbx, rax
ja 0x140018410
test rbx, rbx
je 0x14001845e
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
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400188a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400188c4
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140018907
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140018907
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x140018a38
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001894a
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 0x140018975
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
cmove edi, ecx
mov eax, edi
jmp 0x140018a3d
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
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 0x1400189ea
sub eax, 1
je 0x1400189ea
cmp eax, 2
jne 0x140018a38
movsx ecx, byte [rsp + 0x40]
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
cmove edi, ecx
mov eax, edi
jmp 0x140018a3d
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x140018a1b
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140018a38
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140018a3d
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x14001a250
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001a319
cmp byte [rcx + 0x71], 0
je 0x14001a319
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14001a30c
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
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 0x14001a2c8
sub eax, 1
je 0x14001a2cc
cmp eax, 2
jne 0x14001a30c
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x14001a2fa
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14001a30c
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x14001b040
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rbx, rdx
mov ecx, Ordinal_26
call fcn.14012eae8
mov r14, rax
mov qword [rsp + 0xc0], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_struct_std::atomic_bool__.0
mov qword [r14], rax
lea rcx, [r14 + 0x10]
mov byte [rcx], 1
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], r14
lea rcx, [0x1401d5438]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14001b0b6
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [0x1401d5484]
cmp eax, 0x7fffffff
jne 0x14001b0d7
dec eax
mov dword [0x1401d5484], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov rsi, qword [0x1401d53f8]
sub rsi, qword [0x1401d53f0]
sar rsi, 4
lea rcx, [0x1401d5438]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
lea rax, [rsp + 0x30]
mov qword [rsp + 0xd0], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
lock inc dword [r14 + 8]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r14
mov ebx, dword [rbx]
lea rbp, [0x140014dd0]
mov qword [rsp + 0x60], rbp
lock inc dword [r14 + 8]
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], rsi
mov dword [rsp + 0x80], ebx
mov ecx, Ordinal_41
call fcn.14012eae8
mov qword [rax], rbp
mov qword [rax + 8], rdi
mov qword [rax + 0x10], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rax + 0x18], rsi
mov dword [rax + 0x20], ebx
mov qword [rsp + 0xd8], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14001e500]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14001b205
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
call fcn.140014a30
nop
cmp dword [rsp + 0x48], 0
je 0x14001b1c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x14001b1f7
mov rax, qword [r14]
mov rcx, r14
call qword [rax]
lock xadd dword [r14 + 0xc], ebx
cmp ebx, 1
jne 0x14001b1f7
mov rax, qword [r14]
mov rcx, r14
call qword [rax + reloc.WS2_32.dll_htonl]
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov dword [rsp + 0x48], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3