joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140103c74
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov rdi, rcx
xor ebx, ebx
mov qword [rax - 0x18], rbx
mov r14, qword [0x140255e60]
and qword [rax + 8], rbx
xor esi, esi
mov eax, dword [0x14024e540]
test eax, eax
je 0x140103cc0
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14024e540]
test eax, eax
jne 0x140103cc9
call fcn.140016d20
test eax, eax
je 0x140103ce5
lea rdx, [rsp + 0x40]
mov rcx, qword [0x1402464c0]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140103cf0
xor eax, eax
jmp 0x140103d74
test r14, r14
jne 0x140103d0d
lea rcx, str.CreatePropertySheetPageW
call fcn.140103f70
test rax, rax
je 0x140103d3f
mov qword [0x140255e60], rax
mov eax, dword [rdi + 4]
mov ecx, 0x4000
test ecx, eax
jne 0x140103d2e
cmp dword [rdi], 0x60
jb 0x140103d2e
or eax, ecx
mov dword [rdi + 4], eax
mov rax, qword [0x1402464c0]
mov qword [rdi + 0x58], rax
mov rcx, rdi
call qword [0x140255e60]
mov rbx, rax
mov qword [rsp + 0x20], rax
xor edi, edi
test rbx, rbx
sete dil
test edi, edi
je 0x140103d56
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140103d58
xor esi, esi
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x140103d71
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140103d8c
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x140255e68]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14024e540]
test eax, eax
je 0x140103dd7
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14024e540]
test eax, eax
jne 0x140103de0
call fcn.140016d20
test eax, eax
je 0x140103dfc
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402464c0]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140103e04
xor eax, eax
jmp 0x140103e61
test rbx, rbx
jne 0x140103e24
lea rcx, str.DestroyPropertySheetPage
call fcn.140103f70
mov rbx, rax
test rax, rax
je 0x140103e2f
mov qword [0x140255e68], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x140103e44
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140103e46
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140103e5f
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140103e78
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
or rdi, 0xffffffffffffffff
mov qword [rax - 0x18], rdi
mov rbx, qword [0x140255e70]
and qword [rax + 0x10], 0
xor esi, esi
mov eax, dword [0x14024e540]
test eax, eax
je 0x140103ec7
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14024e540]
test eax, eax
jne 0x140103ed0
call fcn.140016d20
test eax, eax
je 0x140103eec
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402464c0]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140103ef6
or rax, 0xffffffffffffffff
jmp 0x140103f58
test rbx, rbx
jne 0x140103f16
lea rcx, str.PropertySheetW
call fcn.140103f70
mov rbx, rax
test rax, rax
je 0x140103f23
mov qword [0x140255e70], rax
mov rcx, r14
call rbx
mov rdi, rax
mov qword [rsp + 0x20], rax
xor ebx, ebx
cmp rdi, 0xffffffffffffffff
sete bl
test ebx, ebx
je 0x140103f3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140103f3c
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140103f55
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140138d64
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x140256d28]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14024e540]
test eax, eax
je 0x140138daf
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14024e540]
test eax, eax
jne 0x140138db8
call fcn.140016d20
test eax, eax
je 0x140138dd4
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402464c0]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140138ddc
xor eax, eax
jmp 0x140138e39
test rbx, rbx
jne 0x140138dfc
lea rcx, str.ChooseColorW
call fcn.14003237c
mov rbx, rax
test rax, rax
je 0x140138e07
mov qword [0x140256d28], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x140138e1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140138e1e
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140138e37
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140182b88
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1402580c0]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14024e540]
test eax, eax
je 0x140182bd3
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14024e540]
test eax, eax
jne 0x140182bdc
call fcn.140016d20
test eax, eax
je 0x140182bf8
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402464c0]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140182c00
xor eax, eax
jmp 0x140182c5d
test rbx, rbx
jne 0x140182c20
lea rcx, str.PrintDlgW
call fcn.14003237c
mov rbx, rax
test rax, rax
je 0x140182c2b
mov qword [0x1402580c0], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x140182c40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140182c42
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140182c5b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1401854d8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140185340
Function at 0x140f60a80
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f60a8a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f60ab3
pop rbp
sub rbp, 0x33
sub rbp, 0xf60a80
sub rsp, 0x20
jmp 0x140f60ad2
mov rax, 0xf60a80
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x4e6471d
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f60af1
jmp 0x140f60b08
push rbp
xchg esp, eax
hlt
Function at 0x1800873fc
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 0x18008742c
xor eax, eax
jmp 0x1800874ef
mov rbp, rbx
cmp word [rax], si
je 0x180087451
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180087438
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180087434
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.18008731c
movsxd r14, eax
test eax, eax
jne 0x18008748f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180087425
mov rcx, r14
call fcn.1800844dc
mov rdi, rax
test rax, rax
jne 0x1800874a8
xor ecx, ecx
call fcn.1800835a8
jmp 0x180087484
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.18008731c
test eax, eax
jne 0x1800874d9
mov rcx, rdi
call fcn.1800835a8
jmp 0x1800874e3
xor ecx, ecx
call fcn.1800835a8
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 0x18008958c
Capabilities:
Get file size

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

Function at 0x18008dd90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18008ddb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18008ddb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140f4a6b4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f4a6be
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f4a6e7
pop rbp
sub rbp, 0x33
sub rbp, 0xf4a6b4
sub rsp, 0x20
jmp 0x140f4a706
mov rax, 0xf4a6b4
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xfffffffff798cb93
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f4a725
jmp 0x140f4a73c
fistp dword [rdx]
jp 0x140f4a758
sbb ch, byte [rdi - 0x246c6c6d]
adc dl, byte [rdx - 0x65]
xchg edx, eax
xchg ebx, eax
xchg ebx, eax
fist dword [rdx + 0x5354db7a]
wait
xchg ebx, eax
xchg ebx, eax
xchg ebx, eax
fist dword [rcx + rdx*2 - 0x45]
xchg ebx, eax
xchg ebx, eax
xchg ebx, eax
invalid
push rcx
mov ebx, 0xdb939393
jno 0x140f4a73c
xchg edx, eax
push rdx
sbb byte [rdx], dl
lahf
xchg ebx, eax
xchg ebx, eax
xchg ebx, eax
fist dword [rdx - 0x243c3c85]
sub edi, edi
add al, 0xb9
xchg ebx, eax
xchg ebx, eax
xchg ebx, eax
xchg ebx, eax
xchg ebx, eax
fld xword [rdx]
fistp dword [rcx + rbx*2 - 0x6c6c6c6d]
xchg ebx, eax
fist dword [rdx - 0x72d62486]
invalid
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 [0x140120490]
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 [0x1401204a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140102170
jmp 0x14000123c
mov rax, qword [0x1401204a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1401204a0]
mov dword [rax], 1
mov rax, qword [0x1401204e0]
mov rdx, rax
mov rax, qword [0x1401204d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140124024], 1
mov rax, qword [0x1401204a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1401204c0]
mov rdx, rax
mov rax, qword [0x1401204b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1401204a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140120490]
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 [0x1401203e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1401203e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1401013f8
mov rax, qword [0x140120520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140120480]
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.140100bf0
mov eax, dword [0x140124004]
lea rdx, [0x140124008]
mov ecx, eax
call fcn.14000147c
call fcn.140100987
mov rax, qword [0x140120410]
mov rax, qword [rax]
mov rdx, qword [0x140124010]
mov qword [rax], rdx
mov rcx, qword [0x140124010]
mov rdx, qword [0x140124008]
mov eax, dword [0x140124004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14012401c], eax
mov eax, dword [0x140124020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14012401c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140124024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14012401c]
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 [0x140120440]
mov dword [rax], 1
mov rax, qword [0x140120450]
mov dword [rax], 1
mov rax, qword [0x140120460]
mov dword [rax], 1
mov rax, qword [0x140120400]
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 0x140100c00
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.140101f60
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1401018d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140124168]
test eax, eax
je 0x14010196a
lea rax, [0x140124140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140124170]
mov qword [rbp - 8], rax
jmp 0x14010194e
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 0x140101942
cmp qword [rbp - 0x10], 0
je 0x140101942
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 0x140101908
lea rax, [0x140124140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14010196b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140101a70
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 0x140101a98
mov eax, 0
jmp 0x140101ae6
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 0x140101ac1
mov eax, 0
jmp 0x140101ae6
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 0x140101ae1
mov eax, 0
jmp 0x140101ae6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140101aec
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 0x140101b6a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140101b61
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 0x140101b61
mov rax, qword [rbp - 8]
jmp 0x140101b7f
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 0x140101b34
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x416aa0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x416c2b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061b280]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x416b05
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x416b14
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x416b33
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x416b43
cmp rbx, 0x1000
jae 0x416b0b
jmp 0x416bad
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x416b55
xor edx, edx
jmp 0x416ba4
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061b280]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x416b39
jmp 0x416b28
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x0061b280]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x004dcb96]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004dd005]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004df350]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS