joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001e70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x10001e70
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
movsxd rax, dword [rsp + 0x70]
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x80]
imul rcx, rcx, 0x40
sub rax, rcx
add rax, 0xaf00
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x80]
imul rcx, rcx, 0x108
add rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x88]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x20], 0
jmp 0x10001f58
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x10001fbc
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x28]
call fcn.1001cdc0
test eax, eax
jne 0x10001fba
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
jmp 0x10001fbe
jmp 0x10001f4d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1000bd00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x1000bd00
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x4f8
mov qword [rsp + 0x4c8], 0xfffffffffffffffe
mov rax, qword [0x10086540]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
call fcn.100014ab
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x78]
call fcn.100012d5
nop
mov rdx, qword [rsp + 0x500]
lea rcx, [rsp + 0x50]
call fcn.10001055
lea rcx, [rsp + 0x90]
call fcn.100010b9
nop
mov edx, 0x400
mov rcx, qword [rsp + 0x508]
call fcn.100015c3
mov qword [rsp + 0x38], rax
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1000bdb5
call fcn.1000133e
mov dword [rsp + 0x4b0], eax
jmp 0x1000bf7c
mov r8, qword [rsp + 0x518]
mov rdx, qword [rsp + 0x510]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x4a8], rax
cmp qword [rsp + 0x4a8], 0
jne 0x1000bdf4
call fcn.1000133e
mov dword [rsp + 0x4b0], eax
jmp 0x1000bf7c
mov rdx, qword [rsp + 0x4a8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x4b8], rax
cmp qword [rsp + 0x4b8], 0
jne 0x1000be2b
call fcn.1000133e
mov dword [rsp + 0x4b0], eax
jmp 0x1000bf7c
mov rdx, qword [rsp + 0x4a8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x4b8]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x60]
add eax, 1
cmp eax, dword [rsp + 0x60]
jae 0x1000be8b
mov dword [rsp + 0x4c0], 0x8007000e
lea rcx, [rsp + 0x90]
call fcn.100014b0
nop
lea rcx, [rsp + 0x78]
call fcn.1000128f
mov eax, dword [rsp + 0x4c0]
jmp 0x1000bfbc
mov eax, dword [rsp + 0x60]
add eax, 1
mov eax, eax
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.10001046
nop
lea rcx, [rsp + 0x90]
call fcn.100014bf
test rax, rax
jne 0x1000bec7
mov dword [rsp + 0x4b0], 0x8007000e
jmp 0x1000bf7c
lea rcx, [rsp + 0x90]
call fcn.100014bf
mov qword [rsp + 0x4d0], rax
call fcn.100014ab
mov ecx, dword [rsp + 0x60]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x4d0]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x60]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x4a0], eax
cmp dword [rsp + 0x4a0], 0
jne 0x1000bf29
call fcn.1000133e
mov dword [rsp + 0x4b0], eax
jmp 0x1000bf7c
mov eax, dword [rsp + 0x4a0]
mov qword [rsp + 0x4d8], rax
lea rcx, [rsp + 0x90]
call fcn.100014bf
mov rcx, qword [rsp + 0x4d8]
mov word [rax + rcx*2], 0
lea rcx, [rsp + 0x90]
call fcn.100014bf
mov r8d, dword [rsp + 0x520]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.10001244
mov dword [rsp + 0x4b0], eax
cmp qword [rsp + 0x48], 0
je 0x1000bf8f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x4b0]
mov dword [rsp + 0x4c4], eax
lea rcx, [rsp + 0x90]
call fcn.100014b0
nop
lea rcx, [rsp + 0x78]
call fcn.1000128f
mov eax, dword [rsp + 0x4c4]
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.1001d0c0
add rsp, 0x4f8
ret
Function at 0x1000e3c0
Capabilities:
Delete registry key

Disassembly:
jmp 0x1000e3c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor eax, eax
test eax, eax
jne 0x1000e3ce
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rsp, 0x28
ret

Function at 0x1000e400
Capabilities:
Delete registry value

Disassembly:
jmp 0x1000e400
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor eax, eax
test eax, eax
jne 0x1000e40e
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
add rsp, 0x28
ret

Function at 0x1000e620
Capabilities:
Query or enumerate registry key

Disassembly:
jmp 0x1000e620
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x10086540]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rcx, [rsp + 0x50]
call fcn.100015af
mov r9d, 0x2001f
mov r8, qword [rsp + 0x2a8]
mov rax, qword [rsp + 0x2a0]
mov rdx, qword [rax]
lea rcx, [rsp + 0x50]
call fcn.10001154
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x1000e69c
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x270], eax
lea rcx, [rsp + 0x50]
call fcn.1000150a
mov eax, dword [rsp + 0x270]
jmp 0x1000e760
mov dword [rsp + 0x40], pe_nt_image_headers64
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1000e729
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.100012f3
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x1000e71c
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x274], eax
lea rcx, [rsp + 0x50]
call fcn.1000150a
mov eax, dword [rsp + 0x274]
jmp 0x1000e760
mov dword [rsp + 0x40], pe_nt_image_headers64
jmp 0x1000e6a4
lea rcx, [rsp + 0x50]
call fcn.100011ae
mov rdx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x2a0]
call fcn.100010d2
mov dword [rsp + 0x278], eax
lea rcx, [rsp + 0x50]
call fcn.1000150a
mov eax, dword [rsp + 0x278]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1001d0c0
add rsp, 0x298
ret
Function at 0x1000eff0
Capabilities:
Set registry value

Disassembly:
jmp 0x1000eff0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x1000f003
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x1000f050
Capabilities:
Set registry value

Disassembly:
jmp 0x1000f050
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x1000f068
cmp qword [rsp + 0x60], 0
je 0x1000f080
mov dword [rsp + 0x34], 1
jmp 0x1000f088
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1000f0a1
mov ecx, 0x80004005
call fcn.100010af
xor eax, eax
test eax, eax
jne 0x1000f06e
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cdqe
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x48
ret

Function at 0x1000f110
Capabilities:
Set registry value

