joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180011136
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x180014a50
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x30]
lea rcx, [0x18002059f]
call fcn.1800111fe
mov byte [rbp + 8], 0xe9
mov byte [rbp + 9], 0
mov byte [rbp + 0xa], 0
mov byte [rbp + 0xb], 0
mov byte [rbp + 0xc], 0
mov byte [rbp + 0xd], 0xc3
lea r9, [rbp]
mov r8d, 0x40
mov edx, 6
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180014abc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_install_hook:_VirtualProtect_failed.___08x_
call fcn.1800111ea
mov eax, dword [rbp + 0x60]
mov ecx, dword [rbp + 0x68]
sub ecx, eax
mov eax, ecx
sub eax, 5
mov dword [rbp + 4], eax
mov eax, 1
imul rax, rax, 1
lea rax, [rbp + rax + 8]
mov r8d, 4
lea rdx, [rbp + 4]
mov rcx, rax
call fcn.1800110ff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x20], 0
mov r9d, 6
lea r8, [rbp + 8]
mov rdx, qword [rbp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x180014b2a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_install_hook:_WriteProcessMemory_failed.___08x_
call fcn.1800111ea
lea r9, [rbp]
mov r8d, dword [rbp]
mov edx, 6
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180014b59
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_install_hook:_VirtualProtect_failed.___08x_
call fcn.1800111ea
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, 6
mov rdx, qword [rbp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x180014b8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_install_hook:_FlushInstructionCache_failed.___08x_
call fcn.1800111ea
lea rsp, [rbp + 0x50]
pop rbp
ret

Function at 0x18001114f
Capabilities:
Create thread

Disassembly:
jmp 0x180013ca0
push rbp
sub rsp, 0x90
lea rbp, [rsp + 0x30]
lea rcx, [0x1800203fa]
call fcn.1800111fe
mov qword [rbp + 8], 0
call fcn.180011096
mov dword [rbp], eax
mov eax, dword [rbp]
mov dword [rbp + 0x50], eax
cmp dword [rbp + 0x50], 0
je 0x180013ce4
cmp dword [rbp + 0x50], 1
je 0x180013cf1
cmp dword [rbp + 0x50], 2
je 0x180013cfe
jmp 0x180013d17
lea rax, [0x1800111ef]
mov qword [rbp + 8], rax
jmp 0x180013d17
lea rax, [0x18001122b]
mov qword [rbp + 8], rax
jmp 0x180013d17
xor r9d, r9d
lea r8, str.rugburn
lea rdx, str.No_GameGuard_patch_is_available_for_PangyaTH.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
cmp qword [rbp + 8], 0
jne 0x180013d39
xor r9d, r9d
lea r8, str.rugburn
lea rdx, str.It_looks_like_no_patch_exists_for_this_version_of_PangYa._nThe_game_will_likely_exit_a_couple_minutes_after_detecting_GameGuard_is_not_present.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x180013d5b
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rsp, [rbp + 0x60]
pop rbp
ret
Function at 0x180011154
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x180014630
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x20]
lea rcx, [0x1800203fa]
call fcn.1800111fe
lea rax, [0x1800197d4]
mov qword [rbp + 8], rax
mov dword [rbp + 0x10], 0
mov eax, dword [rbp + 0x80]
lea r9, [rbp]
mov r8d, 0x40
mov edx, eax
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rbp + 0x78]
cmp qword [rbp + 8], rax
je 0x1800146c8
mov eax, dword [rbp + 0x80]
mov r8d, eax
mov rdx, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x70]
call fcn.1800110ff
mov eax, dword [rbp + 0x10]
inc eax
mov dword [rbp + 0x10], eax
cmp dword [rbp + 0x10], 5
jne 0x1800146bb
jmp 0x1800146c8
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18001468b
mov eax, dword [rbp + 0x80]
lea r9, [rbp]
mov r8d, dword [rbp]
mov edx, eax
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rbp + 0x10]
mov rdx, qword [rbp + 0x88]
lea rcx, str.Patch___Code_:__s___d__r_n
call fcn.180011050
lea rsp, [rbp + 0x60]
pop rbp
ret

