joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400446e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14006c980]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140044700
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140044708
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140044700
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140044750
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140044747
test rcx, rcx
je 0x140044700
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140044738
xor eax, eax
ret

Function at 0x140044760
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14006c980]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14004477f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140044788
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x14006c980]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400447c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400447c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400447c0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400447c0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140044814
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140044820
add rdx, 0x28
cmp rdx, r9
jne 0x140044800
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14006c980]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140044852
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140044860
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140044852
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140044852
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140044852
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400448b5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400448c8
add rdx, 0x28
cmp r10, rdx
jne 0x1400448a0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400448d7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400448e7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400448be
test ecx, ecx
jg 0x1400448d0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140003010
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140003043
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140003087
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140003082
cmp rbx, r11
jae 0x140003087
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140003070
cmp rbx, r11
jb 0x14000308b
xor eax, eax
jmp 0x140003097
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14000a950
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.140020448
mov rsi, rax
test rax, rax
je 0x14000a9cc
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x14000a9c7
cmp dword [rbx], 0x40
jb 0x14000a9c7
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x14000a9c7
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x14000a9d0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140011a18
Capabilities:
Extract resource via kernel32 functions

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
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x140011a80
call fcn.1400098bc
mov r8d, pe_nt_image_headers64
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140011a80
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140011aa2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.140011428
mov esi, eax
test rdi, rdi
je 0x140011aa0
test rbx, rbx
je 0x140011aa0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x140011ee8
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xa0], 0
jne 0x140011f26
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x140011fda
call fcn.140004980
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140011f45
mov ecx, 0x80004005
call fcn.140002140
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x118]
mov rdx, rsi
or rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14002b418
test eax, eax
je 0x140011fad
cmp eax, 0xc
je 0x140011fa7
cmp eax, 0x16
je 0x140011fa1
cmp eax, 0x22
je 0x140011fa1
cmp eax, 0x50
je 0x140011fad
call fcn.140004fe0
int3
call fcn.140004fe0
int3
call fcn.140004f98
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x140011fd8
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14001e0c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_640
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
test rdx, 0xffffffffffff0000
jne 0x14001e107
cmp dword [rcx + 0xa8], 0
jne 0x14001e107
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.1400098bc
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.14001e06c
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14002bbf4
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 fcn.140032eb4
nop
cmp dword [0x1401fb938], 1
je 0x14002bba0
mov dword [0x1401fb934], 1
mov byte [0x1401fb930], r12b
test ebx, ebx
jne 0x14002bb8c
mov rcx, qword [0x1401fdd10]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002bb79
mov rcx, qword [0x1401fdd08]
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 0x14002bb18
call fcn.14002cef8
cmp qword [rdi], rax
jne 0x14002bb18
jmp 0x14002bafe
cmp rdi, rsi
jb 0x14002bb79
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14002cef8
mov qword [rdi], rax
call rbx
mov rcx, qword [0x1401fdd10]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x1401fdd08]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14002bb57
cmp r13, rax
je 0x14002bb77
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 0x14002bafe
lea rdx, [0x140041c80]
lea rcx, [0x140041c68]
call fcn.14002b948
lea rdx, [0x140041c90]
lea rcx, [0x140041c88]
call fcn.14002b948
nop
test r12d, r12d
je 0x14002bbaf
mov ecx, 8
call fcn.140032db4
test r12d, r12d
jne 0x14002bbda
mov dword [0x1401fb938], 1
lea ecx, [r12 + 8]
call fcn.140032db4
mov ecx, r15d
call fcn.14002b8dc
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 0x14002ba68

Function at 0x14002bc00
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14002ba68
Function at 0x14002d3f3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140057320]
jne 0x14002945a
rol rcx, 0x10
test cx, 0xffff
jne 0x140029456
repz ret
ror rcx, 0x10
jmp 0x14002d34c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1401fbf20]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1401fc018]
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 0x14002d3d1
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, [0x1401fbf20]
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 0x14002d3f3
mov rax, qword [rsp + 0x88]
mov qword [0x1401fc018], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1401fbfb8], rax
mov rax, qword [0x1401fc018]
mov qword [0x1401fbe90], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1401fbfa0], rax
mov dword [0x1401fbe80], 0xc0000409
mov dword [0x1401fbe84], 1
mov rax, qword [0x140057320]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140057328]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1401fbf18], eax
mov ecx, 1
call fcn.140035aa0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140049820]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1401fbf18], 0
jne 0x14002d47a
mov ecx, 1
call fcn.140035aa0
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 0x140035684
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.14002cef8
xor ebx, ebx
mov rdi, rax
cmp qword [0x1401fc7d0], rbx
jne 0x14003578a
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14003585f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003585f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x1400499b8]
mov rcx, rsi
mov qword [0x1401fc7d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x1400499a0]
mov rcx, rsi
mov qword [0x1401fc7d8], 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 [0x1401fc7e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1401fc7f0], rax
test rax, rax
je 0x140035781
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1401fc7e8], rax
jmp 0x140035791
mov rax, qword [0x1401fc7e8]
jmp 0x140035798
mov rax, qword [0x1401fc7e8]
mov r11, qword [0x1401fc7f0]
cmp rax, rdi
je 0x140035800
cmp r11, rdi
je 0x140035800
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1401fc7f0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140035800
test rax, rax
je 0x140035800
call rsi
test rax, rax
je 0x1400357fa
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400357fa
test byte [rsp + 0x38], 1
jne 0x140035800
bts ebp, 0x15
jmp 0x14003583e
mov rcx, qword [0x1401fc7d8]
cmp rcx, rdi
je 0x14003583e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003583e
call rax
mov rbx, rax
test rax, rax
je 0x14003583e
mov rcx, qword [0x1401fc7e0]
cmp rcx, rdi
je 0x14003583e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003583e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1401fc7d0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003585f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140035861
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 0x401ef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402078
mov rax, qword [0x00408628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401f3c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401fc5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401f20
mov rcx, rbx
call fcn.00402b90
test rax, rax
mov r12, rax
je 0x4020ad
mov rax, qword [0x00408628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00402cc0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402090
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401fbe
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402020
add dword [0x00408624], 1
cmp edi, 8
jae 0x401ff3
test dil, 4
jne 0x402064
test edi, edi
je 0x401fe8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40207f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401fe8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40200c
jmp 0x401fe8
add rsi, qword [0x00408628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401fbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004030b0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401fe8
xor esi, esi
jmp 0x401f47
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401fe8
mov rax, qword [0x00408628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.004030b0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004030b0
nop
nop dword [rax]

Function at 0x402800
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x402854
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40284b
test rsi, rsi
je 0x40284b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402830
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402b90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405a40]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402bfd
mov rcx, r8
call fcn.00402a70
test eax, eax
je 0x402bfd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402bfd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402bf4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402bff
add rax, 0x28
cmp rax, r9
jne 0x402be0
xor eax, eax
add rsp, 0x28
ret

Function at 0x4030b0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.00402f70
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.00402f70
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x125e130
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x125e13d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x125e14d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x125e135
lea eax, [rcx + 1]
jmp 0x125e15b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x125e16e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x125e154
sub eax, 3
jb 0x125e18e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x125e1dd
sar eax, 1
movsxd rbp, eax
jb 0x125e1c4
jmp 0x125e19c
add ebx, ebx
jne 0x125e19a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x125e1c4
inc ecx
add ebx, ebx
jne 0x125e1aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x125e1c4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x125e1bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x125e1ac
add ecx, 2
jmp 0x125e1c9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.0125e0f2
jmp 0x125e13d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x24ca00
mov dl, 0x1d
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x125e229
cmp rsi, rcx
jae 0x125e231
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x125e210
cmp al, 0x8f
ja 0x125e210
cmp byte [rsi - 2], 0xf
je 0x125e216
sub al, 0xe8
cmp al, 1
ja 0x125e1fa
cmp rsi, rcx
jae 0x125e231
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x125e200
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x125e231
lodsb al, byte [rsi]
jmp 0x125e210
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xe57000]
mov eax, dword [rdi]
or eax, eax
je 0x125e28e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xe5e790]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x125e23e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x125e288
mov qword [rbx], rax
add rbx, 8
jmp 0x125e25e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x125e2d2
cmp al, 0xef
ja 0x125e2ba
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x125e29a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x125e2a9
mov eax, dword [rdi]
add rdi, 4
jmp 0x125e2a9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x125e326
sub rsp, 0xffffffffffffff80
jmp 0x45aee0
Function at 0x140871058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1408711df
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 0x140871089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14087106f
add dl, dl
jne 0x140871096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408710f6
xor eax, eax
add dl, dl
jne 0x1408710a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408711ad
add dl, dl
jne 0x1408710b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408710c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408710d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408710dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408710ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14087107e
mov eax, 1
add dl, dl
jne 0x140871106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140871113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408710fb
sub eax, ebx
mov ebx, 1
jne 0x14087114c
mov ecx, 1
add dl, dl
jne 0x14087112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14087113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140871123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14087107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140871168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140871175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14087115d
cmp eax, 0x7d00
jae 0x14087119b
cmp eax, 0x500
jb 0x140871196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14087107e
cmp eax, 0x7f
ja 0x14087119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14087107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408711d2
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 0x14087107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20