joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800037ac
Capabilities:
Allocate or change rwx memory
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x18001ecf0], 0
je 0x180003854
and dword [0x18001ecf0], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x180003840
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 4
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180003840
mov eax, 0x1f0e
mov word [rbx + 0x40], ax
movabs rax, 0xb821cd09b4000eba
mov qword [rbx + 0x42], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rsp + 0x40]
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [0x18001ec90]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
call fcn.18000200c
add rsp, 0x30
pop rbx
ret

Function at 0x180003878
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor ecx, ecx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x180003920
movzx eax, word [rax + 0x40]
mov ecx, 0x7268
sub ax, cx
cmp ax, 0xf
ja 0x1800038b4
mov ecx, 0x8801
bt ecx, eax
jb 0x180003920
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 4
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180003920
mov eax, 0x7277
mov word [rbx + 0x40], ax
lea rax, [0x18000385c]
mov qword [rbx + 0x42], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rsp + 0x40]
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edi, 1
mov rbx, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x180003ac0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180003d10
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180003bda
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180003b24
mov rax, qword [0x18001d008]
cmp qword [rsp + 0x20], rax
ja 0x180003b24
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180003ae6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180008d50
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180003b55
jmp 0x180003bda
cmp dword [rsp + 0x50], 0x10000
jne 0x180003bbd
cmp qword [rsp + 0x48], 0x10000
jb 0x180003bbd
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180003b9b
mov rax, qword [rsp + 0x28]
jmp 0x180003bdc
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180003bab
xor eax, eax
jmp 0x180003bdc
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180003bd5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180003d10
mov qword [rsp + 0x20], rax
jmp 0x180003ae6
xor eax, eax
add rsp, 0x68
ret

Function at 0x180003bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180003d50
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180003d06
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180003c4b
mov rax, qword [0x18001d008]
cmp qword [rsp + 0x20], rax
ja 0x180003c4b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180003c0d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180008d50
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180003c7c
jmp 0x180003d06
cmp dword [rsp + 0x50], 0x10000
jne 0x180003ce4
cmp qword [rsp + 0x48], 0x10000
jb 0x180003ce4
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180003cc2
mov rax, qword [rsp + 0x28]
jmp 0x180003d08
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180003cd2
xor eax, eax
jmp 0x180003d08
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180003d01
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180003d50
mov qword [rsp + 0x20], rax
jmp 0x180003c0d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180003da0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004330
mov qword [rsp + 0x28], 0
cmp qword [0x18001da98], 0
jne 0x180003de8
cmp qword [0x18001da90], 0
je 0x180003de8
mov rax, qword [0x18001da90]
mov qword [0x18001da98], rax
cmp qword [0x18001da98], 0
je 0x180003e8e
mov rax, qword [0x18001da98]
cmp qword [rax + 0x10], 0
je 0x180003e8e
mov rax, qword [0x18001da98]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180003e8e
mov rax, qword [0x18001da98]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180003e8e
mov rax, qword [0x18001da98]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180003e54
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x180003e5b
xor eax, eax
jmp 0x180004009
mov rax, qword [0x18001da98]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.180008d50
mov rax, qword [rsp + 0x28]
jmp 0x180004009
mov rax, qword [0x18001da90]
mov qword [0x18001da98], rax
jmp 0x180003eb0
mov rax, qword [0x18001da98]
mov rax, qword [rax + 8]
mov qword [0x18001da98], rax
cmp qword [0x18001da98], 0
je 0x180003efd
cmp qword [0x18001da98], 0
je 0x180003efb
mov rax, qword [0x18001da98]
cmp qword [rax + 0x10], 0
je 0x180003efb
mov rax, qword [0x18001da98]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180003efb
mov rax, qword [0x18001da98]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180003efb
jmp 0x180003e2c
jmp 0x180003e9e
mov rcx, qword [rsp + 0x60]
call fcn.1800061a0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004010
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180004007
mov rax, qword [rsp + 0x48]
mov qword [0x18001da98], rax
mov rax, qword [0x18001da98]
mov dword [rax], 0x52727464
mov rax, qword [0x18001da98]
mov qword [rax + 0x10], 0
mov rax, qword [0x18001da98]
mov rcx, qword [0x18001da90]
mov qword [rax + 8], rcx
mov rax, qword [0x18001da98]
mov qword [0x18001da90], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18001da98]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180003fb8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180003ff2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x180003fae
mov rax, qword [0x18001da98]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x180003e2c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180004d20
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180004d67
xor al, al
jmp 0x180004e09
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x180004d91
xor al, al
jmp 0x180004e09
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x180004e01
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x180004e01
mov al, 1
jmp 0x180004e09
jmp 0x180004e07
xor al, al
add rsp, 0x78
ret

Function at 0x180005110
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18001da90]
mov qword [rsp + 0x28], rax
jmp 0x180005130
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000515f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18000515d
call sub.KERNEL32.dll_GetLastError
jmp 0x180005161
jmp 0x180005122
xor eax, eax
add rsp, 0x38
ret
Function at 0x1800057f0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x18001daa8], eax
je 0x18000581d
mov eax, 0x10dd
jmp 0x180005a36
cmp dword [0x18001daac], 0
je 0x180005831
mov eax, dword [0x18001daac]
jmp 0x180005a36
cmp qword [rsp + 0x78], 0
jne 0x180005843
mov eax, 0x57
jmp 0x180005a36
cmp qword [rsp + 0x70], 0
jne 0x180005855
mov eax, 6
jmp 0x180005a36
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x180005887
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x18001daac], eax
mov rax, qword [rsp + 0x70]
mov qword [0x18001dab0], rax
mov eax, dword [rsp + 0x20]
jmp 0x180005a36
mov ecx, 0x30
call fcn.180007950
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1800058f9
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x18001daac], eax
cmp qword [rsp + 0x30], 0
je 0x1800058e4
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.18000798c
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x18001dab0], rax
mov eax, dword [rsp + 0x20]
jmp 0x180005a36
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.1800057c0
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.1800057c0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x180005956
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x180005973
mov dword [rsp + 0x20], 9
cmp dword [0x18001daa0], 0
je 0x18000596e
jmp 0x1800058ba
jmp 0x1800058b0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x1800059a0
mov dword [rsp + 0x20], 9
cmp dword [0x18001daa0], 0
je 0x18000599b
jmp 0x1800058ba
jmp 0x1800058b0
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1800059d7
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x1800058b0
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x18001dac0]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x18001dac0], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x180005a40
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x18001daa8], eax
je 0x180005a5b
mov eax, 0x10dd
jmp 0x180005b80
mov rax, qword [0x18001dac0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180005b05
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180005ad0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180005ad0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180004470
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.18000798c
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180005a67
mov qword [0x18001dac0], 0
call fcn.180004ed0
mov rax, qword [0x18001dab8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180005b69
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.18000798c
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180005b21
mov qword [0x18001dab8], 0
mov dword [0x18001daa8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800060b0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x18001daac], 0
je 0x1800060cd
mov eax, dword [0x18001daac]
jmp 0x180006193
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x1800060e0
xor eax, eax
jmp 0x180006193
mov ecx, 0x10
call fcn.180007950
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18000614e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180006133
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.18000798c
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x18001daac], eax
mov qword [0x18001dab0], 0
mov eax, dword [rsp + 0x20]
jmp 0x180006193
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180006168
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180006109
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x18001dab8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x18001dab8], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x140002f70
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 0x140002f98
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 0x140002fbe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002fc0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003019
test ecx, ecx
jle 0x140002ff9
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 0x140003019
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003019
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 0x140003040
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 0x140003062
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140003078
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 0x140003094
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003096
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400030d2
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 0x14000316e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000310d
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 0x14000314e
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 0x14000316e
cmp rbx, rax
ja 0x140003120
test rbx, rbx
je 0x14000316e
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 0x140003590
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400035bd
xor eax, eax
jmp 0x14000371a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400035e8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1400035e8
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 0x14000371a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000370d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000362b
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 0x140003656
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 0x140003712
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 0x1400036c5
sub eax, 1
je 0x1400036c5
cmp eax, 2
jne 0x14000370d
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 0x140003712
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400036f3
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 0x14000370d
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003712
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004770
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003c20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003cf3
cmp byte [rcx + 0x71], 0
je 0x140003cf3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140003cef
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 0x140003cb4
sub eax, 1
je 0x140003cb8
cmp eax, 2
jne 0x140003cef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004770
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003ce6
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 0x140003cef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140003c9c
xor al, al
jmp 0x140003c9c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004770
add rsp, 0x60
pop rbx
ret

Function at 0x1400051ac
Capabilities:
Parse pe header

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