joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1403511d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x20], rcx
mov rax, qword gs:[0x60]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x18], rax
mov qword [rsp + 0x10], 0
mov rax, qword [rsp + 0x18]
mov rax, qword [rax + 0x20]
mov qword [rsp + 8], rax
xor eax, eax
cmp qword [rsp + 8], 0
je 0x14035122a
mov rax, qword [rsp + 8]
mov rcx, qword [rsp + 0x18]
add rcx, 0x20
cmp rax, rcx
setne al
test al, 1
jne 0x140351233
jmp 0x1403512c7
xor eax, eax
xor ecx, ecx
add rcx, 0x10
sub rax, rcx
add rax, qword [rsp + 8]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
mov rax, qword [rax + 0x30]
mov rcx, qword [rsp + 0x10]
mov rcx, qword [rcx + 0x30]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x10]
mov rcx, qword [rcx + 0x30]
cmp rax, rcx
jb 0x1403512a6
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x10]
mov rcx, qword [rcx + 0x30]
mov rdx, qword [rsp + 0x28]
mov edx, dword [rdx + 0x50]
add rcx, rdx
cmp rax, rcx
ja 0x1403512a6
mov byte [rsp + 3], 1
mov dword [rsp + 4], 1
jmp 0x1403512bb
mov rax, qword [rsp + 8]
mov rax, qword [rax]
mov qword [rsp + 8], rax
mov dword [rsp + 4], 0
cmp dword [rsp + 4], 0
jne 0x1403512d6
jmp 0x14035120c
mov byte [rsp + 3], 0
mov dword [rsp + 4], 1
jmp 0x1403512d8
jmp 0x1403512d8
mov al, byte [rsp + 3]
and al, 1
movzx eax, al
add rsp, 0x38
ret
Function at 0x1400082c4
Capabilities:
Receive data
Receive data on socket

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
xor r15d, r15d
lea r12, [0x14006e810]
mov edi, r15d
mov r14d, r15d
mov ebx, r15d
mov esi, r15d
mov rdx, r12
mov rbp, rcx
jmp 0x14000833b
test eax, eax
je 0x140008378
movzx ecx, word [r12 + rdi*2]
cmp cx, 0xa
je 0x140008378
cmp cx, 0xd
lea eax, [rbx + 1]
cmove eax, ebx
cmp eax, 0x3ff
jge 0x14000836e
movsxd rbx, eax
lea rdi, [r14 + 1]
cmp cx, 0xd
mov rsi, rbx
mov rcx, rbp
cmove rdi, r14
mov r14, rdi
lea rdx, [r12 + rbx*2]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
jne 0x1400082ff
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov word [0x14006f00e], r15w
jmp 0x14000838a
lea rcx, [rsi + rsi]
cmp rcx, 0x800
jae 0x14000838f
mov word [rcx + r12], r15w
mov rax, r12
jmp 0x14000834f
call fcn.1400131fc
int3

Function at 0x140009050
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x140061568]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
cmp dword [0x140070830], 0
jne 0x1400090e0
lea rcx, str.ws2_32.dll
mov edi, 1
call fcn.14000dc98
mov rbx, rax
test rax, rax
jne 0x1400090a7
lea rcx, str.wsock32.dll
call fcn.14000dc98
xor edi, edi
mov rbx, rax
test rax, rax
je 0x140009101
mov ecx, 2
lea rdx, [rsp + 0x20]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x140009114
test edi, edi
je 0x1400090d6
lea rdx, str.WSASendDisconnect
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140070828], rax
mov dword [0x140070830], 1
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400130d0
invalid
Function at 0x140017df0
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.0x140017e11
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 0x140017e3e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140017e40
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140017e99
test ecx, ecx
jle 0x140017e79
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 0x140017e99
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140017e99
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 byte [rcx - 0x5f], ah
movabs dword [0x9f673a4cda27d3cb], eax
add bl, byte [rdx + rbp*8 - 0x45]
jnp fcn.14006f38f
std
invalid
xor eax, 0xb9282729
js 0x14006f416
lodsd eax, dword [rsi]
fpatan
add bl, byte [rcx + 0x52d59d38]
jle 0x14006f406
in al, dx
add al, 0xbc
cmc
push 0xfffffffffffffffc
cmp bh, bl
xlatb
or eax, 0x97fb3bef
xchg esi, eax
jmp 0x14006f3b1
sub al, 0x84
adc esp, dword [r11 + 0x71]
jrcxz 0x14006f47f
sbb edx, dword [rsi + 0x32]
lea edx, [rdx - 0x32]
mov edi, 0xb403a55d
loopne 0x14006f3ff
movsd dword [rdi], dword [rsi]
add esi, dword [rax + riz*8 + 0x45e741e4]
out 0x45, eax
pop rsp
mov ebx, 0x4915a18c
adc bh, byte [rax + riz*8]
sub al, 0x3c
Function at 0x140017ec0
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 0x140017ef1
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 case.default.0x140017f08
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 0x140017f2b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140017f2d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140017f69
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 0x140017ffe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140017fa4
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 0x140017fde
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 0x140017ffe
cmp rbx, rax
ja 0x140017fb0
test rbx, rbx
je 0x140017ffe
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
in eax, dx
hlt
Function at 0x14002c9d4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002ca1e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002ca1e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002ca1e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002ca1e
cmp dword [rcx + 0x84], 0xe
jbe 0x14002ca1e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002ca20
xor al, al
add rsp, 0x28
ret

