joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400535e0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1400532e0
cmp qword [0x14006c048], 0
mov rbx, rax
je 0x1400536f8
test rax, rax
je 0x1400536f8
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.1400568a0
cmp eax, 1
je 0x140053706
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
lea r9, [rbx + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.140057ffc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140059ae8]
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 0x14005370c
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.1400530b0
nop
jmp fcn.140057ffc

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

Disassembly:
sub rsp, 0x28
call fcn.140053530
mov ecx, dword [0x140059ae8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140053740
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1400535e0
Function at 0x140053eb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
test rdx, rdx
mov rbx, rcx
mov rsi, rdx
je 0x140053fd8
cmp eax, 1
je 0x140053f0b
call fcn.140052e30
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.1400527b0
mov r12d, dword [rbx]
test r12d, r12d
je 0x140053f20
cmp r12d, 1
jne 0x140053fb0
mov rcx, rbp
call fcn.140052aa0
test rdi, rdi
je 0x140053f0b
mov rcx, rdi
call fcn.1400531d0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x1400532b0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140053530
mov ecx, dword [0x140059ae8]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140054018
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140053530
mov ecx, dword [0x140059ae8]
call r12
test rax, rax
je 0x140054000
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140053530
mov ecx, dword [0x140059ae8]
call r12
test rax, rax
je 0x140053ff0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140053ef6
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.140052210
jmp 0x140053ef6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400535e0
test rax, rax
jne 0x140053f99
jmp 0x140058015
call fcn.1400535e0
test rax, rax
jne 0x140053f75
jmp 0x14005802e
call fcn.1400535e0
test rax, rax
jne 0x140053f4f
jmp 0x140058024
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 0x1400542a0
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.140053530
mov ecx, dword [0x140059ae8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140054318
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.1400568b0
cmp esi, dword [rbx + 0x48]
jae 0x1400542f3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x1400542f3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.1400568f0
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.1400535e0
mov rbx, rax
jmp 0x1400542cd
Function at 0x140054330
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, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140053530
mov ecx, dword [0x140059ae8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140054440
lea r14, [rbx + 0x68]
mov rcx, r14
call fcn.1400568b0
cmp esi, dword [rbx + 0x48]
jae 0x1400543c0
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r14
mov byte [rax + rsi], 1
call fcn.1400568f0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x50]
lea r15d, [rsi + 1]
movsxd r13, r15d
lea rdx, [r13*8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
test rax, rax
mov rdi, rax
je 0x14005444d
mov rcx, qword [rbx + 0x58]
mov rdx, r13
movq xmm6, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
movq xmm0, rax
test rax, rax
mov r13, rax
punpcklqdq xmm6, xmm0
je 0x14005444d
mov eax, dword [rbx + 0x48]
mov edx, r15d
lea rcx, [rdi + rax*8]
sub edx, eax
lea r8, [rdx*8]
xor edx, edx
call fcn.1400524a0
mov edx, dword [rbx + 0x48]
mov r8d, r15d
lea rcx, [r13 + rdx]
sub r8d, edx
xor edx, edx
call fcn.1400524a0
movaps xmmword [rbx + 0x50], xmm6
mov dword [rbx + 0x48], r15d
jmp 0x140054384
call fcn.1400535e0
mov rbx, rax
jmp 0x14005436f
mov rcx, r14
call fcn.1400568f0
mov eax, 0xc
jmp 0x1400543a2

Function at 0x1400544d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140053530
mov ecx, dword [0x140059ae8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400544f8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.1400535e0
test rax, rax
jne 0x1400544ea
add rsp, 0x28
ret

Function at 0x140054560
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140053530
mov ecx, dword [0x140059ae8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140054588
add rax, 0x18
add rsp, 0x28
ret
call fcn.1400535e0
test rax, rax
jne 0x14005457a
jmp 0x14005457e

Function at 0x1400546a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140069298]
test eax, eax
jne 0x1400546b8
xor eax, eax
add rsp, 0x28
ret
call fcn.140053530
mov ecx, dword [0x140059ae8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400546e8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x1400546ae
test byte [rax + 0x40], 3
je 0x1400546ae
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x1400546b0
call fcn.1400535e0
test rax, rax
jne 0x1400546ce
jmp 0x1400546ae
Function at 0x140054700
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140053530
mov ecx, dword [0x140059ae8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140054740
test ebx, ebx
jle 0x140054730
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.1400535e0
test rax, rax
jne 0x14005471d
add rsp, 0x20
pop rbx
ret

Function at 0x140054830
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140053530
mov ecx, dword [0x140059ae8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400548a8
test byte [rbx + 0x40], 0xc
jne 0x14005485f
mov eax, dword [0x140069298]
test eax, eax
jne 0x140054870
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400527b0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140054893
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140054893
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400548bc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140052aa0
call fcn.1400535e0
test rax, rax
mov rbx, rax
jne 0x14005484f
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400548da
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140052aa0
call fcn.140054750
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140054960
call fcn.140055a40
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140054998
call fcn.140053530
mov ecx, dword [0x140059ae8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400549f0
test esi, esi
je 0x140054976
call fcn.140054830
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400549d0
mov edx, edi
call fcn.140055af0
call fcn.140054830
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140053530
mov ecx, dword [0x140059ae8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400549e0
call fcn.140054830
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140054830
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140053530
mov ecx, dword [0x140059ae8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x140054935
call fcn.1400535e0
mov rbx, rax
jmp 0x140054935
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14005494e
call fcn.1400535e0
jmp 0x140054976
call fcn.1400535e0
mov rbx, rax
jmp 0x140054931
Function at 0x1400548f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140053530
mov ecx, dword [0x140059ae8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400548a8
test byte [rbx + 0x40], 0xc
jne 0x14005485f
mov eax, dword [0x140069298]
test eax, eax
jne 0x140054870
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400527b0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140054893
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140054893
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400548bc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140052aa0
call fcn.1400535e0
test rax, rax
mov rbx, rax
jne 0x14005484f
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400548da
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140052aa0
call fcn.140054750
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140054960
call fcn.140055a40
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140054998
call fcn.140053530
mov ecx, dword [0x140059ae8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400549f0
test esi, esi
je 0x140054976
call fcn.140054830
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400549d0
mov edx, edi
call fcn.140055af0
call fcn.140054830
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140053530
mov ecx, dword [0x140059ae8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400549e0
call fcn.140054830
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140054830
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140053530
mov ecx, dword [0x140059ae8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x140054935
call fcn.1400535e0
mov rbx, rax
jmp 0x140054935
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14005494e
call fcn.1400535e0
jmp 0x140054976
call fcn.1400535e0
mov rbx, rax
jmp 0x140054931

Function at 0x140054a00
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140053530
mov ecx, dword [0x140059ae8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140054a70
test esi, esi
je 0x140054a50
call fcn.140054830
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140054a80
mov edx, esi
call fcn.140055af0
call fcn.140054830
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140054830
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140054830
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400535e0
mov rbx, rax
jmp 0x140054a21
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140054a3a
Function at 0x14001130c
Capabilities:
Terminate process

Disassembly:
jmp 0x140019000
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400113d4
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017eb0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017ed0
xor al, al
jmp 0x140017f51
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017ee3
xor al, al
jmp 0x140017f51
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140017f0d
xor al, al
jmp 0x140017f51
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017f21
xor al, al
jmp 0x140017f51
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140017f33
xor al, al
jmp 0x140017f51
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140017f4f
xor al, al
jmp 0x140017f51
mov al, 1
add rsp, 0x38
ret
Function at 0x140011203
Capabilities:
Terminate process

Disassembly:
jmp 0x140013270
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x14001128f
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400145c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400145e0
xor al, al
jmp 0x140014661
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400145f3
xor al, al
jmp 0x140014661
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001461d
xor al, al
jmp 0x140014661
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014631
xor al, al
jmp 0x140014661
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014643
xor al, al
jmp 0x140014661
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001465f
xor al, al
jmp 0x140014661
mov al, 1
add rsp, 0x38
ret
Function at 0x2fc4d2900
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 0x2fc4d3302
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f5108]
test eax, eax
je 0x2fc4d339a
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f5110]
mov qword [rbp - 8], rax
jmp 0x2fc4d337e
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 0x2fc4d3372
cmp qword [rbp - 0x10], 0
je 0x2fc4d3372
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 0x2fc4d3338
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d339b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d34a0
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 0x2fc4d34c8
mov eax, 0
jmp 0x2fc4d3516
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 0x2fc4d34f1
mov eax, 0
jmp 0x2fc4d3516
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 0x2fc4d3511
mov eax, 0
jmp 0x2fc4d3516
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d351c
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 0x2fc4d359a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d3591
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 0x2fc4d3591
mov rax, qword [rbp - 8]
jmp 0x2fc4d35af
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 0x2fc4d3564
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001b98
Capabilities:
Parse pe header

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

Function at 0x140731058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407311df
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 0x140731089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14073106f
add dl, dl
jne 0x140731096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407310f6
xor eax, eax
add dl, dl
jne 0x1407310a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407311ad
add dl, dl
jne 0x1407310b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407310c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407310d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407310dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407310ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14073107e
mov eax, 1
add dl, dl
jne 0x140731106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140731113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407310fb
sub eax, ebx
mov ebx, 1
jne 0x14073114c
mov ecx, 1
add dl, dl
jne 0x14073112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14073113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140731123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140731168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140731175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14073115d
cmp eax, 0x7d00
jae 0x14073119b
cmp eax, 0x500
jb 0x140731196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073107e
cmp eax, 0x7f
ja 0x14073119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407311d2
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 0x14073107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001bb00
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r10, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
cmp byte [r8 + 7], sil
je 0x14001bb34
mov eax, esi
lea ecx, [rax - 0x65]
xor byte [r8 + rax], cl
inc rax
cmp rax, 6
jb 0x14001bb20
mov byte [r8 + 7], sil
add r8, 6
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.1400126b0
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14001bb59
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140026f10
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14001bbd3
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001bbce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001bbce
call qword [0x140081a10]
int3
call fcn.14007cfdc
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x14001bbe0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r10, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
cmp byte [r8 + 9], sil
je 0x14001bc14
mov eax, esi
lea ecx, [rax - 0x65]
xor byte [r8 + rax], cl
inc rax
cmp rax, 8
jb 0x14001bc00
mov byte [r8 + 9], sil
add r8, 8
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.1400126b0
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14001bc39
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140026f10
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14001bcb3
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001bcae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001bcae
call qword [0x140081a10]
int3
call fcn.14007cfdc
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret