joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180032290
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x180046af4], ebp
je 0x1800322e7
cmp rbx, 0x20
jae 0x1800322d0
xor ecx, ecx
jmp 0x1800322d2
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180046af4], ebp
jne 0x1800322c6
cmp qword [0x180046b00], r15
je 0x1800323e3
test rdi, rdi
jne 0x180032307
mov ecx, esi
call fcn.180031de0
mov ebp, eax
jmp 0x1800323e8
mov ecx, dword [0x180046cdc]
mov ebx, r15d
test ecx, ecx
je 0x18003232f
mov r8, qword [0x180046cd0]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x180032339
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180032320
mov ebp, 4
jmp 0x1800323e8
cmp ebx, 0xffffffff
je 0x18003232f
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x1800323da
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180031b00
mov edx, esi
mov ecx, ebx
call fcn.180031cb0
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x1800323e8
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800323c4
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800323ba
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180032390
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180046b00]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800323e8
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x1800323e8
mov ebp, 2
xchg dword [0x180046af4], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x180033290
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
test edx, edx
je 0x1800332c6
cmp edx, 1
jne 0x1800332f0
xor eax, eax
lea r8, [0x180033270]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
cmp dword [0x180046c08], 0
je 0x1800332f0
call fcn.180032410
mov rcx, qword [0x180046c00]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov qword [0x180046c00], rax
mov dword [0x180046c08], eax
mov eax, 1
add rsp, 0x38
ret
Function at 0x1400036a0
Capabilities:
Capture screenshot

Disassembly:
push rbx
sub rsp, 0x50
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 1
mov dword [0x14000ff00], eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
lea rcx, str.DISPLAY
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [0x14000ff04], eax
call qword [sym.imp.GDI32.dll_CreateDCA]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r8d, dword [0x14000ff24]
mov edx, dword [0x14000ff00]
add r8d, dword [0x14000ff04]
add edx, dword [0x14000ff20]
mov rcx, rbx
mov qword [0x14000ff38], rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rcx, qword [0x14000ff38]
mov rdx, rax
mov qword [0x14000ff30], rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r8d, dword [0x14000ff04]
mov edx, dword [0x14000ff00]
mov rcx, rbx
mov qword [0x14000ff18], rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rcx, qword [0x14000ff18]
mov rdx, rax
mov qword [0x14000ff10], rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov r9d, dword [0x14000ff00]
mov rcx, qword [0x14000ff38]
xor eax, eax
mov dword [rsp + 0x40], 0xcc0020
xor r8d, r8d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov eax, dword [0x14000ff04]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.GDI32.dll_BitBlt]
mov rcx, rbx
add rsp, 0x50
pop rbx
jmp qword [sym.imp.GDI32.dll_DeleteDC]

Function at 0x140003e50
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
mov r8, rcx
lea rdx, [0x14000b434]
lea rcx, [0x14000ffe0]
mov dword [0x14000ffd0], 0
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [0x140003dc0]
xor edx, edx
mov qword [0x1400103e0], 0
call qword [sym.imp.USER32.dll_EnumWindows]
test rbx, rbx
je 0x140003ea3
mov rax, qword [0x1400103e0]
mov qword [rbx], rax
mov eax, dword [0x14000ffd0]
add rsp, 0x20
pop rbx
ret

Function at 0x140004e20
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x30
mov r10, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
lea r9d, [rax + 1]
repne scasb al, byte [rdi]
not rcx
and ecx, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x30
pop rdi
ret

Function at 0x140004e70
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x38
ret

Function at 0x140004eb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140004eee
cmp dword [rsp + 0x30], 4
jne 0x140004eee
mov eax, 1
add rsp, 0x48
ret
xor eax, eax
add rsp, 0x48
ret
Function at 0x140005060
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], 0
call fcn.140004f00
test eax, eax
jne 0x140005086
add rsp, 0x20
pop rbx
ret
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x30], rdi
xor eax, eax
mov rdi, rbx
lea rdx, str.MagnifyingGlass
repne scasb al, byte [rdi]
not rcx
dec rcx
jne 0x1400050cc
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov r8, rbx
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.140004e20
mov rcx, rbx
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret

Function at 0x140005100
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0
call fcn.140004f00
test eax, eax
jne 0x140005122
xor eax, eax
add rsp, 0x28
ret
mov rcx, qword [rsp + 0x30]
lea r8, str.Test
lea rdx, str.Test
call fcn.140004e20
test eax, eax
je 0x14000511b
mov rcx, qword [rsp + 0x30]
lea rdx, str.Test
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x28
ret

Function at 0x140005330
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0
call fcn.140004fd0
test eax, eax
jne 0x140005352
xor eax, eax
add rsp, 0x28
ret
mov rcx, qword [rsp + 0x30]
lea r8, str.Test
lea rdx, str.Test
call fcn.140004e20
test eax, eax
je 0x14000534b
mov rcx, qword [rsp + 0x30]
lea rdx, str.Test
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x28
ret
Function at 0x1400056a7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000f030]
jne 0x14000544a
rol rcx, 0x10
test cx, 0xffff
jne 0x140005446
repz ret
ror rcx, 0x10
jmp 0x140005600
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140010500]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400105f8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140005685
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140010500]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400056a7
mov rax, qword [rsp + 0x88]
mov qword [0x1400105f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140010598], rax
mov rax, qword [0x1400105f8]
mov qword [0x140010470], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140010580], rax
mov dword [0x140010460], 0xc0000409
mov dword [0x140010464], 1
mov rax, qword [0x14000f030]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000f038]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400104f8], eax
mov ecx, 1
call fcn.140006f0c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000b688]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400104f8], 0
jne 0x14000572e
mov ecx, 1
call fcn.140006f0c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140005b08
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140005978
Function at 0x140007a08
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14000f030]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140006ab4
xor ebx, ebx
cmp qword [0x1400113f8], rbx
mov rdi, rax
jne 0x140007b1b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140007bf2
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140007bf2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400113f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140011400], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140011408], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140011418], rax
test rax, rax
je 0x140007b12
lea rdx, [0x14000c290]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140011410], rax
jmp 0x140007b22
mov rax, qword [0x140011410]
jmp 0x140007b29
mov rax, qword [0x140011410]
mov r11, qword [0x140011418]
cmp rax, rdi
je 0x140007b90
cmp r11, rdi
je 0x140007b90
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140011418]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140007b90
test rax, rax
je 0x140007b90
call rsi
test rax, rax
je 0x140007b8a
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140007b8a
test byte [rsp + 0x40], 1
jne 0x140007b90
bts ebp, 0x15
jmp 0x140007bd0
mov rcx, qword [0x140011400]
cmp rcx, rdi
je 0x140007bd0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140007bd0
call rax
mov rbx, rax
test rax, rax
je 0x140007bd0
mov rcx, qword [0x140011408]
cmp rcx, rdi
je 0x140007bd0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140007bd0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400113f8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140007bf2
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140007bf4
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140005430
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x2fc4db2a0
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 0x2fc4dbca2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc500108]
test eax, eax
je 0x2fc4dbd3a
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc500110]
mov qword [rbp - 8], rax
jmp 0x2fc4dbd1e
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 0x2fc4dbd12
cmp qword [rbp - 0x10], 0
je 0x2fc4dbd12
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 0x2fc4dbcd8
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4dbd3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dbe40
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 0x2fc4dbe68
mov eax, 0
jmp 0x2fc4dbeb6
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 0x2fc4dbe91
mov eax, 0
jmp 0x2fc4dbeb6
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 0x2fc4dbeb1
mov eax, 0
jmp 0x2fc4dbeb6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dbebc
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 0x2fc4dbf3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dbf31
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 0x2fc4dbf31
mov rax, qword [rbp - 8]
jmp 0x2fc4dbf4f
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 0x2fc4dbf04
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d9400
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 0x2fc4d9e02
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fe108]
test eax, eax
je 0x2fc4d9e9a
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fe110]
mov qword [rbp - 8], rax
jmp 0x2fc4d9e7e
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 0x2fc4d9e72
cmp qword [rbp - 0x10], 0
je 0x2fc4d9e72
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 0x2fc4d9e38
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d9e9b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d9fa0
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 0x2fc4d9fc8
mov eax, 0
jmp 0x2fc4da016
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 0x2fc4d9ff1
mov eax, 0
jmp 0x2fc4da016
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 0x2fc4da011
mov eax, 0
jmp 0x2fc4da016
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4da01c
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 0x2fc4da09a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4da091
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 0x2fc4da091
mov rax, qword [rbp - 8]
jmp 0x2fc4da0af
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 0x2fc4da064
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x141178058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1411781df
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 0x141178089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14117806f
add dl, dl
jne 0x141178096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411780f6
xor eax, eax
add dl, dl
jne 0x1411780a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411781ad
add dl, dl
jne 0x1411780b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411780c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411780d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411780dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1411780ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14117807e
mov eax, 1
add dl, dl
jne 0x141178106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141178113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411780fb
sub eax, ebx
mov ebx, 1
jne 0x14117814c
mov ecx, 1
add dl, dl
jne 0x14117812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14117813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141178123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14117807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141178168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141178175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14117815d
cmp eax, 0x7d00
jae 0x14117819b
cmp eax, 0x500
jb 0x141178196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14117807e
cmp eax, 0x7f
ja 0x14117819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14117807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1411781d2
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 0x14117807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002623
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14001a050]
jne 0x140001a0a
rol rcx, 0x10
test cx, 0xffff
jne 0x140001a06
repz ret
ror rcx, 0x10
jmp 0x14000257c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14001b0c0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14001b1b8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140002601
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14001b0c0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140002623
mov rax, qword [rsp + 0x88]
mov qword [0x14001b1b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14001b158], rax
mov rax, qword [0x14001b1b8]
mov qword [0x14001b030], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14001b140], rax
mov dword [0x14001b020], 0xc0000409
mov dword [0x14001b024], 1
mov rax, qword [0x14001a050]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001a058]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14001b0b8], eax
mov ecx, 1
call fcn.140004f94
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400144b0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14001b0b8], 0
jne 0x1400026aa
mov ecx, 1
call fcn.140004f94
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140002af4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140002964