joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001ef0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push r14
sub rsp, 0x20
mov r10, r8
xor r9d, r9d
mov r8d, dword [rcx]
mov r14, rcx
lea eax, [r8*4]
test eax, eax
je 0x140001f2c
nop
movzx eax, byte [r9 + rdx]
mov byte [r10 + r9], al
inc r9d
mov r8d, dword [rcx]
lea eax, [r8*4]
cmp r9d, eax
jb 0x140001f10
mov eax, dword [rcx + 4]
lea r9d, [r8*4]
inc eax
shl eax, 4
cmp r9d, eax
jae 0x1400020ad
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 8], r12
lea r12, str.cw
mov qword [rsp], r15
lea r15d, [r9 + 2]
nop dword [rax]
mov ebp, dword [r14]
lea eax, [r9 - 4]
movzx r8d, byte [rax + r10]
xor edx, edx
lea eax, [r9 - 3]
movzx r11d, r8b
movzx ebx, byte [rax + r10]
lea eax, [r9 - 2]
movzx edi, byte [rax + r10]
lea eax, [r9 - 1]
movzx esi, byte [rax + r10]
mov eax, r9d
shr eax, 2
div ebp
test edx, edx
jne 0x140001ffb
movzx r11d, byte [rbx + r12]
xor edx, edx
movzx ebx, byte [rdi + r12]
mov eax, r9d
movzx edi, byte [rsi + r12]
mov cl, 1
movzx esi, byte [r8 + r12]
lea r8d, [rbp*4]
div r8d
sub eax, 1
je 0x140001ff6
mov r8d, eax
nop word [rax + rax]
movzx eax, cl
add cl, cl
shr al, 7
movzx eax, al
imul edx, eax, 0x1b
xor cl, dl
sub r8, 1
jne 0x140001fe0
xor r11b, cl
jmp 0x140002019
cmp ebp, 6
jbe 0x140002019
cmp edx, 4
jne 0x140002019
movzx r11d, byte [r8 + r12]
movzx ebx, byte [rbx + r12]
movzx edi, byte [rdi + r12]
movzx esi, byte [rsi + r12]
mov ecx, r9d
lea eax, [rbp*4]
sub ecx, eax
xor r11b, byte [rcx + r10]
mov ecx, r9d
mov byte [r9 + r10], r11b
mov eax, dword [r14]
shl eax, 2
sub ecx, eax
lea eax, [r15 - 1]
inc ecx
xor bl, byte [rcx + r10]
mov ecx, r9d
mov byte [rax + r10], bl
mov eax, dword [r14]
shl eax, 2
sub ecx, eax
add ecx, 2
xor dil, byte [rcx + r10]
mov ecx, r9d
mov byte [r15 + r10], dil
add r9d, 4
mov eax, dword [r14]
shl eax, 2
sub ecx, eax
lea eax, [r15 + 1]
add ecx, 3
add r15d, 4
xor sil, byte [rcx + r10]
mov byte [rax + r10], sil
mov eax, dword [r14 + 4]
inc eax
shl eax, 4
cmp r9d, eax
jb 0x140001f70
mov r15, qword [rsp]
mov r12, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400038a4
Capabilities:
Parse pe header

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