Function at 0x4217a0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x4217ad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x4217bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x4217a5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x4217d5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x4217c2
sub eax, 3
jb 0x4217ef
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x421826
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x421816
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x421814
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x421803
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.00421762
jmp 0x4217ad
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xfa00
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x421872
cmp rsi, rcx
jae 0x42187a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x421859
cmp al, 0x8f
ja 0x421859
cmp byte [rsi - 2], 0xf
je 0x42185f
sub al, 0xe8
cmp al, 1
ja 0x421843
cmp rsi, rcx
jae 0x42187a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x421849
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x42187a
lodsb al, byte [rsi]
jmp 0x421859
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1f000]
mov eax, dword [rdi]
or eax, eax
je 0x4218d7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x21000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x421887
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x4218d1
mov qword [rbx], rax
add rbx, 8
jmp 0x4218a7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.0042195a], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.0042195a
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x42194a
sub rsp, 0xffffffffffffff80
jmp 0x4014c0
Function at 0x140f58078
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f58082
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f580ab
pop rbp
sub rbp, 0x33
sub rbp, 0xf58078
sub rsp, 0x20
jmp 0x140f580ca
mov rax, 0xf58078
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffb3e32fc2
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f580e9
jmp 0x140f58100
mov cl, byte [rbx + 0x2b]
inc r10b
ret 0x8ac2
Function at 0x1400080cc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008118
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008110
cmp dword [rcx + 0x3c], edx
jl 0x140008110
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008110
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008118
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140001bb0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ecx, 8
call fcn.1400022f0
lea rcx, [0x1400012a0]
mov r9, rax
lea r8, [0x140002290]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140001c52
cmp dword [rsp + 0x48], 0
je 0x140001c46
movaps xmm0, xmmword [rsp + 0x40]
lea rcx, [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140001c46
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 1
call fcn.140002050
jmp 0x140001c31
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 6
mov dword [rsp + 0x48], 0
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x140002c84
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002cce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002cce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002cce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002cce
cmp dword [rcx + 0x84], 0xe
jbe 0x140002cce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002cd0
xor al, al
add rsp, 0x28
ret
Function at 0x140015cb0
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.0x140015cd1
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 0x140015cfe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140015d00
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140015d59
test ecx, ecx
jle 0x140015d39
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 0x140015d59
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140015d59
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 0x140015d80
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 0x140015db1
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 case.default.0x140015dc8
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 0x140015deb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140015ded
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140015e29
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 0x140015ebe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140015e64
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 0x140015e9e
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 0x140015ebe
cmp rbx, rax
ja 0x140015e70
test rbx, rbx
je 0x140015ebe
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 0x140016320
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400c2040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001634d
xor eax, eax
jmp 0x1400164b9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140016387
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140016387
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 0x1400164b9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400164ac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400163ca
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 0x1400163f5
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 0x1400164b1
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x140016464
sub eax, 1
je 0x140016464
cmp eax, 2
jne 0x1400164ac
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
cmovne ecx, edi
mov eax, ecx
jmp 0x1400164b1
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140016492
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 0x1400164ac
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400164b1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14009d900
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140018050
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400c2040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140018123
cmp byte [rcx + 0x71], 0
je 0x140018123
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001811f
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 0x1400180e4
sub eax, 1
je 0x1400180e8
cmp eax, 2
jne 0x14001811f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14009d900
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140018116
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 0x14001811f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400180cc
xor al, al
jmp 0x1400180cc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14009d900
add rsp, 0x60
pop rbx
ret
Function at 0x140036440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x78], rcx
mov rax, qword [rdx]
mov qword [rcx], rax
mov eax, dword [rdx + 8]
mov dword [rcx + 8], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0xc], eax
mov eax, dword [rdx + 0x10]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 0x14]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0x1c]
mov dword [rcx + 0x1c], eax
mov eax, dword [rdx + 0x20]
mov dword [rcx + 0x20], eax
add rcx, 0x28
add rdx, 0x28
call fcn.140007db0
nop
lea r15, [r14 + 0x48]
xor eax, eax
mov qword [r15], rax
mov qword [r15 + 8], rax
mov qword [r15 + 0x10], rax
mov rdx, qword [rsi + 0x50]
sub rdx, qword [rsi + 0x48]
sar rdx, 5
test rdx, rdx
je 0x14003651c
mov rcx, r15
call fcn.140020820
mov qword [rsp + 0x80], r15
mov rbx, qword [r15]
mov rbp, qword [rsi + 0x50]
mov rdi, qword [rsi + 0x48]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], r15
cmp rdi, rbp
je 0x14003650d
nop
mov rdx, rdi
mov rcx, rbx
call fcn.140007db0
add rbx, 0x20
mov qword [rsp + 0x28], rbx
add rdi, 0x20
cmp rdi, rbp
jne 0x1400364f0
mov rdx, rbx
mov rcx, rbx
call fcn.1400085e0
mov qword [r15 + 8], rbx
lea rbx, [r14 + 0x60]
mov qword [rsp + 0x78], rbx
mov rax, qword [rsi + 0x60]
mov qword [rbx], rax
lea rcx, [rbx + 8]
lea rdx, [rsi + 0x68]
call fcn.140036660
nop
movsd xmm0, qword [rsi + 0x88]
movsd qword [rbx + 0x28], xmm0
movsd xmm0, qword [rsi + 0x90]
movsd qword [rbx + 0x30], xmm0
mov eax, dword [rsi + 0x98]
mov dword [rbx + 0x38], eax
movsd xmm0, qword [rsi + 0x9c]
movsd qword [rbx + 0x3c], xmm0
movsd xmm0, qword [rsi + 0xa4]
movsd qword [rbx + 0x44], xmm0
mov eax, dword [rsi + 0xac]
mov dword [rbx + 0x4c], eax
mov eax, dword [rsi + 0xb0]
mov dword [rbx + 0x50], eax
lea rcx, [rbx + 0x58]
lea rdx, [rsi + 0xb8]
call fcn.140007db0
mov eax, dword [rsi + 0xd8]
mov dword [rbx + 0x78], eax
movsd xmm0, qword [rsi + 0xdc]
movsd qword [rbx + 0x7c], xmm0
movups xmm0, xmmword [rsi + 0xe8]
movups xmmword [rbx + 0x88], xmm0
mov eax, dword [rsi + 0xf8]
mov dword [rbx + 0x98], eax
mov eax, dword [rsi + 0xfc]
mov dword [rbx + 0x9c], eax
mov eax, dword [rsi + 0x100]
mov dword [rbx + 0xa0], eax
mov eax, dword [rsi + 0x104]
mov dword [rbx + 0xa4], eax
mov eax, dword [rsi + 0x108]
mov dword [rbx + 0xa8], eax
mov eax, dword [rsi + 0x10c]
mov dword [rbx + 0xac], eax
mov rax, qword [rsi + 0x110]
mov qword [rbx + 0xb0], rax
mov eax, dword [rsi + 0x118]
mov dword [rbx + 0xb8], eax
mov eax, dword [rsi + 0x11c]
mov dword [rbx + 0xbc], eax
movzx eax, byte [rsi + 0x120]
mov byte [rbx + 0xc0], al
movss xmm0, dword [rsi + 0x128]
movss dword [r14 + 0x128], xmm0
mov rax, r14
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret