joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c5000
Capabilities:
Get socket status

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x450
xor eax, eax
mov dword [rsp + 0x30], 1
mov qword [r11 + 8], rax
lea r9, [r11 - 0x218]
mov rax, qword [rcx + 8]
lea rdx, [rsp + 0x30]
mov qword [r11 - 0x210], rax
mov rbx, rcx
mov qword [rsp + 0x38], rax
xor r8d, r8d
lea rax, [r11 + 8]
mov dword [rsp + 0x240], 1
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x30]
mov edi, eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400c5087
cmp edi, 0xffffffff
je 0x1400c5087
mov al, 1
mov rbx, qword [rsp + 0x468]
add rsp, 0x450
pop rdi
ret
mov rbx, qword [rsp + 0x468]
xor al, al
add rsp, 0x450
pop rdi
ret

Function at 0x1400c50a0
Capabilities:
Get socket status

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x450
xor eax, eax
mov dword [rsp + 0x30], 1
mov qword [r11 + 8], rax
lea r9, [r11 - 0x218]
mov rax, qword [rcx + 8]
lea r8, [rsp + 0x30]
mov qword [r11 - 0x210], rax
mov rbx, rcx
mov qword [rsp + 0x38], rax
xor edx, edx
lea rax, [r11 + 8]
mov dword [rsp + 0x240], 1
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x30]
mov edi, eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400c5126
cmp edi, 0xffffffff
je 0x1400c5126
mov al, 1
mov rbx, qword [rsp + 0x468]
add rsp, 0x450
pop rdi
ret
mov rbx, qword [rsp + 0x468]
xor al, al
add rsp, 0x450
pop rdi
ret

Function at 0x1400c5140
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
lea r8, [rsp + 0x38]
movzx eax, dl
mov edx, 0x8004667e
xor eax, 1
mov dword [rsp + 0x38], eax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x28
ret
Function at 0x1400caf50
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xa0
movups xmm0, xmmword [str.x_RSPEkuVOHYKM3.0m2p2_0I]
movzx eax, word [0x1401195e8]
xor r8d, r8d
cmp dword [0x14024e2c0], 2
mov rbx, rcx
movups xmm1, xmmword [0x1401195c8]
mov word [rsp + 0x50], ax
movups xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [0x1401195d8]
movups xmmword [rsp + 0x30], xmm1
movups xmmword [rsp + 0x40], xmm0
jl 0x1400cb107
movdqa xmm5, xmmword [0x140112370]
lea rcx, [rsp + 0x20]
movdqa xmm4, xmmword [0x1401148c0]
mov eax, 5
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
movdqa xmm7, xmmword [str.9999]
movaps xmmword [r11 - 0x38], xmm8
movd xmm6, eax
mov eax, 0x1f
movaps xmmword [r11 - 0x48], xmm9
movdqa xmm9, xmmword [0x140117260]
movd xmm8, eax
nop dword [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
pxor xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
pxor xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp r8d, 0x18
jl 0x1400caff0
movaps xmm9, xmmword [rsp + 0x60]
movaps xmm8, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
cmp r8d, 0x19
jge 0x1400cb158
movsxd rax, r8d
lea r9, [rsp + 0x20]
lea r9, [r9 + rax*2]
nop dword [rax]
nop word [rax + rax]
mov eax, 0x8fb823ef
lea r9, [r9 + 2]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x39
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x31
xor word [r9 - 2], ax
cmp r8d, 0x19
jl 0x1400cb120
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [0x14024ddc0]
call fcn.1400b0610
mov qword [rbx + 0x78], rax
add rsp, 0xa0
pop rbx
ret
Function at 0x1400d3930
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
xor esi, esi
mov rdi, rcx
mov r15d, select
mov qword [rsp + 0x30], rsi
xor ecx, ecx
mov qword [rsp + 0x40], rsi
mov r14d, esi
mov qword [rsp + 0x48], r15
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1400d3ae2
lea ecx, [rsi + 1]
mov qword [rsp + 0x70], rbx
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
test rax, rax
je 0x1400d39c4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400d39bb
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], sil
jne 0x1400d3996
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140018fe0
mov r15, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
test r14, r14
je 0x1400d3a9d
cmp r15, 0x10
lea rax, [rsp + 0x30]
lea rbx, [rsp + 0x30]
cmovae rax, rsi
cmovae rbx, rsi
add r14, rax
cmp rbx, r14
je 0x1400d3a9d
movabs r12, 0x7ffffffffffffff
nop dword [rax]
cmp byte [0x14024e138], 0
movsx ebp, byte [rbx]
je 0x1400d3a91
mov rcx, qword [rdi + 0x270]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov word [rsp + 0x20], bp
mov rbp, qword [rdi + 0x260]
cmp qword [rdi + 0x268], r12
je 0x1400d3af4
mov ecx, 0x20
call fcn.1400e282c
movsd xmm0, qword [rsp + 0x20]
movsd qword [rax + 0x10], xmm0
mov dword [rax + 0x18], 3
inc qword [rdi + 0x268]
mov rcx, qword [rbp + 8]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov qword [rbp + 8], rax
mov qword [rcx], rax
mov byte [rdi + 0x279], 1
mov rcx, qword [rdi + 0x270]
cmp dword [rcx + 8], 0xffffffff
jge 0x1400d3a91
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc rbx
cmp rbx, r14
jne 0x1400d3a10
cmp r15, 0x10
jb 0x1400d3ad0
lea rdx, [r15 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400d3ac8
mov rsi, qword [rsi - 8]
add rdx, 0x27
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d3b01
mov rcx, rsi
call fcn.1400e2868
mov rbp, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
lea rcx, str.list_too_long
call fcn.1400e0e38
int3
call fcn.1400e951c
int3
Function at 0x1400d3c20
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x80
mov esi, edx
movzx r12d, r9b
mov byte [rcx + 0x2c4], 0
movzx ebp, r8b
mov rbx, rcx
test r8b, r8b
je 0x1400d3e77
movzx edi, byte [rsp + 0xc0]
test r9b, r9b
jne 0x1400d3cb1
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
mov r8d, 0x40
lea rdx, [rsp + 0x40]
mov ecx, eax
mov eax, edi
shl eax, 0x18
shl ecx, 0x10
or ecx, eax
call qword [sym.imp.USER32.dll_GetKeyNameTextA]
test eax, eax
jle 0x1400d3cb1
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400d3c96
lea rcx, [rbx + 0x2a0]
lea rdx, [rsp + 0x40]
call fcn.140018fe0
cmp dword [rbx + 0x2c0], 0xa2
jne 0x1400d3e61
cmp esi, 0xa4
jne 0x1400d3e61
test dil, dil
je 0x1400d3cd9
mov byte [rbx + 0x2c4], 1
mov rcx, qword [rbx + 0x270]
mov qword [rsp + 0xa0], r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test r12b, r12b
jne 0x1400d3d7c
mov r8d, esi
mov qword [rsp + 0xa8], r15
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400d3b10
mov r14, qword [rsp + 0x20]
mov r15, qword [rsp + 0x28]
mov rdi, r14
cmp r14, r15
je 0x1400d3d36
mov rcx, qword [rdi]
movzx edx, bpl
call fcn.1400d46a0
add rdi, 8
cmp rdi, r15
jne 0x1400d3d21
mov r15, qword [rsp + 0xa8]
test r14, r14
je 0x1400d3d7c
mov rdx, qword [rsp + 0x30]
mov rax, r14
sub rdx, r14
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x1400d3d74
mov r14, qword [r14 - 8]
add rdx, 0x27
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d3ebe
mov rcx, r14
call fcn.1400e2868
cmp byte [0x14024e138], 0
je 0x1400d3e23
cmp esi, 0x256
jae 0x1400d3dbb
mov byte [rsi + rbx + 8], bpl
cmp byte [rbx + 0xaa], 0
je 0x1400d3dbb
lea eax, [rsi - 0x56]
test eax, 0xffffffdf
jne 0x1400d3dbb
test bpl, bpl
je 0x1400d3dbb
test r12b, r12b
jne 0x1400d3dbb
mov rcx, rbx
call fcn.1400d3930
mov rdi, qword [rbx + 0x260]
movabs rax, 0x7ffffffffffffff
mov dword [rsp + 0x20], esi
mov byte [rsp + 0x24], bpl
mov byte [rsp + 0x25], r12b
cmp qword [rbx + 0x268], rax
je 0x1400d3eb1
mov ecx, 0x20
call fcn.1400e282c
movsd xmm0, qword [rsp + 0x20]
movsd qword [rax + 0x10], xmm0
mov dword [rax + 0x18], 4
inc qword [rbx + 0x268]
mov rcx, qword [rdi + 8]
mov qword [rax], rdi
mov qword [rax + 8], rcx
mov qword [rdi + 8], rax
mov qword [rcx], rax
mov byte [rbx + 0x279], 1
test bpl, bpl
je 0x1400d3e2e
mov dword [rbx + 0x2c0], esi
mov rcx, qword [rbx + 0x270]
cmp dword [rcx + 8], 0xffffffff
jge 0x1400d3e41
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r14, qword [rsp + 0xa0]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
cmp esi, 0x2e
jne 0x1400d3e77
lea rcx, [0x1402510e0]
call fcn.1400d0390
jmp 0x1400d3cd9
cmp esi, 0x2d
jne 0x1400d3cd9
test bpl, bpl
je 0x1400d3cd9
test r12b, r12b
jne 0x1400d3cd9
cmp byte [0x14024e138], r12b
lea rcx, [0x14024e130]
sete dl
call fcn.1400cbcb0
mov byte [rbx + 0x279], 1
jmp 0x1400d3e49
lea rcx, str.list_too_long
call fcn.1400e0e38
int3
call fcn.1400e951c
int3
Function at 0x1400f5320
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400f514c

Function at 0x140109fa0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rcx
mov eax, 0xffffffff
test edx, edx
je 0x140109fde
mov r10d, edx
lea r11, [0x1401292d0]
nop word [rax + rax]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
mov edx, eax
shr eax, 8
xor r8, rdx
movzx ecx, r8b
xor eax, dword [r11 + rcx*4]
sub r10, 1
jne 0x140109fc0
not eax
ret
Function at 0x140003ab0
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
push r12
push r13
mov eax, 0x1070
call fcn.14000cc60
sub rsp, rax
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rdx, qword [rsp + 0x10b0]
xor ebp, ebp
mov qword [rsp + 0x38], r9
mov r12, r8
mov qword [rsp + 0x30], rdx
mov r13, rcx
test r8, r8
je 0x140003b2b
mov r9d, 0x1000
lea rdx, [rsp + 0x40]
call fcn.140002090
test al, al
jne 0x140003b33
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____Cant_read_module_headers
call fcn.140005a10
lea rdx, [0x140005be0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rdx, rbp
jmp 0x140003c53
mov qword [rsp + 0x1068], rsi
lea rdx, str.PAGE
mov qword [rsp + 0x1060], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x1058], r14
mov qword [rsp + 0x1050], r15
inc rdi
cmp byte [rdx + rdi], bpl
jne 0x140003b61
movsxd rax, dword [rsp + 0x7c]
lea rcx, [rsp + 0x40]
add rcx, rax
mov qword [rsp + 0x1098], rbx
mov esi, ebp
movzx eax, word [rcx + 0x14]
lea r15, [rcx + 0x18]
movzx r14d, word [rcx + 6]
add r15, rax
test r14d, r14d
je 0x140003c05
nop word [rax + rax]
mov eax, esi
mov r8, rdi
lea rcx, [rax + rax*4]
lea rbx, [r15 + rcx*8]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140003bce
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], bpl
jne 0x140003bc0
cmp rdi, rax
je 0x140003bde
inc esi
cmp esi, r14d
jae 0x140003c05
lea rdx, str.PAGE
jmp 0x140003ba0
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x140003c05
mov ecx, dword [rbx + 8]
lea rdx, [rsp + 0x40]
add rdx, rax
je 0x140003c05
test ecx, ecx
je 0x140003c05
lea rax, [rsp + 0x40]
mov ebp, ecx
sub rdx, rax
add rdx, r12
jmp 0x140003c2b
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____Cant_find_section
call fcn.140005a10
lea rdx, [0x140005be0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rdx, rbp
mov rbx, qword [rsp + 0x1098]
mov rdi, qword [rsp + 0x1060]
mov rsi, qword [rsp + 0x1068]
mov r14, qword [rsp + 0x1058]
mov r15, qword [rsp + 0x1050]
mov rax, qword [rsp + 0x30]
mov rcx, r13
mov r9, qword [rsp + 0x38]
mov r8d, ebp
mov qword [rsp + 0x20], rax
call fcn.140003930
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000ba40
add rsp, 0x1070
pop r13
pop r12
pop rbp
ret
Function at 0x140004a30
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 0x140004a58
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 0x140004a7e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004a80
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004ad9
test ecx, ecx
jle 0x140004ab9
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 0x140004ad9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004ad9
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 0x140004b00
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 0x140004b22
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140004b38
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 0x140004b54
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004b56
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004b92
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 0x140004c2e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140004bcd
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 0x140004c0e
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 0x140004c2e
cmp rbx, rax
ja 0x140004be0
test rbx, rbx
je 0x140004c2e
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
Function at 0x140005050
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000507d
xor eax, eax
jmp 0x1400051da
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400050a8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1400050a8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x1400051da
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400051cd
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400050eb
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x140005116
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 0x1400051d2
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 0x140005185
sub eax, 1
je 0x140005185
cmp eax, 2
jne 0x1400051cd
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 0x1400051d2
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400051b3
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 0x1400051cd
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400051d2
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000ba40
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005590
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005663
cmp byte [rcx + 0x71], 0
je 0x140005663
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000565f
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 0x140005624
sub eax, 1
je 0x140005628
cmp eax, 2
jne 0x14000565f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000ba40
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005656
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 0x14000565f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000560c
xor al, al
jmp 0x14000560c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000ba40
add rsp, 0x60
pop rbx
ret
Function at 0x140009f70
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000a082
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000a082
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ecx, dword [rax + rdx + 0xb0]
test ecx, ecx
jne 0x140009fe9
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x14000a08d
lea rbx, [rdx + rcx]
mov ebp, dword [rax + rdx + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x50]
cmp rbx, rbp
jae 0x14000a070
mov edx, dword [rbx + 4]
test edx, edx
je 0x14000a070
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x30], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x38], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x40], eax
cmp rcx, r8
je 0x14000a049
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x40]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x50], rcx
jmp 0x14000a065
lea r8, [rsp + 0x30]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.14000a7b0
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x14000a001
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x14000a08d
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000ba40
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret