joyce8/EMBER2024-capa huggingface dataset:
Function at 0x155e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x0001c100]
xor rax, rsp
mov qword [rsp + 0xa0], rax
or qword [r11 - 0x80], 0xffffffffffffffff
xor eax, eax
xor ebx, ebx
lea rcx, [r11 - 0x50]
lea r8d, [rbx + 0x28]
xor edx, edx
mov word [rsp + 0x40], bx
mov qword [r11 - 0x76], rax
mov word [rsp + 0x50], bx
mov qword [r11 - 0x66], rax
mov dword [rsp + 0x4a], eax
mov word [rsp + 0x4e], ax
mov dword [rsp + 0x5a], eax
mov word [rsp + 0x5e], ax
mov dword [rsp + 0x60], ebx
call fcn.00019aa0
lea rdx, [0x0001a240]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x30], ebx
lea edi, [rbx + 1]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x0001a270]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x50]
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x38]
mov edx, 0xf003f
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x78], 0x40
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rbx
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebx
jge 0x156c4
mov al, dil
jmp 0x15783
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x40]
mov r8d, 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, ebx
jge 0x15706
cmp eax, 0x80000005
je 0x15706
cmp eax, 0xc0000023
jne 0x15776
cmp dword [rsp + 0x94], 4
jne 0x15770
mov edx, dword [rsp + 0x30]
mov r8d, 0x706b7670
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rsi, rax
cmp rax, rbx
je 0x15773
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov r9, rsi
mov r8d, 2
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, ebx
jl 0x15760
cmp dword [rsi + 0xc], ebx
setne dil
mov edx, 0x706b7670
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x15773
mov dil, bl
mov bl, dil
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, bl
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.000196e0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x16f9c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0xb0
or r10, 0xffffffffffffffff
mov rbx, rcx
lea rdi, [0x000dcf50]
mov qword [rax + 0x10], r10
xor eax, eax
mov rcx, r10
repne scasw ax, word [rdi]
mov edx, 0xc0000001
not rcx
cmp rcx, 1
je 0x17091
mov rax, cr8
test al, al
je 0x16fe6
mov edi, edx
jmp 0x170f7
lea rdx, [0x000dcf50]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x88], 0
and qword [rsp + 0xa0], 0
and qword [rsp + 0xa8], 0
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x80]
lea rcx, [rsp + 0xc8]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
mov dword [rsp + 0x80], 0x30
mov dword [rsp + 0x98], 0x240
mov qword [rsp + 0x90], rax
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov r10, qword [rsp + 0xc8]
mov edx, eax
mov edi, edx
test edx, edx
js 0x170f7
test r10, r10
je 0x170e9
test rbx, rbx
je 0x170e9
mov rax, cr8
test al, al
jne 0x170e9
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x70]
mov dword [rsp + 0x30], 0x5000
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r10
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov r10, qword [rsp + 0xc8]
mov edi, eax
jmp 0x170ee
mov edi, 0xc0000001
mov rcx, r10
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rdi
ret
Function at 0x19480
Capabilities:
Map section object

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0xc0
or qword [r11 + 8], 0xffffffffffffffff
xor eax, eax
xor edi, edi
mov word [rsp + 0x70], di
mov qword [r11 - 0x56], rax
lea rdx, [0x00019f70]
lea rcx, [r11 - 0x58]
mov dword [rsp + 0x7a], eax
mov word [rsp + 0x7e], ax
mov qword [r11 + 0x18], rdi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x70]
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x98], rdi
mov dword [rsp + 0xa8], 0x240
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0xb8], rdi
lea ebx, [rdi + 1]
jmp 0x1951d
lea r8, [rsp + 0xd8]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0xd8], 0xfffffffffff85ee0
call qword [sym.imp.ntoskrnl.exe_KeDelayExecutionThread]
mov dword [rsp + 0x68], 0x100
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x90]
lea rcx, [rsp + 0xd0]
mov edx, 0x80100000
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_IoCreateFile]
cmp eax, edi
jl 0x194ff
mov rax, qword [rsp + 0xd0]
xor r9d, r9d
lea r8, [rsp + 0x90]
mov qword [rsp + 0x30], rax
lea rcx, [0x0001c110]
lea edx, [r9 + 5]
mov dword [rsp + 0x28], 0x1000000
mov qword [rsp + 0xa0], rdi
mov dword [rsp + 0x20], 8
call qword [sym.imp.ntoskrnl.exe_ZwCreateSection]
mov rcx, qword [rsp + 0xd0]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp ebx, edi
jl 0x19630
mov rcx, qword [0x0001c110]
mov dword [rsp + 0x48], 8
mov dword [rsp + 0x40], section.PAGE
mov dword [rsp + 0x38], 2
lea rax, [rsp + 0xe0]
lea r8, [0x000fe8a0]
mov qword [rsp + 0x30], rax
xor r9d, r9d
or rdx, 0xffffffffffffffff
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov qword [0x000fe8a0], rdi
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov rcx, qword [0x0001c110]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
Function at 0x100008
Capabilities:
Parse pe header
Resolve function by parsing pe exports

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 r12
push r13
push r14
xor r9d, r9d
mov rbp, rdx
mov r8, rcx
cmp rcx, r9
jne 0x100036
xor eax, eax
jmp 0x100127
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10002f
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x10002f
mov ecx, 0x20b
cmp word [rax + r8 + 0x18], cx
jne 0x10006c
mov edx, dword [rax + r8 + 0x88]
mov ebx, dword [rax + r8 + 0x8c]
jmp 0x100076
mov edx, dword [rax + r8 + 0x78]
mov ebx, dword [rax + r8 + 0x7c]
add rdx, r8
mov r10d, r9d
mov r13d, dword [rdx + 0x24]
mov r14d, dword [rdx + 0x20]
mov r12d, dword [rdx + 0x1c]
add r13, r8
add r14, r8
add r12, r8
cmp dword [rdx + 0x14], r9d
jbe 0x100124
mov rcx, r9
cmp rbp, 0xffff
ja 0x1000ad
movzx r11d, r10w
jmp 0x1000c7
cmp r10d, dword [rdx + 0x18]
jae 0x10002f
mov eax, r10d
mov ecx, dword [r14 + rax*4]
mov r11w, word [r13 + rax*2]
add rcx, r8
cmp rbp, 0xffff
ja 0x1000de
movzx ecx, r11w
movzx eax, bp
add ecx, dword [rdx + 0x10]
cmp eax, ecx
jmp 0x1000f9
mov rsi, rbp
sub rsi, rcx
movzx eax, byte [rcx]
movzx edi, byte [rcx + rsi]
sub eax, edi
jne 0x1000f6
inc rcx
test edi, edi
jne 0x1000e4
cmp eax, r9d
je 0x100106
inc r10d
cmp r10d, dword [rdx + 0x14]
jb 0x10009b
jmp 0x100124
movzx eax, r11w
mov r9d, dword [r12 + rax*4]
add r9, r8
cmp r9, rdx
jb 0x100124
mov eax, ebx
add rax, rdx
cmp r9, rax
jbe 0x10002f
mov rax, r9
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r14
pop r13
pop r12
ret
Function at 0x101064
Capabilities:
Check os version
Create device object
Create thread

