joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011098
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400110d6
cmp word [rcx], 0x5a4d
jne 0x1400110d6
movsxd rdx, dword [rcx + 0x3c]
cmp edx, 0x400
jg 0x1400110d6
call fcn.1400075c9
mov rcx, qword [0x1405a2f70]
mov rbx, rax
call fcn.140015130
cmp byte [rax], 0
jne 0x1400110d6
cmp dword [rbx], 0x4550
je 0x1400110d8
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140014c40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1405a2fc0]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [0x1405a2fa0]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014c78
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014c80
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140014d80
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1405a2f80]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140014da0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140014da8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140014da0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140014dfd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140014df4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140014da0
add rax, 0x28
cmp rax, r9
jne 0x140014de0
xor eax, eax
ret

Function at 0x140014e00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1405a2f80]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140014e1f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140014e28
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140014e1f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140014ec0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1405a2f80]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140014edf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140014ee8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x401550
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
sub rsp, 0x250
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1e0], rcx
mov qword [rbp + 0x1e8], rdx
mov qword [rbp + 0x1f0], r8
mov dword [rbp + 0x1f8], r9d
lea rax, [rbp - 0x50]
lea rdx, [0x00404040]
mov ecx, 0x201
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
lea rcx, str.kernel32.dll
call fcn.00401a6b
lea rdx, str.VirtualAlloc
mov rcx, rax
call fcn.00401aff
mov qword [rbp + 0x1c0], rax
lea rax, [rbp - 0x50]
mov r9d, 0x10
lea r8, [0x00404020]
mov edx, 0x201
mov rcx, rax
call fcn.004016ab
mov byte [rbp - 0x53], 0x14
mov byte [rbp - 0x52], 0x2b
mov byte [rbp - 0x51], 0x38
mov dword [rbp + 0x1cc], 0
mov eax, dword [rbp + 0x1cc]
cdqe
cmp rax, 0x200
ja 0x40164f
mov dword [rbp + 0x1c8], 0
mov eax, dword [rbp + 0x1c8]
cdqe
cmp rax, 2
ja 0x401646
mov eax, dword [rbp + 0x1cc]
cdqe
movzx edx, byte [rbp + rax - 0x50]
mov eax, dword [rbp + 0x1c8]
cdqe
movzx eax, byte [rbp + rax - 0x53]
xor edx, eax
mov eax, dword [rbp + 0x1cc]
cdqe
mov byte [rbp + rax - 0x50], dl
add dword [rbp + 0x1c8], 1
jmp 0x401607
add dword [rbp + 0x1cc], 1
jmp 0x4015ed
mov rax, qword [rbp + 0x1c0]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x201
mov ecx, 0
call rax
mov qword [rbp - 0x60], rax
mov rcx, qword [rbp - 0x60]
lea rax, [rbp - 0x50]
mov r8d, 0x201
mov rdx, rax
call sub.msvcrt.dll_memmove
mov rax, qword [rbp - 0x60]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_EnumWindows]
call rax
mov eax, 0
add rsp, 0x250
pop rbp
ret
sub rsp, 0x28
call fcn.00401da0
mov rax, qword [0x004053d0]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x004053c0]
mov r8, qword [rax]
mov rax, qword [0x004053b0]
mov rcx, qword [rax]
add rsp, 0x28
jmp 0x401550
Function at 0x4016ab
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
sub rsp, 0x140
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xd0], rcx
mov dword [rbp + 0xd8], edx
mov qword [rbp + 0xe0], r8
mov dword [rbp + 0xe8], r9d
mov dword [rbp + 0xbc], 0
cmp dword [rbp + 0xbc], 0xff
jg 0x401709
mov eax, dword [rbp + 0xbc]
mov edx, eax
mov eax, dword [rbp + 0xbc]
cdqe
mov byte [rbp + rax - 0x60], dl
add dword [rbp + 0xbc], 1
jmp 0x4016e0
mov dword [rbp + 0xb8], 0
mov dword [rbp + 0xb4], 0
cmp dword [rbp + 0xb4], 0xff
jg 0x4017b3
mov eax, dword [rbp + 0xb4]
cdqe
movzx eax, byte [rbp + rax - 0x60]
movzx eax, al
mov edx, dword [rbp + 0xb8]
lea ecx, [rax + rdx]
mov eax, dword [rbp + 0xb4]
cdq
idiv dword [rbp + 0xe8]
mov eax, edx
cdqe
mov rdx, qword [rbp + 0xe0]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
lea edx, [rcx + rax]
mov eax, edx
sar eax, 0x1f
shr eax, 0x18
add edx, eax
movzx edx, dl
sub edx, eax
mov eax, edx
mov dword [rbp + 0xb8], eax
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0xb8]
cdqe
add rdx, rax
lea rcx, [rbp - 0x60]
mov eax, dword [rbp + 0xb4]
cdqe
add rax, rcx
mov rcx, rax
call fcn.004033d0
add dword [rbp + 0xb4], 1
jmp 0x40171d
mov dword [rbp + 0xb0], 0
mov dword [rbp + 0xb8], 0
mov dword [rbp + 0xac], 0
mov eax, dword [rbp + 0xac]
cmp eax, dword [rbp + 0xd8]
jge 0x4018c5
mov eax, dword [rbp + 0xb0]
lea edx, [rax + 1]
mov eax, edx
sar eax, 0x1f
shr eax, 0x18
add edx, eax
movzx edx, dl
sub edx, eax
mov eax, edx
mov dword [rbp + 0xb0], eax
mov eax, dword [rbp + 0xb0]
cdqe
movzx eax, byte [rbp + rax - 0x60]
movzx eax, al
mov edx, dword [rbp + 0xb8]
add edx, eax
mov eax, edx
sar eax, 0x1f
shr eax, 0x18
add edx, eax
movzx edx, dl
sub edx, eax
mov eax, edx
mov dword [rbp + 0xb8], eax
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0xb8]
cdqe
add rdx, rax
lea rcx, [rbp - 0x60]
mov eax, dword [rbp + 0xb0]
cdqe
add rax, rcx
mov rcx, rax
call fcn.004033d0
mov eax, dword [rbp + 0xb0]
cdqe
movzx edx, byte [rbp + rax - 0x60]
mov eax, dword [rbp + 0xb8]
cdqe
movzx eax, byte [rbp + rax - 0x60]
add eax, edx
movzx eax, al
mov dword [rbp + 0xa8], eax
mov eax, dword [rbp + 0xac]
cdqe
mov rdx, qword [rbp + 0xd0]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp + 0xa8]
cdqe
movzx ecx, byte [rbp + rax - 0x60]
mov eax, dword [rbp + 0xac]
cdqe
mov rdx, qword [rbp + 0xd0]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
add dword [rbp + 0xac], 1
jmp 0x4017d1
nop
add rsp, 0x140
pop rbp
ret
Function at 0x401aff
Capabilities:
Parse pe header

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov qword [rbp + 0xf8], rdx
mov rax, qword [rbp + 0xf0]
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x401b53
mov eax, 0
jmp 0x401cd8
mov rax, qword [rbp + 0xc8]
mov eax, dword [rax + 0x3c]
cdqe
mov rdx, qword [rbp + 0xd0]
add rax, rdx
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp + 0xc0]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x401b8a
mov eax, 0
jmp 0x401cd8
mov rdx, qword [rbp + 0xc0]
lea rax, [rbp - 0x60]
add rdx, 0x18
mov ecx, 0xf0
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov eax, dword [rbp + 0x10]
mov edx, eax
mov rax, qword [rbp + 0xd0]
add rax, rdx
mov qword [rbp + 0xb8], rax
mov rax, qword [rbp + 0xb8]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp + 0xd0]
add rax, rdx
mov qword [rbp + 0xb0], rax
mov rax, qword [rbp + 0xb8]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 0xd0]
add rax, rdx
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xb8]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0xd0]
add rax, rdx
mov qword [rbp + 0xa0], rax
mov dword [rbp + 0xdc], 0
mov rax, qword [rbp + 0xb8]
mov eax, dword [rax + 0x14]
cmp dword [rbp + 0xdc], eax
jae 0x401cd3
mov eax, dword [rbp + 0xdc]
lea rdx, [rax*4]
mov rax, qword [rbp + 0xb0]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0xd0]
add rax, rdx
mov qword [rbp + 0x98], rax
mov eax, dword [rbp + 0xdc]
lea rdx, [rax + rax]
mov rax, qword [rbp + 0xa0]
add rax, rdx
movzx eax, word [rax]
movzx eax, ax
lea rdx, [rax*4]
mov rax, qword [rbp + 0xa8]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0xd0]
add rax, rdx
mov qword [rbp + 0x90], rax
mov rdx, qword [rbp + 0x98]
mov rax, qword [rbp + 0xf8]
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x401cc7
mov rax, qword [rbp + 0x90]
jmp 0x401cd8
add dword [rbp + 0xdc], 1
jmp 0x401c20
mov eax, 0
add rsp, 0x160
pop rbp
ret
Function at 0x402210
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402398
mov rax, qword [0x00408628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40225c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4022e5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x402240
mov rcx, rbx
call fcn.00402eb0
test rax, rax
mov r12, rax
je 0x4023cd
mov rax, qword [0x00408628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00402fe0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4023b0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4022de
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402340
add dword [0x00408624], 1
cmp edi, 8
jae 0x402313
test dil, 4
jne 0x402384
test edi, edi
je 0x402308
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40239f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x402308
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40232c
jmp 0x402308
add rsi, qword [0x00408628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4022de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00403460
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x402308
xor esi, esi
jmp 0x402267
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x402308
mov rax, qword [0x00408628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00403460
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00403460
nop
nop dword [rax]

Function at 0x402b20
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x402b74
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x402b6b
test rsi, rsi
je 0x402b6b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402b50
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402eb0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405360]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402f1d
mov rcx, r8
call fcn.00402d90
test eax, eax
je 0x402f1d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402f1d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402f14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402f1f
add rax, 0x28
cmp rax, r9
jne 0x402f00
xor eax, eax
add rsp, 0x28
ret

Function at 0x403420
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
sub rsp, 0x250
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1e0], rcx
mov qword [rbp + 0x1e8], rdx
mov qword [rbp + 0x1f0], r8
mov dword [rbp + 0x1f8], r9d
lea rax, [rbp - 0x50]
lea rdx, [0x00404040]
mov ecx, 0x201
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
lea rcx, str.kernel32.dll
call fcn.00401a6b
lea rdx, str.VirtualAlloc
mov rcx, rax
call fcn.00401aff
mov qword [rbp + 0x1c0], rax
lea rax, [rbp - 0x50]
mov r9d, 0x10
lea r8, [0x00404020]
mov edx, 0x201
mov rcx, rax
call fcn.004016ab
mov byte [rbp - 0x53], 0x14
mov byte [rbp - 0x52], 0x2b
mov byte [rbp - 0x51], 0x38
mov dword [rbp + 0x1cc], 0
mov eax, dword [rbp + 0x1cc]
cdqe
cmp rax, 0x200
ja 0x40164f
mov dword [rbp + 0x1c8], 0
mov eax, dword [rbp + 0x1c8]
cdqe
cmp rax, 2
ja 0x401646
mov eax, dword [rbp + 0x1cc]
cdqe
movzx edx, byte [rbp + rax - 0x50]
mov eax, dword [rbp + 0x1c8]
cdqe
movzx eax, byte [rbp + rax - 0x53]
xor edx, eax
mov eax, dword [rbp + 0x1cc]
cdqe
mov byte [rbp + rax - 0x50], dl
add dword [rbp + 0x1c8], 1
jmp 0x401607
add dword [rbp + 0x1cc], 1
jmp 0x4015ed
mov rax, qword [rbp + 0x1c0]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x201
mov ecx, 0
call rax
mov qword [rbp - 0x60], rax
mov rcx, qword [rbp - 0x60]
lea rax, [rbp - 0x50]
mov r8d, 0x201
mov rdx, rax
call sub.msvcrt.dll_memmove
mov rax, qword [rbp - 0x60]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_EnumWindows]
call rax
mov eax, 0
add rsp, 0x250
pop rbp
ret
sub rsp, 0x28
call fcn.00401da0
mov rax, qword [0x004053d0]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x004053c0]
mov r8, qword [rax]
mov rax, qword [0x004053b0]
mov rcx, qword [rax]
add rsp, 0x28
jmp 0x401550

Function at 0x403460
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00403270
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00403270
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x14000d960
Capabilities:
Create thread
Encode data using xor
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14008e080]
xor rax, rsp
mov qword [rbp + 0x47], rax
lea rcx, [0x1401403f0]
call fcn.14001ad60
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
movdqa xmm1, xmmword [0x140083300]
movdqu xmmword [rbp + 0x37], xmm1
mov byte [rbp + 0x27], 0
xor ebx, ebx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8, [0x140006e50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0x2ee
mov edx, 0x64
mov r9d, 0x5dc
mov r8d, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_MoveWindow]
mov dword [rbp - 9], 0x7868757f
mov dword [rbp - 5], 0x444b3f6c
mov dword [rbp - 1], 0x2f04195b
mov word [rbp + 3], 0x100
nop dword [rax + rax]
lea eax, [rbx + 0x1a]
xor byte [rbp + rbx - 9], al
inc rbx
cmp rbx, 0xc
jb 0x14000da10
mov byte [rbp + 4], 0
lea rcx, [rbp - 9]
call fcn.140001a20
lea rdx, [rbp + 0x27]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.14000f240
lea rdx, [rbp + 0x27]
lea rcx, [rbp + 7]
call fcn.140004470
mov rdx, rax
lea rcx, [0x1401403f0]
call fcn.14001c580
cmp byte [0x140140600], 0
jne 0x14000da6e
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.14000d1a0
int3

Function at 0x14000e060
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.0x14000e081
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 0x14000e0ae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000e0b0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000e109
test ecx, ecx
jle 0x14000e0e9
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 0x14000e109
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000e109
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 [rbx], bh
invalid
Function at 0x14000e130
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 0x14000e152
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14000e161
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 0x14000e184
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000e186
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000e1c2
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 0x14000e25e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000e1fd
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 0x14000e23e
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 0x14000e25e
cmp rbx, rax
ja 0x14000e210
test rbx, rbx
je 0x14000e25e
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
mov ebx, dword [rbp + 0x10]
test ebx, ebx
je 0x1400fff68
push rsi
xor esi, esi
cmp dword [rdi], eax
jle 0x1400fff41
mov dword [rbp - 4], eax
jmp 0x1400ffef0
push 0x42c52c
push qword [rbx + rsi*4]
call 0x140102374
add esp, 8
test eax, eax
je 0x1400fff1f
push 0x42c538
push qword [rbx + rsi*4]
call 0x140102374
add esp, 8
test eax, eax
je 0x1400fff1f
cmp r14d, dword [rdi]
jl 0x1400ffef0
jmp 0x1400fff41
mov eax, dword [rdi]
mov qword [rbp - 4], 1
add byte [rax], al
add byte [rbx], bh
invalid
jge 0x1400fff3f
lea ecx, [rcx]
mov eax, dword [rbx + rsi*4 + 4]
mov dword [rbx + rsi*4], eax
mov r8d, dword [rdi]
cmp rsi, rax
jl 0x1400fff30
dec dword [rdi]
mov ebx, dword [rbp - 4]
push rbx
push qword [rbp + 8]
call 0x140100010
add esp, 8
mov ecx, 1
test eax, eax
cmovne ebx, ecx
xor eax, eax
pop rsi
test ebx, ebx
pop rdi
setne al
pop rbx
mov esp, ebp
pop rbp
ret
push 0
push 0
push qword [rbp + 8]
call 0x1401002f0
add esp, 0xc
pop rdi
pop rbx
mov esp, ebp
pop rbp
ret
Function at 0x14000e6d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14008e080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000e6fd
xor eax, eax
jmp 0x14000e869
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000e737
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000e737
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 0x14000e869
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000e85c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000e77a
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 0x14000e7a5
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 0x14000e861
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 0x14000e814
sub eax, 1
je 0x14000e814
cmp eax, 2
jne 0x14000e85c
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 0x14000e861
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000e842
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 0x14000e85c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000e861
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140070450
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret