joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005d30
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.140005f80
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x140005e4a
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x140005d94
mov rax, qword [0x1400b6008]
cmp qword [rsp + 0x20], rax
ja 0x140005d94
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x140005d56
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400228c0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x140005dc5
jmp 0x140005e4a
cmp dword [rsp + 0x50], 0x10000
jne 0x140005e2d
cmp qword [rsp + 0x48], 0x10000
jb 0x140005e2d
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 0x140005e0b
mov rax, qword [rsp + 0x28]
jmp 0x140005e4c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x140005e1b
xor eax, eax
jmp 0x140005e4c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140005e45
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.140005f80
mov qword [rsp + 0x20], rax
jmp 0x140005d56
xor eax, eax
add rsp, 0x68
ret

Function at 0x140005e60
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.140005fc0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x140005f76
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x140005ebb
mov rax, qword [0x1400b6008]
cmp qword [rsp + 0x20], rax
ja 0x140005ebb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x140005e7d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400228c0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x140005eec
jmp 0x140005f76
cmp dword [rsp + 0x50], 0x10000
jne 0x140005f54
cmp qword [rsp + 0x48], 0x10000
jb 0x140005f54
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 0x140005f32
mov rax, qword [rsp + 0x28]
jmp 0x140005f78
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x140005f42
xor eax, eax
jmp 0x140005f78
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140005f71
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140005fc0
mov qword [rsp + 0x20], rax
jmp 0x140005e7d
xor eax, eax
add rsp, 0x68
ret
Function at 0x140006010
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.1400065a0
mov qword [rsp + 0x28], 0
cmp qword [0x1400b87e8], 0
jne 0x140006058
cmp qword [0x1400b87e0], 0
je 0x140006058
mov rax, qword [0x1400b87e0]
mov qword [0x1400b87e8], rax
cmp qword [0x1400b87e8], 0
je 0x1400060fe
mov rax, qword [0x1400b87e8]
cmp qword [rax + 0x10], 0
je 0x1400060fe
mov rax, qword [0x1400b87e8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1400060fe
mov rax, qword [0x1400b87e8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1400060fe
mov rax, qword [0x1400b87e8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1400060c4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1400060cb
xor eax, eax
jmp 0x140006275
mov rax, qword [0x1400b87e8]
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.1400228c0
mov rax, qword [rsp + 0x28]
jmp 0x140006275
mov rax, qword [0x1400b87e0]
mov qword [0x1400b87e8], rax
jmp 0x140006120
mov rax, qword [0x1400b87e8]
mov rax, qword [rax + 8]
mov qword [0x1400b87e8], rax
cmp qword [0x1400b87e8], 0
je 0x14000616d
cmp qword [0x1400b87e8], 0
je 0x14000616b
mov rax, qword [0x1400b87e8]
cmp qword [rax + 0x10], 0
je 0x14000616b
mov rax, qword [0x1400b87e8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x14000616b
mov rax, qword [0x1400b87e8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x14000616b
jmp 0x14000609c
jmp 0x14000610e
mov rax, qword [rsp + 0x60]
and rax, 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.140006280
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140006273
mov rax, qword [rsp + 0x48]
mov qword [0x1400b87e8], rax
mov rax, qword [0x1400b87e8]
mov dword [rax], 0x52727464
mov rax, qword [0x1400b87e8]
mov qword [rax + 0x10], 0
mov rax, qword [0x1400b87e8]
mov rcx, qword [0x1400b87e0]
mov qword [rax + 8], rcx
mov rax, qword [0x1400b87e8]
mov qword [0x1400b87e0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1400b87e8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x140006224
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x14000625e
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 0x14000621a
mov rax, qword [0x1400b87e8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x14000609c
xor eax, eax
add rsp, 0x58
ret
Function at 0x140006f90
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 0x140006fd7
xor al, al
jmp 0x140007079
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 0x140007001
xor al, al
jmp 0x140007079
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 0x140007071
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 0x140007071
mov al, 1
jmp 0x140007079
jmp 0x140007077
xor al, al
add rsp, 0x78
ret

Function at 0x140007380
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400b87e0]
mov qword [rsp + 0x28], rax
jmp 0x1400073a0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400073cf
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1400073cd
call sub.KERNEL32.dll_GetLastError
jmp 0x1400073d1
jmp 0x140007392
xor eax, eax
add rsp, 0x38
ret
Function at 0x140007c70
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 [0x1400b87f8], eax
je 0x140007c9d
mov eax, 0x10dd
jmp 0x140007eb6
cmp dword [0x1400b87fc], 0
je 0x140007cb1
mov eax, dword [0x1400b87fc]
jmp 0x140007eb6
cmp qword [rsp + 0x78], 0
jne 0x140007cc3
mov eax, 0x57
jmp 0x140007eb6
cmp qword [rsp + 0x70], 0
jne 0x140007cd5
mov eax, 6
jmp 0x140007eb6
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x140007d07
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x1400b87fc], eax
mov rax, qword [rsp + 0x70]
mov qword [0x1400b8800], rax
mov eax, dword [rsp + 0x20]
jmp 0x140007eb6
mov ecx, 0x30
call fcn.140020540
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140007d79
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x1400b87fc], eax
cmp qword [rsp + 0x30], 0
je 0x140007d64
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.14002057c
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x1400b8800], rax
mov eax, dword [rsp + 0x20]
jmp 0x140007eb6
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.140007c40
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.140007c40
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 0x140007dd6
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x140007df3
mov dword [rsp + 0x20], 9
cmp dword [0x1400b87f0], 0
je 0x140007dee
jmp 0x140007d3a
jmp 0x140007d30
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x140007e20
mov dword [rsp + 0x20], 9
cmp dword [0x1400b87f0], 0
je 0x140007e1b
jmp 0x140007d3a
jmp 0x140007d30
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 0x140007e57
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x140007d30
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 [0x1400b8810]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x1400b8810], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x140007ec0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1400b87f8], eax
je 0x140007edb
mov eax, 0x10dd
jmp 0x140008000
mov rax, qword [0x1400b8810]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140007f85
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 0x140007f50
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x140007f50
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.1400066e0
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.14002057c
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x140007ee7
mov qword [0x1400b8810], 0
call fcn.140007140
mov rax, qword [0x1400b8808]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140007fe9
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.14002057c
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x140007fa1
mov qword [0x1400b8808], 0
mov dword [0x1400b87f8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x140008530
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1400b87fc], 0
je 0x14000854d
mov eax, dword [0x1400b87fc]
jmp 0x140008613
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x140008560
xor eax, eax
jmp 0x140008613
mov ecx, 0x10
call fcn.140020540
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400085ce
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x1400085b3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.14002057c
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1400b87fc], eax
mov qword [0x1400b8800], 0
mov eax, dword [rsp + 0x20]
jmp 0x140008613
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1400085e8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x140008589
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1400b8808]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1400b8808], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x140008700
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x80], 0
jne 0x14000872d
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleW
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000874d
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1400088c6
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
je 0x140008784
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1400088c6
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x1400087a2
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1400088c6
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
jmp 0x1400087ce
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x1400088aa
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
lea rdx, str..detour
mov rcx, rax
call fcn.14002da20
test eax, eax
jne 0x1400088a5
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0xc], 0
je 0x140008833
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0x10], 0
jne 0x140008835
jmp 0x1400088aa
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
cmp rax, 0x40
jb 0x14000887b
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0x727444
je 0x14000887d
jmp 0x1400088aa
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x140008897
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx]
mov dword [rax + 8], ecx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
jmp 0x1400088c6
jmp 0x1400087c4
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1400088c6
add rsp, 0x78
ret
Function at 0x1400088d0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.1400228c0
jmp 0x140008918
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x140008937
jmp 0x1400089db
cmp dword [rsp + 0x68], 0x1000
jne 0x14000895c
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x14000895c
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x14000895e
jmp 0x140008903
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x140008994
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x140008994
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x140008999
jmp 0x140008903
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x140008903
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x20]
jmp 0x1400089dd
xor eax, eax
add rsp, 0x88
ret

Function at 0x140008c30
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1400228c0
nop
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x140008c7a
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140008d42
cmp dword [rsp + 0x60], 0x1000
jne 0x140008c9f
mov eax, dword [rsp + 0x64]
and eax, 0xff
cmp eax, 1
je 0x140008c9f
mov eax, dword [rsp + 0x64]
and eax, 0x100
test eax, eax
je 0x140008cb0
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140008d42
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140008cd7
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140008d42
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 0x140008d0b
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140008d42
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x140008d26
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140008d42
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
jmp 0x140008d42
add rsp, 0x78
ret
Function at 0x14001b5c0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x14001b714
cmp r9, 4
jb 0x14001b60a
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x14001b5f0
xor r11d, r11d
test r9, r9
je 0x14001b714
cmp r9, 0x40
jb 0x14001b6f3
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x14001b63c
cmp rdx, r8
jae 0x14001b6f3
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x14001b651
cmp rdx, r10
jae 0x14001b6f3
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp], rdi
mov rdi, r9
and rdi, 0xffffffffffffffc0
mov rdx, r10
lea rax, [r8 + 0x10]
sub rdx, r8
mov rbx, rcx
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
pxor xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rdi
jb 0x14001b680
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
cmp r11, r9
jae 0x14001b714
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x14001b700
add rsp, 8
ret

Function at 0x140031ae4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140031910
Function at 0x1400013b0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140073080]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r14, qword [rsp + 0x90]
xor edx, edx
mov r15, r8
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [rsp + 0x98]
test ebx, ebx
je 0x1400013fb
cmp eax, ebx
cmova eax, ebx
xor r12d, r12d
mov bpl, 1
mov dword [rsp + 0x30], r12d
mov edi, r12d
cmp eax, ebx
jbe 0x140001424
lea rdx, str.readBytesFileShare__size_is_too_few_error
lea rcx, [0x140077e88]
call fcn.140004170
xor al, al
jmp 0x14000148f
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r12
mov r8d, ebx
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000146c
mov eax, dword [rsp + 0x30]
add edi, eax
sub ebx, eax
test eax, eax
je 0x1400014b6
mov edx, edi
lea r9, [rsp + 0x30]
add rdx, r14
mov qword [rsp + 0x20], r12
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001441
lea rdx, str.readBytesFileShare_fail
lea rcx, [0x140077e88]
call fcn.140004ef0
xor bpl, bpl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bpl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140023e40
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov dword [r15], edi
jmp 0x140001482