joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4cff90
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d1070
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d0992
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f3108]
test eax, eax
je 0x2fc4d0a2a
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f3110]
mov qword [rbp - 8], rax
jmp 0x2fc4d0a0e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d0a02
cmp qword [rbp - 0x10], 0
je 0x2fc4d0a02
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d09c8
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d0a2b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d0b30
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d0b58
mov eax, 0
jmp 0x2fc4d0ba6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d0b81
mov eax, 0
jmp 0x2fc4d0ba6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d0ba1
mov eax, 0
jmp 0x2fc4d0ba6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d0bac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d0c2a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d0c21
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d0c21
mov rax, qword [rbp - 8]
jmp 0x2fc4d0c3f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d0bf4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d8be0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d9cc0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d95e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fc108]
test eax, eax
je 0x2fc4d967a
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fc110]
mov qword [rbp - 8], rax
jmp 0x2fc4d965e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d9652
cmp qword [rbp - 0x10], 0
je 0x2fc4d9652
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d9618
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d967b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d9780
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d97a8
mov eax, 0
jmp 0x2fc4d97f6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d97d1
mov eax, 0
jmp 0x2fc4d97f6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d97f1
mov eax, 0
jmp 0x2fc4d97f6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d97fc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d987a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d9871
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d9871
mov rax, qword [rbp - 8]
jmp 0x2fc4d988f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d9844
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140047490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400474a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140026e10
jmp 0x14000123c
mov rax, qword [0x1400474a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400474a0]
mov dword [rax], 1
mov rax, qword [0x1400474e0]
mov rdx, rax
mov rax, qword [0x1400474d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x14004b024], 1
mov rax, qword [0x1400474a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400474c0]
mov rdx, rax
mov rax, qword [0x1400474b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400474a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140047490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400473e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400473e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140026098
mov rax, qword [0x140047520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140047480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140025890
mov eax, dword [0x14004b004]
lea rdx, [0x14004b008]
mov ecx, eax
call fcn.14000147c
call fcn.140025627
mov rax, qword [0x140047410]
mov rax, qword [rax]
mov rdx, qword [0x14004b010]
mov qword [rax], rdx
mov rcx, qword [0x14004b010]
mov rdx, qword [0x14004b008]
mov eax, dword [0x14004b004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14004b01c], eax
mov eax, dword [0x14004b020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14004b01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x14004b024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14004b01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140047440]
mov dword [rax], 1
mov rax, qword [0x140047450]
mov dword [rax], 1
mov rax, qword [0x140047460]
mov dword [rax], 1
mov rax, qword [0x140047400]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400258a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140026c00
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x140026572
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14004b168]
test eax, eax
je 0x14002660a
lea rax, [0x14004b140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14004b170]
mov qword [rbp - 8], rax
jmp 0x1400265ee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400265e2
cmp qword [rbp - 0x10], 0
je 0x1400265e2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400265a8
lea rax, [0x14004b140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002660b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140026710
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140026738
mov eax, 0
jmp 0x140026786
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140026761
mov eax, 0
jmp 0x140026786
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140026781
mov eax, 0
jmp 0x140026786
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14002678c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14002680a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140026801
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140026801
mov rax, qword [rbp - 8]
jmp 0x14002681f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400267d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140010770
Capabilities:
Access pe header
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x20], 1
mov rdx, qword [rsp + 0x50]
lea rcx, str.Remapping_image_at_0x_IX_n
call fcn.140010060
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400107e8
mov rdx, qword [rsp + 0x50]
lea rcx, [0x1400203a0]
call fcn.140010060
mov dword [rsp + 0x20], 0
jmp 0x1400108f6
mov rcx, qword [rsp + 0x30]
call fcn.140010940
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140010813
lea rcx, str.RmppVerifyPeSectionAlignment_failed._n
call fcn.140010060
jmp 0x1400108f6
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x50]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140010864
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.VirtualAlloc_failed:__u_n
call fcn.140010060
mov dword [rsp + 0x20], 0
jmp 0x1400108f6
mov rdx, qword [rsp + 0x28]
lea rcx, str.RemapRegion:____0x_IX_n
call fcn.140010060
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.140010b10
lea rax, [0x140010c80]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
sub rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
lea rcx, str.RemapRoutine:___0x_IX_n
call fcn.140010060
mov rcx, qword [rsp + 0x28]
call qword [rsp + 0x38]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1400108d5
lea rcx, str.RmppRemapImageRoutine_failed._n
call fcn.140010060
jmp 0x1400108f6
mov rcx, qword [rsp + 0x50]
call fcn.140011200
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1400108f6
lea rcx, str.RmppValidateRemappedImageProtection_failed._n
call fcn.140010060
cmp qword [rsp + 0x28], 0
je 0x140010929
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
jne 0x140010929
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.VirtualFree_failed:__u_n
call fcn.140010060
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x140010940
Capabilities:
Enumerate pe sections
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x34], 1
lea rcx, str.Verifying_pe_section_alignment:_n
call fcn.140010060
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [rsp + 0x90]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x90]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x48], rax
xor eax, eax
mov word [rsp + 0x30], ax
jmp 0x1400109c3
movzx eax, word [rsp + 0x30]
inc ax
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
mov rcx, qword [rsp + 0x90]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x140010aad
movzx eax, word [rsp + 0x30]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x90]
add rax, qword [rcx + 0x30]
mov qword [rsp + 0x38], rax
movzx eax, word [rsp + 0x30]
imul rax, rax, 0x28
movzx ecx, word [rsp + 0x30]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rdx + rcx + 8]
mov rdx, qword [rsp + 0x38]
add rdx, rcx
mov rcx, rdx
movzx edx, word [rsp + 0x30]
imul rdx, rdx, 0x28
mov rdi, qword [rsp + 0x48]
add rdi, rdx
mov rdx, rdi
mov rdi, qword [rsp + 0x48]
mov eax, dword [rdi + rax + 8]
mov dword [rsp + 0x20], eax
mov r9, rcx
mov r8, qword [rsp + 0x38]
lea rcx, str.______8.8s____0x_IX___0x_IX___0x_08X_n
call fcn.140010060
mov eax, dword [rsp + 0x78]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x38]
and rcx, rax
mov rax, rcx
test rax, rax
jne 0x140010a7c
mov dword [rsp + 0x40], 1
jmp 0x140010a84
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x140010aa8
mov rdx, qword [rsp + 0x38]
lea rcx, [0x140020500]
call fcn.140010060
jmp 0x140010afe
jmp 0x1400109b6
mov eax, dword [rsp + 0x78]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x30]
and rcx, rax
mov rax, rcx
test rax, rax
jne 0x140010ad6
mov dword [rsp + 0x44], 1
jmp 0x140010ade
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x140010afe
mov rdx, qword [rsp + 0x38]
lea rcx, str.Unexpected_section_alignment.__SectionBase__0x_IX__n
call fcn.140010060
mov eax, dword [rsp + 0x34]
add rsp, 0x80
pop rdi
ret
Function at 0x140010b10
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x70]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x38], rax
xor eax, eax
mov word [rsp + 0x30], ax
jmp 0x140010b6e
movzx eax, word [rsp + 0x30]
inc ax
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x140010c66
movzx eax, word [rsp + 0x30]
imul rax, rax, 0x28
movzx ecx, word [rsp + 0x30]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rdx + rcx + 0xc]
mov rdx, qword [rsp + 0x78]
add rdx, rcx
mov rcx, rdx
movzx edx, word [rsp + 0x30]
imul rdx, rdx, 0x28
mov r8, qword [rsp + 0x38]
mov edx, dword [r8 + rdx + 0xc]
mov r8, qword [rsp + 0x40]
add r8, rdx
mov rdx, r8
movzx r8d, word [rsp + 0x30]
imul r8, r8, 0x28
mov r9, qword [rsp + 0x38]
add r9, r8
mov r8, r9
mov qword [rsp + 0x48], r8
mov r9, qword [rsp + 0x38]
mov eax, dword [r9 + rax + 8]
mov dword [rsp + 0x20], eax
mov r9, rcx
mov r8, rdx
mov rax, qword [rsp + 0x48]
mov rdx, rax
lea rcx, str.Copying___8.8s_from_0x_IX_to_0x_IX___0x_08X_n
call fcn.140010060
movzx eax, word [rsp + 0x30]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 8]
movzx ecx, word [rsp + 0x30]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rdx + rcx + 0xc]
mov rdx, qword [rsp + 0x40]
add rdx, rcx
mov rcx, rdx
movzx edx, word [rsp + 0x30]
imul rdx, rdx, 0x28
mov r8, qword [rsp + 0x38]
mov edx, dword [r8 + rdx + 0xc]
mov r8, qword [rsp + 0x78]
add r8, rdx
mov rdx, r8
mov rdi, rdx
mov rsi, rcx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
jmp 0x140010b61
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x40]
mov ecx, 0x1000
rep movsb byte [rdi], byte [rsi]
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x1400110f0
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x54], 1
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], 0x400000
mov dword [rsp + 0x38], 2
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x68]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400111ef
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov edx, dword [rsp + 0x50]
lea rcx, str.NtMapViewOfSection_failed:_0x_X__Base__0x_IX__Offset__0x_IX__Size__0x_IX__n
call fcn.140010060
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0x54]
add rsp, 0x70
pop rdi
ret

Function at 0x140011200
Capabilities:
Access pe header
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x24], 1
lea rcx, str.Validating_remapped_image_protection._n
call fcn.140010060
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14001126a
mov rdx, qword [rsp + 0x50]
lea rcx, str.RtlImageNtHeader_failed.__BaseAddress__0x_IX__n
call fcn.140010060
mov dword [rsp + 0x24], 0
jmp 0x14001130d
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x30], rax
xor eax, eax
mov word [rsp + 0x20], ax
jmp 0x140011298
movzx eax, word [rsp + 0x20]
inc ax
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x1400112ec
movzx eax, word [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140011320
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x1400112ea
lea rcx, [0x140020768]
call fcn.140010060
jmp 0x14001130d
jmp 0x14001128b
mov rcx, qword [rsp + 0x50]
call fcn.140011320
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x14001130d
lea rcx, str.RmppValidateRemappedPeSectionProtection_failed._n
call fcn.140010060
mov eax, dword [rsp + 0x24]
add rsp, 0x48
ret