Disassembly:
jmp 0x1000f110
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor eax, eax
test eax, eax
jne 0x1000f123
cmp qword [rsp + 0x70], 0
je 0x1000f13b
mov dword [rsp + 0x48], 1
jmp 0x1000f143
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1000f15c
mov ecx, 0x80004005
call fcn.100010af
xor eax, eax
test eax, eax
jne 0x1000f129
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
lea rax, [rcx + rax*2]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x40], 1
jne 0x1000f174
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x58
ret
Function at 0x10020077
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x10086540]
jne 0x1001d0da
rol rcx, 0x10
test cx, 0xffff
jne 0x1001d0d6
repz ret
ror rcx, 0x10
jmp 0x1001ffd0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100884d0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x100885c8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10020055
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x100884d0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x10020077
mov rax, qword [rsp + 0x88]
mov qword [0x100885c8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x10088568], rax
mov rax, qword [0x100885c8]
mov qword [0x10088440], rax
mov rax, qword [rsp + 0x90]
mov qword [0x10088550], rax
mov dword [0x10088430], 0xc0000409
mov dword [0x10088434], 1
mov rax, qword [0x10086540]
mov qword [rsp + 0x68], rax
mov rax, qword [0x10086548]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x100884c8], eax
mov ecx, 1
call fcn.1002d190
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x10078d48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x100884c8], 0
jne 0x100200fe
mov ecx, 1
call fcn.1002d190
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x100416d0
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.10020410
xor ebx, ebx
cmp qword [0x100891a8], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x10041801
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x10041733
xor eax, eax
jmp 0x100418e1
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1004172c
mov rcx, rax
call fcn.100203a0
lea rdx, str.GetActiveWindow
mov rcx, rbp
mov qword [0x100891a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.100203a0
lea rdx, str.GetLastActivePopup
mov rcx, rbp
mov qword [0x100891b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.100203a0
lea rcx, [rsp + 0x30]
mov qword [0x100891b8], rax
call fcn.10024ef0
test eax, eax
je 0x100417b7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.10024580
cmp dword [rsp + 0x30], 2
jne 0x10041801
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.100203a0
test rax, rax
mov qword [0x100891c8], rax
je 0x10041801
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.100203a0
mov qword [0x100891c0], rax
mov rcx, qword [0x100891c0]
cmp rcx, rsi
je 0x10041893
cmp qword [0x100891c8], rsi
je 0x10041893
call fcn.10020470
call rax
test rax, rax
mov rbp, rax
je 0x1004185e
mov rcx, qword [0x100891c8]
call fcn.10020470
lea rcx, [rsp + 0x38]
mov r9d, SQLFreeStmt
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x1004185e
test byte [rsp + 0x48], 1
jne 0x10041893
lea rcx, [rsp + 0x34]
call fcn.10024fe0
test eax, eax
je 0x10041880
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.10024580
cmp dword [rsp + 0x34], 4
jb 0x1004188d
bts edi, 0x15
jmp 0x100418c7
bts edi, 0x12
jmp 0x100418c7
mov rcx, qword [0x100891b0]
cmp rcx, rsi
je 0x100418c7
call fcn.10020470
call rax
test rax, rax
mov rbx, rax
je 0x100418c7
mov rcx, qword [0x100891b8]
cmp rcx, rsi
je 0x100418c7
call fcn.10020470
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x100891a8]
call fcn.10020470
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x1800111ae
Capabilities:
Terminate process

Disassembly:
jmp 0x180013160
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000b900]
mov dword [rax], 1
mov rax, qword [0x14000b910]
mov dword [rax], 1
mov rax, qword [0x14000b920]
mov dword [rax], 1
mov rax, qword [0x14000b8f0]
mov dword [rax], 1
mov rax, qword [0x14000b7b0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
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 0x14000150a
mov eax, 0
jmp 0x14000158b
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 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001b30
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 fcn.140008d20
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140008d20
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140002762
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000f168]
test eax, eax
je 0x1400027fa
lea rax, [0x14000f140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000f170]
mov qword [rbp - 8], rax
jmp 0x1400027de
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 0x1400027d2
cmp qword [rbp - 0x10], 0
je 0x1400027d2
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 0x140002798
lea rax, [0x14000f140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400027fb
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002900
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 0x140002928
mov eax, 0
jmp 0x140002976
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 0x140002951
mov eax, 0
jmp 0x140002976
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 0x140002971
mov eax, 0
jmp 0x140002976
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000297c
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 0x1400029fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400029f1
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 0x1400029f1
mov rax, qword [rbp - 8]
jmp 0x140002a0f
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 0x1400029c4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001a45
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14001a0b8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14001a0b4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140001a93
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001a8b
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001b7c
inc ebx
add rax, 0x28
jmp 0x140001a6b
mov rcx, r12
call fcn.1400022b5
mov rbp, rax
test rax, rax
jne 0x140001ab2
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400019e0
movsxd rbx, ebx
mov rax, qword [0x14001a0b8]
imul rbx, rbx, 0x28
add rax, rbx
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140002365
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001a0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140001b16
mov rax, qword [0x14001a0b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400019e0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001b76
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001b76
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 [0x14001a0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b76
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400019e0
inc dword [0x14001a0b4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140001fd0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
lea r13, [0x14001a120]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001a100]
test rbx, rbx
je 0x14000201e
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140002018
test r12, r12
je 0x140002018
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140001ff0
mov rcx, r13
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400021e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002203
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140002203
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002204
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r9d, r8d
jbe 0x14000223e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp r10, rdx
ja 0x140002235
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002240
inc r8d
add rax, 0x28
jmp 0x14000221c
xor eax, eax
ret