joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400022b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140100fc0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400022d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400022d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400022d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002325
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000231c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400022d0
add rax, 0x28
cmp rax, r9
jne 0x140002308
xor eax, eax
ret

Function at 0x140002330
Capabilities:
Parse pe header

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

Function at 0x1400023e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140100fc0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002400
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002408
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x14000ffc0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1400100d2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400100aa
add rax, 1
cmp rax, 0x6b
je 0x1400100c7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x1400100a0
cmp edx, 0x6a
je 0x1400100c7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400100bb
Function at 0x140010650
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push r13
push r12
push rbx
sub rsp, 0x48
cmp dword [0x14012dd60], 1
je 0x1400106fb
lea r13, [0x1400fa180]
lea rbx, [0x14012dd60]
mov rcx, r13
call fcn.14000ff50
mov r12, qword [0x14012dd10]
test r12, r12
jne 0x1400106a1
jmp 0x140010895
mov rax, qword [r12 + 0x18]
test rax, rax
je 0x140010860
mov r12, rax
cmp qword [r12], rbx
jne 0x140010690
add dword [r12 + 0x10], 1
lea r14, [r12 + 8]
mov rcx, r13
call fcn.14000ff90
mov rcx, r14
call fcn.14000f8d0
mov ebx, dword [0x14012dd60]
test ebx, ebx
jne 0x140010720
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400fa198], eax
cmp eax, 0xffffffff
je 0x1400f9c00
mov dword [0x14012dd60], 1
mov rcx, r14
call fcn.14000fbf0
mov rcx, r12
call fcn.1400100f0
mov ecx, dword [0x1400fa198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x140010750
mov rax, r12
add rsp, 0x48
pop rbx
pop r12
pop r13
pop r14
ret
cmp ebx, 1
je 0x1400106eb
mov ecx, 2
call qword [fcn.14000dcf0]
mov r9d, ebx
lea r8, [0x14012dd60]
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400106eb
call fcn.140010580
cmp qword [0x140130050], 0
mov rbx, rax
je 0x14001070f
test rax, rax
je 0x14001070f
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14000ff40
cmp eax, 1
je 0x1400108ba
mov r14, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call r14
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call r14
lea r9, [rbx + 0x28]
mov r8, r13
mov rdx, r12
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400f9c00
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400fa198]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400f9c00
mov r12, rbx
mov rax, r12
add rsp, 0x48
pop rbx
pop r12
pop r13
pop r14
ret
mov edx, 0x20
mov ecx, 1
call sub.msvcrt.dll_calloc
mov qword [rax], rbx
mov dword [rax + 0x10], 1
mov qword [r12 + 0x18], rax
mov r12, rax
lea r14, [r12 + 8]
xor edx, edx
mov rcx, r14
call fcn.14000fd70
jmp 0x1400106b2
mov edx, 0x20
mov ecx, 1
call sub.msvcrt.dll_calloc
mov qword [rax], rbx
mov r12, rax
mov dword [rax + 0x10], 1
mov qword [0x14012dd10], rax
jmp 0x140010881
call fcn.14000ffc0
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [0x28]
ud2
Function at 0x140096bf0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x140096c17
call rbp
cmp dword [rax], 4
jne 0x140096c34
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x140096c10
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14020dc30
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140277040]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rsi, [0x14026547c]
mov rcx, rsi
call fcn.140221ad0
mov qword [0x14028cc00], rax
lea rbx, [rsp + 0x30]
xor eax, eax
mov edi, 0x28
mov word [rsp + 0x30], ax
mov dl, 0x50
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14020dc9d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14020dc90
cmp rcx, 1
jb 0x14020dd62
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14020dcc0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14024bec8
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14020dc80
lea rdx, [0x140265484]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, str.PYTHONHOME
call fcn.140221ad0
mov cl, 1
mov qword [0x14028cc18], rax
call fcn.140222f80
mov rdx, rax
lea rcx, str.PYTHONHOME
call fcn.140221bf0
mov cl, 1
call fcn.140222f80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14023cdd0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.1402413f0
int3

Function at 0x140221ad0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.140258070
sub rsp, rax
mov rax, qword [0x140277040]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x140221b92
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x140221b3d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140221b30
cmp rcx, 1
jb 0x140221bea
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140221b60
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14024bec8
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140221b20
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140221bc3
lea rcx, [rsp + 0x80]
call fcn.14024d568
jmp 0x140221bc5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14023cdd0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1402413f0
int3
Function at 0x140221bf0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140277040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x140221c95
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x140221c4d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140221c40
cmp rcx, 1
jb 0x140221cc6
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140221c63
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14024bec8
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140221c30
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14023cdd0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.1402413f0
int3
Function at 0x140221cd0
Capabilities:
Set environment variable