Function at 0x140003ee0
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.140004130
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x140003ffa
mov rax, qword [0x14002c070]
cmp qword [rsp + 0x20], rax
jb 0x140003f44
mov rax, qword [0x14002c078]
cmp qword [rsp + 0x20], rax
ja 0x140003f44
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x140003f06
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14001d3a0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x140003f75
jmp 0x140003ffa
cmp dword [rsp + 0x50], 0x10000
jne 0x140003fdd
cmp qword [rsp + 0x48], 0x10000
jb 0x140003fdd
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 0x140003fbb
mov rax, qword [rsp + 0x28]
jmp 0x140003ffc
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x140003fcb
xor eax, eax
jmp 0x140003ffc
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140003ff5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.140004130
mov qword [rsp + 0x20], rax
jmp 0x140003f06
xor eax, eax
add rsp, 0x68
ret
Function at 0x140004010
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.140004170
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x140004126
mov rax, qword [0x14002c070]
cmp qword [rsp + 0x20], rax
jb 0x14000406b
mov rax, qword [0x14002c078]
cmp qword [rsp + 0x20], rax
ja 0x14000406b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x14000402d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14001d3a0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x14000409c
jmp 0x140004126
cmp dword [rsp + 0x50], 0x10000
jne 0x140004104
cmp qword [rsp + 0x48], 0x10000
jb 0x140004104
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 0x1400040e2
mov rax, qword [rsp + 0x28]
jmp 0x140004128
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1400040f2
xor eax, eax
jmp 0x140004128
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140004121
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140004170
mov qword [rsp + 0x20], rax
jmp 0x14000402d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1400041c0
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.140004750
mov qword [rsp + 0x28], 0
cmp qword [0x14002d1a0], 0
jne 0x140004208
cmp qword [0x14002d198], 0
je 0x140004208
mov rax, qword [0x14002d198]
mov qword [0x14002d1a0], rax
cmp qword [0x14002d1a0], 0
je 0x1400042ae
mov rax, qword [0x14002d1a0]
cmp qword [rax + 0x10], 0
je 0x1400042ae
mov rax, qword [0x14002d1a0]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1400042ae
mov rax, qword [0x14002d1a0]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1400042ae
mov rax, qword [0x14002d1a0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x140004274
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x14000427b
xor eax, eax
jmp 0x140004425
mov rax, qword [0x14002d1a0]
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.14001d3a0
mov rax, qword [rsp + 0x28]
jmp 0x140004425
mov rax, qword [0x14002d198]
mov qword [0x14002d1a0], rax
jmp 0x1400042d0
mov rax, qword [0x14002d1a0]
mov rax, qword [rax + 8]
mov qword [0x14002d1a0], rax
cmp qword [0x14002d1a0], 0
je 0x14000431d
cmp qword [0x14002d1a0], 0
je 0x14000431b
mov rax, qword [0x14002d1a0]
cmp qword [rax + 0x10], 0
je 0x14000431b
mov rax, qword [0x14002d1a0]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x14000431b
mov rax, qword [0x14002d1a0]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x14000431b
jmp 0x14000424c
jmp 0x1400042be
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.140004430
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140004423
mov rax, qword [rsp + 0x48]
mov qword [0x14002d1a0], rax
mov rax, qword [0x14002d1a0]
mov dword [rax], 0x52727464
mov rax, qword [0x14002d1a0]
mov qword [rax + 0x10], 0
mov rax, qword [0x14002d1a0]
mov rcx, qword [0x14002d198]
mov qword [rax + 8], rcx
mov rax, qword [0x14002d1a0]
mov qword [0x14002d198], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x14002d1a0]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1400043d4
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x14000440e
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 0x1400043ca
mov rax, qword [0x14002d1a0]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x14000424c
xor eax, eax
add rsp, 0x58
ret
Function at 0x140005140
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 0x140005187
xor al, al
jmp 0x140005229
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 0x1400051b1
xor al, al
jmp 0x140005229
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 0x140005221
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 0x140005221
mov al, 1
jmp 0x140005229
jmp 0x140005227
xor al, al
add rsp, 0x78
ret

Function at 0x140005530
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14002d198]
mov qword [rsp + 0x28], rax
jmp 0x140005550
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14000557f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x14000557d
call sub.KERNEL32.dll_GetLastError
jmp 0x140005581
jmp 0x140005542
xor eax, eax
add rsp, 0x38
ret
Function at 0x140005e20
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x14002d1b0], eax
je 0x140005e3b
mov eax, 0x10dd
jmp 0x140005f60
mov rax, qword [0x14002d1c8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140005ee5
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 0x140005eb0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x140005eb0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.140004890
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.140002e40
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x140005e47
mov qword [0x14002d1c8], 0
call fcn.1400052f0
mov rax, qword [0x14002d1c0]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140005f49
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.140002e40
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x140005f01
mov qword [0x14002d1c0], 0
mov dword [0x14002d1b0], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x140006490
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x14002d1b4], 0
je 0x1400064ad
mov eax, dword [0x14002d1b4]
jmp 0x140006573
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x1400064c0
xor eax, eax
jmp 0x140006573
mov ecx, 0x10
call fcn.140002e48
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14000652e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x140006513
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.140002e40
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x14002d1b4], eax
mov qword [0x14002d1b8], 0
mov eax, dword [rsp + 0x20]
jmp 0x140006573
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x140006548
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x1400064e9
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x14002d1c0]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x14002d1c0], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x140006660
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 0x14000668d
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 0x1400066ad
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140006826
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 0x1400066e4
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140006826
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x140006702
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140006826
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 0x14000672e
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 0x14000680a
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.140010af0
test eax, eax
jne 0x140006805
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0xc], 0
je 0x140006793
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0x10], 0
jne 0x140006795
jmp 0x14000680a
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 0x1400067db
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0x727444
je 0x1400067dd
jmp 0x14000680a
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x1400067f7
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 0x140006826
jmp 0x140006724
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140006826
add rsp, 0x78
ret
Function at 0x140006830
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.14001d3a0
jmp 0x140006878
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 0x140006897
jmp 0x14000693b
cmp dword [rsp + 0x68], 0x1000
jne 0x1400068bc
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x1400068bc
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x1400068be
jmp 0x140006863
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x1400068f4
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x1400068f4
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x1400068f9
jmp 0x140006863
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 0x140006863
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x20]
jmp 0x14000693d
xor eax, eax
add rsp, 0x88
ret

Function at 0x140006b90
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.14001d3a0
nop
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x140006bda
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140006ca2
cmp dword [rsp + 0x60], 0x1000
jne 0x140006bff
mov eax, dword [rsp + 0x64]
and eax, 0xff
cmp eax, 1
je 0x140006bff
mov eax, dword [rsp + 0x64]
and eax, 0x100
test eax, eax
je 0x140006c10
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140006ca2
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140006c37
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140006ca2
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 0x140006c6b
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140006ca2
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x140006c86
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140006ca2
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
jmp 0x140006ca2
add rsp, 0x78
ret
Function at 0x140010140
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400101af
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400101af
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400101af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400101af
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400101af
cmp dword [rcx + 0x84], 0xe
jbe 0x1400101af
cmp dword [rcx + 0xf8], 0
je 0x1400101af
mov ecx, ebx
call fcn.140010260
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001003c
nop
cmp dword [rbp + 0x20], 0
je 0x1400101fd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140010208
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140010140

Function at 0x140010344
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140010140
Function at 0x1400153c4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400153f4
xor eax, eax
jmp 0x1400154b7
mov rbp, rbx
cmp word [rax], si
je 0x140015419
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140015400
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400153fc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400152e4
movsxd r14, eax
test eax, eax
jne 0x140015457
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400153ed
mov rcx, r14
call fcn.140011ac0
mov rdi, rax
test rax, rax
jne 0x140015470
xor ecx, ecx
call fcn.140010e48
jmp 0x14001544c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400152e4
test eax, eax
jne 0x1400154a1
mov rcx, rdi
call fcn.140010e48
jmp 0x1400154ab
xor ecx, ecx
call fcn.140010e48
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14001969c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400196b2
mov al, 1
jmp 0x140019712
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400196c3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140019710
mov ecx, dword [rcx + 0x18]
nop
call fcn.140015c2c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140019710
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140019710
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140019710
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140019712
xor al, al
add rsp, 0x20
pop rbx
ret