Disassembly:
sub rsp, 0x28
mov r8, rdx
mov r9, rcx
call fcn.00101008
mov rdx, r8
mov rcx, r9
add rsp, 0x28
jmp fcn.00011310
Function at 0x1400291bc
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c7b4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c7b4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002930c
cmp rax, 0xffffffffffffffff
je 0x14002930c
xor edi, edi
test rbp, rbp
jle 0x1400292b7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f0c8
mov rbx, rax
test rax, rax
jne 0x140029244
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400292ad
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a0e8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d490
cmp eax, 0xffffffff
je 0x14002928d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029254
mov edx, r15d
mov ecx, r14d
call fcn.14001a0e8
jmp 0x1400292ad
cmp byte [rsi + 0x38], dil
je 0x1400292a4
cmp dword [rsi + 0x34], 5
jne 0x1400292a4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400292ad
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001ae7c
jmp 0x140029320
jns 0x140029320
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c7b4
cmp rax, 0xffffffffffffffff
jne 0x1400292d8
cmp byte [rsi + 0x30], dil
je 0x140029320
mov edi, dword [rsi + 0x2c]
jmp 0x140029320
mov ecx, r14d
call fcn.1400185a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029320
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029320
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029319
mov eax, dword [rsi + 0x2c]
jmp 0x14002931e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c7b4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400019d4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a1e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a1e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a1e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a1e
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a1e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a20
xor al, al
add rsp, 0x28
ret
Function at 0x140712058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407121df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140712089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14071206f
add dl, dl
jne 0x140712096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407120f6
xor eax, eax
add dl, dl
jne 0x1407120a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407121ad
add dl, dl
jne 0x1407120b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407120c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407120d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407120dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407120ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14071207e
mov eax, 1
add dl, dl
jne 0x140712106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140712113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407120fb
sub eax, ebx
mov ebx, 1
jne 0x14071214c
mov ecx, 1
add dl, dl
jne 0x14071212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14071213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140712123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14071207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140712168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140712175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14071215d
cmp eax, 0x7d00
jae 0x14071219b
cmp eax, 0x500
jb 0x140712196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14071207e
cmp eax, 0x7f
ja 0x14071219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14071207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407121d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14071207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002b22
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x140002b41
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001ab00

Function at 0x140005787
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov rsi, rcx
mov ecx, 2
call qword [fcn.14001a4f0]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.14001ab00

Function at 0x1400057c6
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x1400bb150], 0
jne 0x1400057de
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140005787
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov rcx, rsi
call fcn.140005700
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x1400bb150]
test rbx, rbx
je 0x14000580f
test byte [rbx + 7], 0x40
jne 0x14000580f
mov rcx, rbx
call fcn.140003bac
lea rcx, [0x140021340]
call fcn.140015390
cmp byte [rax], 0
je 0x140005847
mov byte [rax], 0
lea rcx, [0x140021240]
call fcn.140015390
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140004111
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x140005ebd
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r12, [0x1400bb120]
xor ebx, ebx
lea r14, [0x140021340]
mov rsi, rcx
mov rdi, rdx
lea r13, [rsp + 0x20]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbp, qword [fcn.14001a4f0]
mov ecx, 1
cmp rbx, rdi
jl 0x140005f43
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14002241b]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
call fcn.14001ab00
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rbp
xor r8d, r8d
mov rdx, r13
mov rcx, rax
mov rax, rbx
shl rax, 4
movups xmm0, xmmword [rsi + rax]
movaps xmmword [rsp + 0x20], xmm0
call fcn.140005d97
mov rcx, r14
call fcn.140015390
cmp byte [rax], 0
jne 0x140005f75
inc rbx
jmp 0x140005ef6
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140011253
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140011291
cmp word [rcx], 0x5a4d
jne 0x140011291
movsxd rdx, dword [rcx + 0x3c]
cmp edx, 0x400
jg 0x140011291
call fcn.1400077b9
mov rcx, qword [0x1400b4c50]
mov rbx, rax
call fcn.140015390
cmp byte [rax], 0
jne 0x140011291
cmp dword [rbx], 0x4550
je 0x140011293
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140014510
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14001a4f0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001a4f0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140014580
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400bbb64]
mov r12, rcx
test ebx, ebx
jle 0x1400146b0
mov rax, qword [0x1400bbb68]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x1400145cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140014655
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x1400145b0
mov rcx, r12
call fcn.140015000
mov rsi, rax
test rax, rax
je 0x1400146d2
mov rax, qword [0x1400bbb68]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140015130
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400bbb68]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400146b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001464e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140014660
add dword [0x1400bbb64], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400bbb68]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001464e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140014510
nop dword [rax]
xor ebx, ebx
jmp 0x1400145d8
mov rax, qword [0x1400bbb68]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140014510
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140014510
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140014c50
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x1400bbbc0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400bbba0]
test rbx, rbx
je 0x140014cac
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140014ca3
test r12, r12
je 0x140014ca3
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140014c88
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140015000
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400b4c60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140015020
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140015028
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140015020
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140015075
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14001506c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140015020
add rax, 0x28
cmp rax, r9
jne 0x140015058
xor eax, eax
ret

Function at 0x140015080
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400b4c60]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400150a0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400150a8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400150a0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140015130
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400b4c60]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140015150
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140015158
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x14001b640
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14001b752
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14001b72a
add rax, 1
cmp rax, 0x6b
je 0x14001b747
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x14001b720
cmp edx, 0x6a
je 0x14001b747
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14001b73b

Function at 0x14001baf0
Capabilities:
Allocate thread local storage

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
lea rsi, [0x1400bc6c0]
mov rcx, rsi
call fcn.14001b3b0
lea r13, [rax + 8]
mov r12, rax
mov rcx, r13
call fcn.14001acb0
mov ebx, dword [0x1400bc6c0]
test ebx, ebx
jne 0x14001bb60
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140021648], eax
cmp eax, 0xffffffff
je 0x1400204d6
mov dword [0x1400bc6c0], 1
mov rcx, r13
call fcn.14001afd0
test r12, r12
je 0x14001bb92
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
jmp fcn.14001b770
cmp ebx, 1
je 0x14001bb41
mov ecx, 2
call qword [fcn.14001a4f0]
mov r9d, ebx
mov r8, rsi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rcx, r13
call fcn.14001afd0
test r12, r12
jne 0x14001bb4e
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret
call sub.msvcrt.dll_abort
nop
Function at 0x1400087bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008808
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008800
cmp dword [rcx + 0x3c], edx
jl 0x140008800
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008800
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008808
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
push rcx
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
push r9
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021