joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800ce7f4
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1801150d0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1800c4024
xor ebx, ebx
cmp qword [0x18011c4b0], rbx
mov rdi, rax
jne 0x1800ce907
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1800ce9de
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800ce9de
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18011c4b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18011c4b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x18011c4c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x18011c4d0], rax
test rax, rax
je 0x1800ce8fe
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x18011c4c8], rax
jmp 0x1800ce90e
mov rax, qword [0x18011c4c8]
jmp 0x1800ce915
mov rax, qword [0x18011c4c8]
mov r11, qword [0x18011c4d0]
cmp rax, rdi
je 0x1800ce97c
cmp r11, rdi
je 0x1800ce97c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x18011c4d0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1800ce97c
test rax, rax
je 0x1800ce97c
call rsi
test rax, rax
je 0x1800ce976
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1800ce976
test byte [rsp + 0x40], 1
jne 0x1800ce97c
bts ebp, 0x15
jmp 0x1800ce9bc
mov rcx, qword [0x18011c4b8]
cmp rcx, rdi
je 0x1800ce9bc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800ce9bc
call rax
mov rbx, rax
test rax, rax
je 0x1800ce9bc
mov rcx, qword [0x18011c4c0]
cmp rcx, rdi
je 0x1800ce9bc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800ce9bc
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18011c4b0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800ce9de
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1800ce9e0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800bf350
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800e6790
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov edi, r9d
mov rsi, r8
mov rbx, rcx
xor ebp, ebp
mov qword [rcx + 0x20], rbp
mov dword [rcx + 0x28], ebp
mov byte [rcx + 8], bpl
mov qword [rcx + 0x10], rdx
lea rax, [0x1801024b8]
mov qword [rcx], rax
add rcx, 0xcf0
call fcn.1800b9880
nop
cmp rsi, 1
jbe 0x1800e67f7
mov rax, qword [rsi + 0x88]
mov qword [rbx + 0xee8], rax
mov dword [rbx + 0xed0], ebp
cmp edi, 1
je 0x1800e6812
cmp edi, 4
je 0x1800e6812
mov eax, 0x10
cmp edi, 8
cmovne edi, eax
mov ecx, 0x53a79f2b
call fcn.1800b85d0
mov qword [rbx + 0xe80], rax
mov ecx, 0x53a49f01
call fcn.1800b85d0
mov qword [rbx + 0xe88], rax
mov ecx, 0x53a79fcb
call fcn.1800b85d0
mov qword [rbx + 0xe90], rax
mov ecx, 0x53a79fd4
call fcn.1800b85d0
mov qword [rbx + 0xe98], rax
mov ecx, 0x53a79f25
call fcn.1800b85d0
mov qword [rbx + 0xea0], rax
mov ecx, 0x53a89fcb
call fcn.1800b4250
mov qword [rbx + 0xea8], rax
mov ecx, 0x53a49f04
call fcn.1800b85d0
mov qword [rbx + 0xeb0], rax
mov ecx, 0x53a49f08
call fcn.1800b85d0
mov qword [rbx + 0xeb8], rax
mov ecx, 0x53a49f06
call fcn.1800b85d0
mov qword [rbx + 0xec0], rax
mov ecx, 0x53a49f09
call fcn.1800b85d0
mov qword [rbx + 0xec8], rax
mov dword [rbx + 0xedc], edi
mov dword [rbx + 0xed8], ebp
mov eax, dword [rsp + 0x60]
cmp eax, 0xcc0020
je 0x1800e68e3
cmp eax, 0x40cc0020
je 0x1800e68e3
mov dword [rbx + 0x30], 0xcc0020
jmp 0x1800e68e6
mov dword [rbx + 0x30], eax
mov qword [rbx + 0x38], rsi
mov qword [rbx + 0xe28], rbp
mov qword [rbx + 0x18], rsi
mov r8, rbx
xor edx, edx
lea rcx, [0x180009850]
call fcn.1800c05b8
mov qword [rbx + 0x20], rax
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14001c8e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.140020840
sub rsp, rax
mov rax, qword [0x14005cb00]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x14001c9a2
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.14002f80c
cmp rax, 1
jne 0x14001c9fe
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14001c97f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14001c973
cmp rcx, 1
jb 0x14001c9fe
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14001c940
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14001c9d3
lea rcx, [rsp + 0x80]
call fcn.140032290
jmp 0x14001c9d5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140020570
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14002f5b8
int3
Function at 0x14001d640
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp byte [0x14005e3be], 0
mov rbp, r8
mov rsi, rdx
mov r14, rcx
jne 0x14001d6d0
mov edx, 3
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x14005e1a0], rax
mov ebx, dword [rax]
lea rcx, [rax + 4]
mov qword [0x14005e1a0], rcx
lea rdi, [rcx + 4]
mov r8d, dword [rcx]
mov rdx, rdi
xor ecx, ecx
mov qword [0x14005e1a0], rdi
call fcn.14001b780
cmp eax, ebx
jne 0x14001d873
mov byte [0x14005e3be], 1
jmp 0x14001d6d7
mov rdi, qword [0x14005e1a0]
lea rdx, [0x14003ff50]
mov rcx, rbp
call fcn.14002f260
test eax, eax
je 0x14001d791
cmp byte [0x14005e3bd], 1
je 0x14001d791
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x14005f0e0], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x14005f0e8], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x14005f0f0], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x14005f0f8], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x14005f100], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x14005f108], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x14005f110], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x14005f118], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rdi, qword [0x14005e1a0]
mov byte [0x14005e3bd], 1
mov rcx, qword [rax + 0x10]
add rcx, 0xda0
mov qword [0x1400604d0], rcx
mov rdx, rdi
mov rax, rbp
sub rdx, rbp
nop word [rax + rax]
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x14001d7b7
inc rax
test cl, cl
jne 0x14001d7a0
mov ecx, r9d
jmp 0x14001d7bc
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [rdi + rax + 1], r9b
lea rax, [rax + 1]
jne 0x14001d7c3
lea rdx, [rdi + rax]
mov eax, dword [rdi + rax + 1]
add rdx, 5
test ecx, ecx
je 0x14001d828
nop
add rdx, rax
mov rax, rbp
mov r8, rdx
sub r8, rbp
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x14001d805
inc rax
test cl, cl
jne 0x14001d7f0
mov ecx, r9d
jmp 0x14001d80a
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x14001d811
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x14001d7e0
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x14001d858
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rsi
mov rcx, r14
call fcn.140019f90
add rsi, 8
sub rbx, 1
jne 0x14001d840
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.14002bf74
call fcn.14002f5b8
int3
Function at 0x140020120
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14005cb00]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x1400201d1
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.14002f80c
cmp rax, 1
jne 0x140020207
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x1400201ad
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x1400201a0
cmp rcx, 1
jb 0x140020207
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140020170
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140020570
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14002f5b8
int3

Function at 0x1400203f0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14005cb00]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x30], bp
mov edi, 0x28
test al, al
je 0x14002049f
nop dword [rax]
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.14002f80c
cmp rax, 1
jne 0x1400204d5
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14002047c
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140020470
cmp rcx, 1
jb 0x1400204d5
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140020440
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140020570
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14002f5b8
int3

Function at 0x140020fd8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140021022
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140021022
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140021022
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140021022
cmp dword [rcx + 0x84], 0xe
jbe 0x140021022
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140021024
xor al, al
add rsp, 0x28
ret
Function at 0x140025344
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400253b3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400253b3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400253b3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400253b3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400253b3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400253b3
cmp dword [rcx + 0xf8], 0
je 0x1400253b3
mov ecx, ebx
call fcn.140025464
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140025240
nop
cmp dword [rbp + 0x20], 0
je 0x140025401
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002540c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140025344

Function at 0x140025548
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400253b3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400253b3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400253b3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400253b3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400253b3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400253b3
cmp dword [rcx + 0xf8], 0
je 0x1400253b3
mov ecx, ebx
call fcn.140025464
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140025240
nop
cmp dword [rbp + 0x20], 0
je 0x140025401
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002540c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140025344
Function at 0x140037100
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140037187
mov rsi, rbx
cmp word [rax], bp
je 0x140037146
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140037130
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003712c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003237c
mov rdi, rax
test rax, rax
je 0x140037174
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003cdc0
mov rbp, rdi
xor ecx, ecx
call fcn.1400332b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140039430
Capabilities:
Get file size

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

Function at 0x14003cc10
Capabilities:
Parse pe header

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

Disassembly:
call fcn.1407341df
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 0x140734089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14073406f
add dl, dl
jne 0x140734096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407340f6
xor eax, eax
add dl, dl
jne 0x1407340a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407341ad
add dl, dl
jne 0x1407340b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407340c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407340d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407340dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407340ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14073407e
mov eax, 1
add dl, dl
jne 0x140734106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140734113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407340fb
sub eax, ebx
mov ebx, 1
jne 0x14073414c
mov ecx, 1
add dl, dl
jne 0x14073412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14073413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140734123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140734168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140734175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14073415d
cmp eax, 0x7d00
jae 0x14073419b
cmp eax, 0x500
jb 0x140734196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073407e
cmp eax, 0x7f
ja 0x14073419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407341d2
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 0x14073407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002540
Capabilities:
Access pe header
Access peb ldr_data
Get process heap flags

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
push r15
sub rsp, 0x68
mov rax, qword [0x140088040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword gs:[0x30]
mov rdi, rcx
mov r15, qword [rsp + 0xc0]
mov r12, r9
mov rbp, r8
mov r13d, edx
mov rcx, qword [rax + 0x60]
mov rbx, qword [rcx + 0x30]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
jne 0x14000259a
mov eax, 0xc000007b
jmp 0x140002621
mov rax, qword gs:[0x30]
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0x60], r14
mov rcx, qword [rax + 0x60]
mov rsi, qword [rcx + 0x30]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x14000260f
mov rax, qword [0x14008ac28]
mov edx, 8
mov rcx, rsi
movzx r8d, word [rax + 0x16]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r14, rax
test rax, rax
je 0x14000260f
lea r9, [rsp + 0x30]
mov rdx, r12
lea r8, [rsp + 0x40]
mov rcx, rbp
call fcn.1400043d0
test eax, eax
jns 0x14000263c
mov r8, r14
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc0000017
mov rsi, qword [rsp + 0xa8]
mov r14, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140042de0
add rsp, 0x68
pop r15
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
lea rax, [rsp + 0x30]
mov r8, rdi
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, r13d
mov rcx, r14
call fcn.140003e50
test eax, eax
jne 0x140002692
mov r8, r14
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8, qword [rsp + 0x38]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc0000001
jmp 0x140002614
mov rax, qword gs:[0x30]
lea rdi, [r14 + 0x70]
mov edx, 1
mov rcx, qword [rax + 0x60]
mov rax, qword [0x14008ac28]
mov rsi, qword [rcx + 0x18]
mov rcx, qword [rax + 0x58]
mov rbx, qword [rcx]
lea rcx, [r14 + 0x58]
call fcn.140004260
mov ecx, eax
lea rdx, [r14 + 0x10]
shl rcx, 4
add rcx, rbx
mov rax, qword [rcx + 8]
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov qword [rax], rdi
mov qword [rcx + 8], rdi
lea rcx, [rsi + 0x10]
mov rax, qword [rcx + 8]
mov qword [r14], rcx
mov qword [r14 + 8], rax
mov qword [rax], r14
mov rax, qword [rsi + 0x28]
mov qword [rcx + 8], r14
lea rcx, [rsi + 0x20]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov qword [rax], rdx
mov rax, qword [rsi + 0x38]
mov qword [rcx + 8], rdx
lea rdx, [r14 + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsi + 0x30]
mov qword [rdx], rcx
mov qword [rax], rdx
mov qword [rcx + 8], rdx
test r15, r15
je 0x140002730
mov qword [r15], r14
xor eax, eax
jmp 0x140002614
Function at 0x140003550
Capabilities:
Access pe header

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400035a6
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x1400035a6
movsxd r8, dword [rbx + 0x3c]
movzx edx, word [r8 + rbx + 6]
lea eax, [rdx + rdx*4]
lea ecx, [r8 + rax*8]
movabs rax, 0xaabbcc11ffee00
movsxd rcx, ecx
add rcx, 0x108
add rcx, rbx
cmp qword [rcx], rax
jne 0x1400035a6
xor eax, eax
cmp qword [rcx + 0x10], rbx
cmove rax, rcx
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400035b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140088040]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx edi, word [rdx + 0x14]
xor ebx, ebx
add rdi, 0x20
mov rsi, rdx
mov rbp, rcx
cmp bx, word [rdx + 6]
jae 0x1400036be
mov qword [rsp + 0x80], r14
add rdi, rdx
lea r14, [0x140073630]
nop word [rax + rax]
mov ecx, dword [rsi + 0x38]
lea r8, [rsp + 0x40]
mov eax, dword [rdi + 4]
add rax, rbp
mov qword [rsp + 0x30], rax
mov eax, dword [rdi]
lea rdx, [rcx - 1]
add rdx, rax
lea rax, [rcx - 1]
not rax
and rdx, rax
mov qword [rsp + 0x40], rdx
mov edx, dword [rdi + 0x1c]
mov ecx, edx
mov eax, edx
shr rax, 0x1e
shr rcx, 0x1d
and eax, 1
and ecx, 1
lea rcx, [rax + rcx*2]
mov eax, edx
shr rax, 0x1f
lea rdx, [rsp + 0x30]
lea rcx, [rax + rcx*2]
mov r9d, dword [r14 + rcx*4]
lea rax, [rsp + 0x38]
bts r9d, 9
mov qword [rsp + 0x20], rax
test dword [rdi + 0x1c], 0x4000000
cmove r9d, dword [r14 + rcx*4]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov ecx, eax
test eax, eax
js 0x140003699
movzx eax, word [rsi + 6]
inc ebx
add rdi, 0x28
cmp ebx, eax
jb 0x140003600
mov eax, ecx
mov r14, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140042de0
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov eax, ebx
jmp 0x1400036a1
Function at 0x140003b20
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140003bc7
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x140003bc7
movsxd r8, dword [rbx + 0x3c]
movzx edx, word [r8 + rbx + 6]
lea eax, [rdx + rdx*4]
lea ecx, [r8 + rax*8]
movabs rax, 0xaabbcc11ffee00
movsxd rdi, ecx
add rdi, 0x108
add rdi, rbx
cmp qword [rdi], rax
jne 0x140003bc7
cmp qword [rdi + 0x10], rbx
jne 0x140003bc7
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rdi, rdi
je 0x140003bd0
movzx eax, byte [rdi + 0xc]
and al, 6
cmp al, 2
je 0x140003bd0
cmp qword [rdi + 0x20], 0
je 0x140003b9f
mov rcx, rdi
call fcn.140006a30
cmp qword [rdi + 0x10], 0
je 0x140003bb7
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret