joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400889a0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r8, qword [0x14017daa0]
lea r10, [0x140159be0]
movsxd r9, ecx
mov rbx, qword [r8 + 0x1c10]
add rbx, 0xc8
movsxd rdx, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + rdx*4 - 4]
not edi
movzx eax, r9b
movzx ecx, dil
xor rcx, rax
shr edi, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor edi, dword [r10 + rcx*4]
movzx ecx, dil
xor rdx, rcx
shr edi, 8
shr eax, 0x10
xor edi, dword [r10 + rdx*4]
movzx ecx, dil
shr edi, 8
movzx edx, al
xor rdx, rcx
xor edi, dword [r10 + rdx*4]
movzx ecx, dil
shr edi, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
xor edi, dword [r10 + rdx*4]
not edi
cmp dword [r8 + 0x1c44], edi
jne 0x140088a45
mov r8, r9
mov edx, 4
mov ecx, edi
call fcn.14008fc80
mov ecx, dword [rbx + 4]
mov r8d, dword [rbx]
cmp r8d, ecx
jne 0x140088a79
inc r8d
test ecx, ecx
je 0x140088a62
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x140088a67
mov eax, 8
cmp eax, r8d
mov rcx, rbx
cmovg r8d, eax
mov edx, r8d
call fcn.140090c60
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140089bc0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14017c080]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x14017daa0]
mov edi, edx
cmp byte [rbx + 0x1f7d], 0
jne 0x140089c21
cmp byte [rbx + 0x1f7e], 0
jne 0x140089c21
movsx r9d, word [rbx + 0x3056]
lea r8, str.Tooltip__02d
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.14007c100
test dil, 1
je 0x140089d48
jmp 0x140089caa
movss xmm1, dword [rbx + 0x1618]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x3056]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x140169808]
mulss xmm1, dword [0x1401697f0]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1d20], rax
mov dword [rbx + 0x1d0c], 1
movss dword [rbx + 0x1d18], xmm0
movss dword [rbx + 0x1d1c], xmm1
movss xmm0, dword [rbx + 0x1674]
mulss xmm0, dword [0x1401696f0]
or dword [rbx + 0x1d08], 0x41
movss dword [rbx + 0x1d68], xmm0
call fcn.14007c100
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140089d00
lea r11, [0x140159be0]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x140089ce3
cmp byte [r8], r9b
jne 0x140089ce3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140089cd0
not ecx
call fcn.140083550
test rax, rax
je 0x140089d48
cmp byte [rax + 0x8e], 0
je 0x140089d48
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x3056]
mov edx, reloc.WS2_32.dll_recv
movsx r9d, word [rbx + 0x3056]
call fcn.14007c100
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140085ba0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140145cd0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14008eb30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x30f8], 0
lea rbx, [rcx + 0x3100]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14008ebd7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14008eb8a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140090a30
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14007caf0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x30f8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x3108]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14017da98]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14008ebdf
mov rcx, rbx
call fcn.14007caf0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b9450
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x14017c080]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r10, rcx
mov ebx, edx
movzx ecx, byte [rcx]
test cl, cl
je 0x1400b9496
lea rax, [r10 + 1]
cmp cl, 0x25
jne 0x1400b9486
cmp byte [rax], cl
jne 0x1400b9496
cmp cl, cl
cmovne rax, r10
movzx ecx, byte [rax + 1]
lea r10, [rax + 1]
test cl, cl
jne 0x1400b9477
cmp byte [r10], 0x25
jne 0x1400b95ba
cmp byte [r10 + 1], 0x25
je 0x1400b95ba
mov rcx, r10
lea r11, [rsp + 0x20]
call fcn.1400aaac0
mov r8, rax
cmp r10, rax
jae 0x1400b94f0
movabs r9, 0x800000000000009
nop word [rax + rax]
movzx edx, byte [r10]
inc r10
lea ecx, [rdx - 0x24]
cmp cl, 0x3b
ja 0x1400b94e5
bt r9, rcx
jb 0x1400b94eb
mov byte [r11], dl
inc r11
cmp r10, r8
jb 0x1400b94d0
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.14007c100
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x1400b9528
inc rcx
cmp byte [rcx], 0x20
je 0x1400b9520
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x1400b95a8
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x1400b9543
movzx r8d, byte [rcx + 1]
lea rdx, [rcx + 1]
movzx eax, r8b
cmovne rdx, rcx
cmp r8b, 0x2b
jne 0x1400b9559
movzx eax, byte [rdx + 1]
lea rcx, [rdx + 1]
xorps xmm1, xmm1
cmovne rcx, rdx
cmp al, 0x30
jl 0x1400b9596
movss xmm2, dword [0x1401697f4]
cmp al, 0x39
ja 0x1400b9596
movzx eax, al
inc rcx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x1400b9570
cmp r9b, 0x2d
jne 0x1400b95b5
xorps xmm1, xmmword [0x140169ae0]
movaps xmm0, xmm1
jmp 0x1400b95bd
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x1400b95bd
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140145cd0
add rsp, 0x90
pop rbx
ret
Function at 0x1400b9660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x14017c080]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r10, rcx
mov ebx, edx
movzx ecx, byte [rcx]
test cl, cl
je 0x1400b96a6
lea rax, [r10 + 1]
cmp cl, 0x25
jne 0x1400b9696
cmp byte [rax], cl
jne 0x1400b96a6
cmp cl, cl
cmovne rax, r10
movzx ecx, byte [rax + 1]
lea r10, [rax + 1]
test cl, cl
jne 0x1400b9687
cmp byte [r10], 0x25
jne 0x1400b97c4
cmp byte [r10 + 1], 0x25
je 0x1400b97c4
mov rcx, r10
lea r11, [rsp + 0x20]
call fcn.1400aaac0
mov r8, rax
cmp r10, rax
jae 0x1400b9700
movabs r9, 0x800000000000009
nop word [rax + rax]
movzx edx, byte [r10]
inc r10
lea ecx, [rdx - 0x24]
cmp cl, 0x3b
ja 0x1400b96f5
bt r9, rcx
jb 0x1400b96fb
mov byte [r11], dl
inc r11
cmp r10, r8
jb 0x1400b96e0
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.14007c100
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x1400b9738
nop dword [rax]
inc rcx
cmp byte [rcx], 0x20
je 0x1400b9730
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x1400b97b6
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x1400b9753
movzx r8d, byte [rcx + 1]
lea rdx, [rcx + 1]
movzx eax, r8b
cmovne rdx, rcx
cmp r8b, 0x2b
jne 0x1400b9769
movzx eax, byte [rdx + 1]
lea rcx, [rdx + 1]
xorps xmm1, xmm1
cmovne rcx, rdx
cmp al, 0x30
jl 0x1400b97a4
movsd xmm2, qword [0x1401697a8]
cmp al, 0x39
ja 0x1400b97a4
movzx eax, al
inc rcx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x1400b9780
cmp r9b, 0x2d
jne 0x1400b97bf
xorps xmm1, xmmword [0x140169ad0]
movaps xmm0, xmm1
jmp 0x1400b97c7
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x1400b97c7
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140145cd0
add rsp, 0x90
pop rbx
ret
Function at 0x1400b9d70
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
push r14
sub rsp, 0x58
mov rax, qword [0x14017dc58]
mov r14, rcx
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b9f56
movsxd rbx, dword [rax + 0x3c]
add rbx, rax
cmp dword [rbx], 0x4550
jne 0x1400b9f56
mov eax, 0x20b
cmp word [rbx + 0x18], ax
jne 0x1400b9f56
mov edi, dword [rbx + 0x50]
xor ecx, ecx
mov edx, edi
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
test rax, rax
je 0x1400b9f56
movzx ecx, word [rbx + 0x14]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r15
mov eax, dword [rcx + rbx + 0x24]
sub edi, eax
mov r8d, edi
mov rcx, r14
mov qword [rsp + 0x80], rsi
mov dword [rsp + 0x88], eax
mov r13d, edi
call fcn.1400bcc80
mov r12, rax
mov r15, rax
test rax, rax
je 0x1400b9f36
mov r8d, dword [rbx + 0x54]
mov rcx, rbp
mov rdx, qword [0x14017dc58]
call sub.VCRUNTIME140.dll_memcpy
movzx edi, word [rbx + 0x14]
xor eax, eax
add rdi, 0x2c
mov esi, eax
cmp ax, word [rbx + 6]
jae 0x1400b9e76
add rdi, rbx
nop dword [rax]
nop dword [rax + rax]
mov edx, dword [rdi]
mov ecx, dword [rdi - 8]
add rdx, qword [0x14017dc58]
add rcx, rbp
mov r8d, dword [rdi - 4]
call sub.VCRUNTIME140.dll_memcpy
movzx eax, word [rbx + 6]
lea rdi, [rdi + 0x28]
inc esi
cmp esi, eax
jl 0x1400b9e50
mov eax, dword [rsp + 0x88]
lea rcx, [rsp + 0x20]
mov rsi, r15
mov rdx, rbp
sub r15, rax
mov rdi, r15
sub rdi, qword [rbx + 0x30]
call fcn.1400bf060
mov rdx, rdi
mov rcx, rax
call fcn.1400ba030
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.1400bf1b0
mov rdx, rax
mov rcx, r14
call fcn.1400ba130
test al, al
je 0x1400b9f36
mov r8d, dword [rsp + 0x88]
mov r9, r13
add r8, rbp
mov rdx, rsi
mov rcx, r14
call fcn.1400bca60
test al, al
je 0x1400b9f36
mov r8d, dword [rbx + 0x28]
lea rdx, [rsp + 0x88]
add r8, r15
mov dword [rsp + 0x88], 0
mov rcx, r14
call fcn.1400ba580
test al, al
je 0x1400b9f36
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rsi
mov rsi, qword [rsp + 0x80]
mov r12, qword [rsp + 0x50]
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
add rsp, 0x58
pop r14
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r12
mov rcx, r14
call fcn.1400bced0
xor eax, eax
jmp 0x1400b9f15
xor eax, eax
add rsp, 0x58
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400bac90
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14017c080]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
lea r9, [rsp + 0x20]
mov rsi, rcx
xor r14d, r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov edi, r14d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400bad19
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, ntohl
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1400bacd0
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbp
test eax, eax
js 0x1400badc0
mov ebx, r14d
cmp dword [rdi], ebx
jbe 0x1400badc0
nop dword [rax]
mov eax, ebx
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x28], xmm0
movzx edx, word [rcx + rdi + 0x2e]
lea rbp, [rcx + rdi]
add rdx, 0x30
mov qword [rsp + 0x38], r14
add rdx, rcx
mov qword [rsp + 0x40], r14
add rdx, rdi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r14b
jne 0x1400bad75
lea rcx, [rsp + 0x28]
call fcn.1400ba720
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
jb 0x1400bad95
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0x10
lea rcx, [rsp + 0x28]
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400badf6
lea rcx, [rsp + 0x28]
call fcn.1400ba460
inc ebx
cmp ebx, dword [rdi]
jb 0x1400bad40
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140145cd0
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
mov rbx, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, [rsp + 0x28]
call fcn.1400ba460
mov rax, rbx
jmp 0x1400badd3
Function at 0x1400bb2c0
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 0x1400bb2e8
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 0x1400bb30e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400bb310
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400bb369
test ecx, ecx
jle 0x1400bb349
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 0x1400bb369
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400bb369
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 0x1400bb390
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 0x1400bb3b2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400bb3c8
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 0x1400bb3e4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400bb3e6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400bb422
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 0x1400bb4be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400bb45d
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 0x1400bb49e
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 0x1400bb4be
cmp rbx, rax
ja 0x1400bb470
test rbx, rbx
je 0x1400bb4be
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 0x1400bb8c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14017c080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400bb8ed
xor eax, eax
jmp 0x1400bba59
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400bb927
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400bb927
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 0x1400bba59
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400bba4c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400bb96a
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 0x1400bb995
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 0x1400bba51
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 0x1400bba04
sub eax, 1
je 0x1400bba04
cmp eax, 2
jne 0x1400bba4c
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 0x1400bba51
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400bba32
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 0x1400bba4c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400bba51
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140145cd0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400bbc20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14017c080]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400bbcf3
cmp byte [rcx + 0x71], 0
je 0x1400bbcf3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x1400bbcef
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 0x1400bbcb4
sub eax, 1
je 0x1400bbcb8
cmp eax, 2
jne 0x1400bbcef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140145cd0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400bbce6
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 0x1400bbcef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400bbc9c
xor al, al
jmp 0x1400bbc9c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140145cd0
add rsp, 0x60
pop rbx
ret
Function at 0x1400be1b0
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
push r12
push r13
mov eax, 0x1070
call fcn.1401468d0
sub rsp, rax
mov rax, qword [0x14017c080]
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
jne 0x1400be1fc
mov rdx, rbp
jmp 0x1400be30c
mov r9d, 0x1000
lea rdx, [rsp + 0x40]
call fcn.1400bca60
test al, al
je 0x1400be1f4
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
nop
inc rdi
cmp byte [rdx + rdi], bpl
jne 0x1400be240
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 0x1400be2e1
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 0x1400be2ae
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], bpl
jne 0x1400be2a0
cmp rdi, rax
je 0x1400be2be
inc esi
cmp esi, r14d
jae 0x1400be2e1
lea rdx, str.PAGE
jmp 0x1400be280
mov eax, dword [rbx + 0xc]
lea rdx, [rsp + 0x40]
mov ecx, dword [rbx + 8]
add rdx, rax
je 0x1400be2e1
test ecx, ecx
je 0x1400be2e1
lea rax, [rsp + 0x40]
mov ebp, ecx
sub rdx, rax
add rdx, r12
jmp 0x1400be2e4
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.1400be0b0
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140145cd0
add rsp, 0x1070
pop r13
pop r12
pop rbp
ret
Function at 0x1400bf060
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 [0x14017c080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1400bf17c
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x1400bf17c
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ecx, dword [rax + rdx + 0xb0]
test ecx, ecx
jne 0x1400bf0d9
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x1400bf187
lea rbx, [rdx + rcx]
mov ebp, dword [rax + rdx + 0xb4]
add rbp, rbx
mov eax, dword [rbx]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x1400bf16a
mov edx, eax
cmp rdx, rbp
jae 0x1400bf16a
mov r9d, dword [rbx + 4]
test r9d, r9d
je 0x1400bf16a
lea rax, [rdx + rsi]
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [r9 - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, r8
je 0x1400bf142
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x50], rcx
jmp 0x1400bf15e
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.1400bf960
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
mov eax, dword [rbx]
test eax, eax
jne 0x1400bf0f2
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x1400bf187
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.140145cd0
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