Disassembly:
push rbx
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x140277040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x14028cc78]
mov rbx, r8
mov r14, rdx
mov r15, rcx
test rax, rax
jne 0x140221d21
lea rcx, [0x1402648fc]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [0x14028cc78], rax
test rax, rax
je 0x140221ed4
mov qword [rsp + 0xd8], rbp
lea rdx, str.environ
mov qword [rsp + 0x98], rsi
mov rcx, rax
mov qword [rsp + 0x90], rdi
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, r14
mov rdi, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov rbp, rax
test rbx, rbx
je 0x140221dbe
mov rdx, rbx
mov rcx, r14
call fcn.140221bf0
mov rdx, 0xffffffffffffffff
mov rcx, rbx
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov rdx, rbp
mov rcx, rdi
mov r8, rax
mov rbx, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
je 0x140221da5
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
int3
sub qword [rbx], 1
jne 0x140221e78
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x140221e78
movzx edx, byte [r14]
lea rbx, [rsp + 0x30]
xor eax, eax
mov word [rsp + 0x30], ax
lea esi, [rax + 0x28]
test dl, dl
je 0x140221e53
nop word [rax + rax]
cmp word [rbx], 0
mov rcx, rsi
mov rax, rbx
je 0x140221dfd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140221df0
cmp rcx, 1
jb 0x140221ece
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140221e20
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14024bec8
movzx edx, byte [r14 + 1]
inc r14
add rbx, 2
dec rsi
test dl, dl
jne 0x140221de0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x140221e78
mov rcx, r15
call fcn.1400015a0
sub qword [rbp], 1
jne 0x140221e89
mov rax, qword [rbp + 8]
mov rcx, rbp
call qword [rax + 0x30]
sub qword [rdi], 1
jne 0x140221e99
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xd8]
mov rdi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14023cdd0
add rsp, 0xa0
pop r15
pop r14
pop rbx
ret
call fcn.1402413f0
int3
call fcn.1402413f0
int3
Function at 0x14023d7d4
Capabilities:
Parse pe header

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

Function at 0x140241750
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 0x1402415bb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1402415bb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1402415bb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1402415bb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1402415bb
cmp dword [rcx + 0x84], 0xe
jbe 0x1402415bb
cmp dword [rcx + 0xf8], 0
je 0x1402415bb
mov ecx, ebx
call fcn.14024166c
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.140241448
nop
cmp dword [rbp + 0x20], 0
je 0x140241609
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140241614
int3
xor r8d, r8d
xor edx, edx
jmp 0x14024154c
Function at 0x1402521a4
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 0x14025222b
mov rsi, rbx
cmp word [rax], bp
je 0x1402521ea
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1402521d4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1402521d0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14024fa2c
mov rdi, rax
test rax, rax
je 0x140252218
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140258650
mov rbp, rdi
xor ecx, ecx
call fcn.14024dee8
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 0x140255944
Capabilities:
Get file size

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

Function at 0x140257f80
Capabilities:
Parse pe header

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

Disassembly:
call fcn.1410ec1df
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 0x1410ec089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410ec06f
add dl, dl
jne 0x1410ec096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410ec0f6
xor eax, eax
add dl, dl
jne 0x1410ec0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410ec1ad
add dl, dl
jne 0x1410ec0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410ec0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410ec0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410ec0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1410ec0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1410ec07e
mov eax, 1
add dl, dl
jne 0x1410ec106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410ec113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410ec0fb
sub eax, ebx
mov ebx, 1
jne 0x1410ec14c
mov ecx, 1
add dl, dl
jne 0x1410ec12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410ec13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410ec123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410ec07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1410ec168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410ec175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410ec15d
cmp eax, 0x7d00
jae 0x1410ec19b
cmp eax, 0x500
jb 0x1410ec196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410ec07e
cmp eax, 0x7f
ja 0x1410ec19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410ec07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1410ec1d2
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 0x1410ec07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14002c4b0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14002c4bd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002c4cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14002c4b5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14002c4e5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14002c4d2
sub eax, 3
jb 0x14002c4ff
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14002c536
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14002c526
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14002c524
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14002c513
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14002c472
jmp 0x14002c4bd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xb800
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14002c582
cmp rsi, rcx
jae 0x14002c58a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14002c569
cmp al, 0x8f
ja 0x14002c569
cmp byte [rsi - 2], 0xf
je 0x14002c56f
sub al, 0xe8
cmp al, 1
ja 0x14002c553
cmp rsi, rcx
jae 0x14002c58a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14002c559
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14002c58a
lodsb al, byte [rsi]
jmp 0x14002c569
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2a000]
mov eax, dword [rdi]
or eax, eax
je 0x14002c5e7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2d388]
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 0x14002c597
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 0x14002c5e1
mov qword [rbx], rax
add rbx, 8
jmp 0x14002c5b7
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 0x14002c621
cmp al, 0xef
ja 0x14002c613
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14002c5f3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14002c602
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
mov byte [fcn.14002c6a0], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14002c6a0
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14002c690
sub rsp, 0xffffffffffffff80
jmp 0x1400013d0
Function at 0x1407a2dd0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1407a2ddd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1407a2ded
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1407a2dd5
lea eax, [rcx + 1]
jmp 0x1407a2dfb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1407a2e0e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1407a2df4
sub eax, 3
jb 0x1407a2e2e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1407a2e7d
sar eax, 1
movsxd rbp, eax
jb 0x1407a2e64
jmp 0x1407a2e3c
add ebx, ebx
jne 0x1407a2e3a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1407a2e64
inc ecx
add ebx, ebx
jne 0x1407a2e4a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1407a2e64
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1407a2e5d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1407a2e4c
add ecx, 2
jmp 0x1407a2e69
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1407a2d92
jmp 0x1407a2ddd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x799000]
mov eax, dword [rdi]
or eax, eax
je 0x1407a2edd
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x7a3000]
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 0x1407a2e8d
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 0x1407a2ed7
mov qword [rbx], rax
add rbx, 8
jmp 0x1407a2ead
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 0x1407a2f21
cmp al, 0xef
ja 0x1407a2f09
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1407a2ee9
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1407a2ef8
mov eax, dword [rdi]
add rdi, 4
jmp 0x1407a2ef8
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
mov byte [fcn.1407a2fa0], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1407a2fa0
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1407a2f90
sub rsp, 0xffffffffffffff80
jmp 0x1400014f0