joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401a7480
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1401f68e0], 1
je 0x1401a74f8
lea rdi, [0x1401f68e0]
mov rcx, rdi
call fcn.1401a6d60
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.1401a66e0
mov esi, dword [0x1401f68e0]
test esi, esi
jne 0x1401a7508
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401b0df8], eax
cmp eax, 0xffffffff
je 0x1401abf86
mov dword [0x1401f68e0], 1
mov rcx, rbp
call fcn.1401a69d0
test rbx, rbx
je 0x1401a74f8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1401a7100
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x1401a74d8
mov ecx, 2
call qword [fcn.1401a5ce0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1401a74d8
call sub.msvcrt.dll_abort
nop

Function at 0x1401a7530
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1401a7210
cmp qword [0x1401f9048], 0
mov rbx, rax
je 0x1401a7648
test rax, rax
je 0x1401a7648
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.1401aa7b0
cmp eax, 1
je 0x1401a7656
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.1401abf8c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1401b0df8]
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 0x1401a765c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.1401a6fe0
nop
jmp fcn.1401abf8c

Function at 0x1401a7670
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1401a7480
mov ecx, dword [0x1401b0df8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1401a7690
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1401a7530
Function at 0x1401a7e00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x1401a7f28
cmp eax, 1
je 0x1401a7e5b
call fcn.1401a6d60
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.1401a66e0
mov r12d, dword [rbx]
test r12d, r12d
je 0x1401a7e70
cmp r12d, 1
jne 0x1401a7f00
mov rcx, rbp
call fcn.1401a69d0
test rdi, rdi
je 0x1401a7e5b
mov rcx, rdi
call fcn.1401a7100
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x1401a71e0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.1401a7480
mov ecx, dword [0x1401b0df8]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x1401a7f68
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.1401a7480
mov ecx, dword [0x1401b0df8]
call r12
test rax, rax
je 0x1401a7f50
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.1401a7480
mov ecx, dword [0x1401b0df8]
call r12
test rax, rax
je 0x1401a7f40
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x1401a7e46
mov ecx, 2
call qword [fcn.1401a5ce0]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1401a7e46
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1401a7530
test rax, rax
jne 0x1401a7ee9
jmp 0x1401abfa5
call fcn.1401a7530
test rax, rax
jne 0x1401a7ec5
jmp 0x1401abfbe
call fcn.1401a7530
test rax, rax
jne 0x1401a7e9f
jmp 0x1401abfb4
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x1401a81f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1401a7480
mov ecx, dword [0x1401b0df8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1401a8268
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.1401aa7c0
cmp esi, dword [rbx + 0x48]
jae 0x1401a8243
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x1401a8243
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.1401aa800
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1401a7530
mov rbx, rax
jmp 0x1401a821d
Function at 0x1401a8280
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.1401a7480
mov ecx, dword [0x1401b0df8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1401a8380
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.1401aa7c0
cmp esi, dword [rbx + 0x48]
jae 0x1401a8300
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.1401aa800
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x1401a838d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x1401a838d
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x1401a82cf
call fcn.1401a7530
mov rbx, rax
jmp 0x1401a82ba
mov rcx, r13
call fcn.1401aa800
mov eax, 0xc
jmp 0x1401a82ed

Function at 0x1401a8410
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1401a7480
mov ecx, dword [0x1401b0df8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1401a8438
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.1401a7530
test rax, rax
jne 0x1401a842a
add rsp, 0x28
ret

Function at 0x1401a84a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1401a7480
mov ecx, dword [0x1401b0df8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1401a84c8
add rax, 0x18
add rsp, 0x28
ret
call fcn.1401a7530
test rax, rax
jne 0x1401a84ba
jmp 0x1401a84be

Function at 0x1401a85e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401f68e8]
test eax, eax
jne 0x1401a85f8
xor eax, eax
add rsp, 0x28
ret
call fcn.1401a7480
mov ecx, dword [0x1401b0df8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1401a8628
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x1401a85ee
test byte [rax + 0x40], 3
je 0x1401a85ee
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x1401a85f0
call fcn.1401a7530
test rax, rax
jne 0x1401a860e
jmp 0x1401a85ee

Function at 0x1401a8640
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.1401a7480
mov ecx, dword [0x1401b0df8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1401a8680
test ebx, ebx
jle 0x1401a8670
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.1401a7530
test rax, rax
jne 0x1401a865d
add rsp, 0x20
pop rbx
ret
Function at 0x1401a8770
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.1401a7480
mov ecx, dword [0x1401b0df8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1401a87e8
test byte [rbx + 0x40], 0xc
jne 0x1401a879f
mov eax, dword [0x1401f68e8]
test eax, eax
jne 0x1401a87b0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1401a66e0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1401a87d3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1401a87d3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1401a87fc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1401a69d0
call fcn.1401a7530
mov rbx, rax
test rax, rax
jne 0x1401a878f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1401a881a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1401a69d0
call fcn.1401a8690
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1401a88a0
call fcn.1401a9950
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1401a88d8
call fcn.1401a7480
mov ecx, dword [0x1401b0df8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1401a8930
test esi, esi
je 0x1401a88b6
call fcn.1401a8770
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1401a8910
mov edx, edi
call fcn.1401a9a00
call fcn.1401a8770
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1401a7480
mov ecx, dword [0x1401b0df8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1401a8920
call fcn.1401a8770
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1401a8770
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1401a7480
mov ecx, dword [0x1401b0df8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1401a8875
call fcn.1401a7530
mov rbx, rax
jmp 0x1401a8875
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1401a888e
call fcn.1401a7530
jmp 0x1401a88b6
call fcn.1401a7530
mov rbx, rax
jmp 0x1401a8871
Function at 0x1401a8830
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.1401a7480
mov ecx, dword [0x1401b0df8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1401a87e8
test byte [rbx + 0x40], 0xc
jne 0x1401a879f
mov eax, dword [0x1401f68e8]
test eax, eax
jne 0x1401a87b0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1401a66e0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1401a87d3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1401a87d3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1401a87fc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1401a69d0
call fcn.1401a7530
mov rbx, rax
test rax, rax
jne 0x1401a878f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1401a881a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1401a69d0
call fcn.1401a8690
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1401a88a0
call fcn.1401a9950
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1401a88d8
call fcn.1401a7480
mov ecx, dword [0x1401b0df8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1401a8930
test esi, esi
je 0x1401a88b6
call fcn.1401a8770
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1401a8910
mov edx, edi
call fcn.1401a9a00
call fcn.1401a8770
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1401a7480
mov ecx, dword [0x1401b0df8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1401a8920
call fcn.1401a8770
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1401a8770
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1401a7480
mov ecx, dword [0x1401b0df8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1401a8875
call fcn.1401a7530
mov rbx, rax
jmp 0x1401a8875
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1401a888e
call fcn.1401a7530
jmp 0x1401a88b6
call fcn.1401a7530
mov rbx, rax
jmp 0x1401a8871

Function at 0x1401a8940
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.1401a7480
mov ecx, dword [0x1401b0df8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1401a89b0
test esi, esi
je 0x1401a8990
call fcn.1401a8770
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1401a89c0
mov edx, esi
call fcn.1401a9a00
call fcn.1401a8770
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1401a8770
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1401a8770
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1401a7530
mov rbx, rax
jmp 0x1401a8961
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1401a897a
Function at 0x140002b00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002b2d
xor eax, eax
jmp 0x140002c99
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002b67
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002b67
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002c99
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002c8c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002baa
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002bd5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002c91
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002c44
sub eax, 1
je 0x140002c44
cmp eax, 2
jne 0x140002c8c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002c91
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002c72
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140002c8c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002c91
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003970
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400030d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400031a3
cmp byte [rcx + 0x71], 0
je 0x1400031a3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000319f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003164
sub eax, 1
je 0x140003168
cmp eax, 2
jne 0x14000319f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003970
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003196
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000319f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000314c
xor al, al
jmp 0x14000314c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003970
add rsp, 0x60
pop rbx
ret

Function at 0x140004390
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400043da
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400043da
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400043da
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400043da
cmp dword [rcx + 0x84], 0xe
jbe 0x1400043da
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400043dc
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4cb4d0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4cbed2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f0108]
test eax, eax
je 0x2fc4cbf6a
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f0110]
mov qword [rbp - 8], rax
jmp 0x2fc4cbf4e
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 0x2fc4cbf42
cmp qword [rbp - 0x10], 0
je 0x2fc4cbf42
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 0x2fc4cbf08
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cbf6b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cc070
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 0x2fc4cc098
mov eax, 0
jmp 0x2fc4cc0e6
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 0x2fc4cc0c1
mov eax, 0
jmp 0x2fc4cc0e6
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 0x2fc4cc0e1
mov eax, 0
jmp 0x2fc4cc0e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cc0ec
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 0x2fc4cc16a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cc161
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 0x2fc4cc161
mov rax, qword [rbp - 8]
jmp 0x2fc4cc17f
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 0x2fc4cc134
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1406ef058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406ef1df
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 0x1406ef089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406ef06f
add dl, dl
jne 0x1406ef096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406ef0f6
xor eax, eax
add dl, dl
jne 0x1406ef0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406ef1ad
add dl, dl
jne 0x1406ef0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406ef0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406ef0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406ef0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406ef0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406ef07e
mov eax, 1
add dl, dl
jne 0x1406ef106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406ef113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406ef0fb
sub eax, ebx
mov ebx, 1
jne 0x1406ef14c
mov ecx, 1
add dl, dl
jne 0x1406ef12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406ef13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406ef123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406ef07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406ef168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406ef175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406ef15d
cmp eax, 0x7d00
jae 0x1406ef19b
cmp eax, 0x500
jb 0x1406ef196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406ef07e
cmp eax, 0x7f
ja 0x1406ef19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406ef07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406ef1d2
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 0x1406ef07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20