Function at 0x180011159
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x180014800
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x20]
lea rcx, [0x18002059f]
call fcn.1800111fe
mov eax, dword [rbp + 0x78]
add eax, 6
mov dword [rbp], eax
mov eax, dword [rbp]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp + 0x10], rax
mov eax, dword [rbp + 0x78]
mov ecx, dword [rbp + 0x70]
mov r8d, eax
mov edx, ecx
mov rcx, qword [rbp + 0x10]
call fcn.1800110ff
mov eax, dword [rbp + 0x10]
mov ecx, dword [rbp + 0x70]
sub ecx, eax
mov eax, ecx
sub eax, 5
mov dword [rbp + 8], eax
mov eax, dword [rbp + 0x78]
mov rcx, qword [rbp + 0x10]
mov byte [rcx + rax], 0xe9
mov eax, dword [rbp + 0x78]
inc eax
mov eax, eax
mov rcx, qword [rbp + 0x10]
add rcx, rax
mov rax, rcx
mov r8d, 4
lea rdx, [rbp + 8]
mov rcx, rax
call fcn.1800110ff
mov eax, dword [rbp + 0x78]
add eax, 5
mov eax, eax
mov rcx, qword [rbp + 0x10]
mov byte [rcx + rax], 0xc3
mov eax, dword [rbp]
lea r9, [rbp + 4]
mov r8d, 0x40
mov edx, eax
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rbp + 0x10]
lea rsp, [rbp + 0x60]
pop rbp
ret

Function at 0x1800111ae
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x1800115f0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x70
lea rbp, [rsp + 0x20]
lea rcx, [0x1800200ad]
call fcn.1800111fe
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x180011623
mov dword [rbp + 0x40], 1
jmp 0x18001162a
mov dword [rbp + 0x40], 0
mov eax, dword [rbp + 0x40]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x1800111ea
Capabilities:
Terminate process

Disassembly:
jmp 0x180011530
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
sub rsp, 0x70
lea rbp, [rsp + 0x20]
lea rcx, [0x1800200ad]
call fcn.1800111fe
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp], rax
lea rax, [rbp + 0x68]
mov qword [rbp + 8], rax
mov r8, qword [rbp + 8]
mov rdx, qword [rbp + 0x60]
mov rcx, qword [rbp]
call qword [sym.imp.USER32.dll_wvsprintfA]
mov qword [rbp + 8], 0
mov r9d, 0x10
lea r8, str.rugburn
mov rdx, qword [rbp]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [str.ts_v_]
mov dword [rax], 1
mov rax, qword [str.xs_v_]
mov dword [rax], 1
mov rax, qword [str.s_v_]
mov dword [rax], 1
mov rax, qword [str.Ps_v_]
mov dword [rax], 1
mov rax, qword [0x1400aef30]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140004920
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x140004941
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp fcn.140023a08

Function at 0x14000b8a0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
cmp qword [0x1400b7150], 0
mov r12, rcx
mov rbx, rdx
je 0x14000b900
lea r13, [rsp + 0x20]
mov rdx, rcx
mov rcx, r13
call fcn.14000b730
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x1400b7150]
test r12, r12
je 0x14000b8e4
test byte [r12 + 7], 0x40
je 0x14000b938
lea rcx, [0x140030300]
call fcn.14001e050
cmp byte [rax], 0
jne 0x14000b958
add rsp, 0x30
pop rbx
pop r12
pop r13
ret
mov ecx, 2
call qword [fcn.140024120]
mov rcx, r12
mov r8, rbx
mov edx, 1
mov r13, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x30
pop rbx
pop r12
pop r13
jmp fcn.140023a08
lea rcx, [0x140030320]
call fcn.14001e050
mov rdx, r12
mov rcx, rax
call fcn.1400069d0
jmp 0x14000b8e4
mov byte [rax], 0
lea rcx, [0x140030200]
call fcn.14001e050
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x30
pop rbx
pop r12
pop r13
jmp fcn.14000a470
Function at 0x14000cad0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea r14, [0x1400b7120]
xor r12d, r12d
lea rdi, [0x140030300]
mov rsi, rcx
mov rbx, rdx
lea rbp, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r13, qword [fcn.140024120]
jmp 0x14000cb1a
add r12, 1
jo 0x14000cbe8
cmp r12, rbx
jge 0x14000cb70
test r12, r12
js 0x14000cbc8
mov r15, r12
mov ecx, 1
call r13
shl r15, 4
xor r8d, r8d
mov rdx, rbp
add r15, rsi
mov rcx, rax
movdqu xmm0, xmmword [r15]
movaps xmmword [rsp + 0x20], xmm0
call fcn.14000c980
mov rcx, rdi
call fcn.14001e050
cmp byte [rax], 0
je 0x14000cb10
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [fcn.140024120]
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x1400ac381]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbx
mov rcx, rax
call fcn.140023a08
mov rcx, r14
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [rbx - 1]
mov rcx, r12
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.14000a7d0
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140007f90

Function at 0x14001cd00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140024120
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140024120
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14001d932
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400b7408]
test eax, eax
je 0x14001d9ca
lea rax, [0x1400b73e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400b7410]
mov qword [rbp - 8], rax
jmp 0x14001d9ae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14001d9a2
cmp qword [rbp - 0x10], 0
je 0x14001d9a2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14001d968
lea rax, [0x1400b73e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001d9cb
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14001dad0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14001daf8
mov eax, 0
jmp 0x14001db46
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14001db21
mov eax, 0
jmp 0x14001db46
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14001db41
mov eax, 0
jmp 0x14001db46
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14001db4c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001dbca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14001dbc1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14001dbc1
mov rax, qword [rbp - 8]
jmp 0x14001dbdf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14001db94
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140025514
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x14002565e
mov rcx, qword [rbp + 0x10]
call fcn.140029aed
cmp eax, 1
jne 0x140025651
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x140025607
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x14002561d
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x140025603
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x14002563c
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sub.msvcrt.dll_abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x14002565f
nop
add rsp, 0x90
pop rbp
ret
Function at 0x140026855
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [0x14002667b]
mov rdx, rax
lea rax, [0x1400b7e90]
mov rcx, rax
call fcn.140025c86
mov eax, dword [0x1400ab2b0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x1400268a8
mov rax, qword [rbp - 0x10]
jmp 0x140026a08
call fcn.1400253f0
mov qword [rbp - 0x10], rax
mov rax, qword [0x1400b9050]
test rax, rax
je 0x1400268c4
cmp qword [rbp - 0x10], 0
jne 0x1400268ce
mov eax, 0
jmp 0x140026a08
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call fcn.140025514
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x1400269a9
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x1400ab2b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x140026a04
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140026b02
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call fcn.140026855
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call fcn.1400266a9
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x140026b6f
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x1400ab2b0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140026cb3
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x140026c0c
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140026bc7
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.1400252cc
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400ab2b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x140026cb3
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140026c46
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x140026cb3
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.1400252cc
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400ab2b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x14056f0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14056f237
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 0x14056f0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14056f0c7
add dl, dl
jne 0x14056f0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14056f14e
xor eax, eax
add dl, dl
jne 0x14056f0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14056f205
add dl, dl
jne 0x14056f10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14056f11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14056f128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14056f135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14056f142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14056f0d6
mov eax, 1
add dl, dl
jne 0x14056f15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14056f16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14056f153
sub eax, ebx
mov ebx, 1
jne 0x14056f1a4
mov ecx, 1
add dl, dl
jne 0x14056f186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14056f193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14056f17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14056f0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14056f1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14056f1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14056f1b5
cmp eax, 0x7d00
jae 0x14056f1f3
cmp eax, 0x500
jb 0x14056f1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14056f0d6
cmp eax, 0x7f
ja 0x14056f1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14056f0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14056f22a
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 0x14056f0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20