joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006790
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
xor r8, r8
push r8
push rax
pushfq
push r8
push rdx
sub rsp, 0xa8
push r8
push r15
push r14
push r13
push r12
push rbx
push r8
push rsi
push rdi
push rbp
push rax
push rdx
sub rsp, 0x280
movdqa xmmword [rsp + 0x2e0], xmm6
movdqa xmmword [rsp + 0x2f0], xmm7
movdqa xmmword [rsp + 0x300], xmm8
movdqa xmmword [rsp + 0x310], xmm9
movdqa xmmword [rsp + 0x320], xmm10
movdqa xmmword [rsp + 0x330], xmm11
movdqa xmmword [rsp + 0x340], xmm12
movdqa xmmword [rsp + 0x350], xmm13
movdqa xmmword [rsp + 0x360], xmm14
movdqa xmmword [rsp + 0x370], xmm15
mov eax, dword [0x1403e2078]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x20
add rax, rbx
lea rdx, [rsp + 0x20]
xor r8, r8
mov qword [rdx + 0x10], r8
mov byte [rdx + 0x19], 1
mov dword [rdx + 0x1c], 0xffffffff
mov byte [rdx + 0x18], 2
mov r8, qword [rax + 0x80]
mov qword [rdx], r8
mov qword [rax + 0x80], rdx
lea r8, [rsp + 0x280]
mov qword [rdx + 8], r8
call fcn.140119a60
int3
push r15
push r14
push r13
push r12
push rbx
push rsi
push rdi
push rbp
sub rsp, 0xd8
movdqa xmmword [rsp + 0x20], xmm6
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x50], xmm9
movdqa xmmword [rsp + 0x60], xmm10
movdqa xmmword [rsp + 0x70], xmm11
movdqa xmmword [rsp + 0x80], xmm12
movdqa xmmword [rsp + 0x90], xmm13
movdqa xmmword [rsp + 0xa0], xmm14
movdqa xmmword [rsp + 0xb0], xmm15
mov qword [rsp + 0x120], rcx
mov qword [rsp + 0x128], rdx
mov qword [rsp + 0x130], r8
mov qword [rsp + 0x138], r9
mov eax, dword [0x1403e2078]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x20
add rax, rbx
mov qword [rsp + 0xc0], rax
cmp rcx, qword [rax + 0x88]
sete byte [rsp + 0xd0]
lock and dword [rax + 0x38], 0xffffffef
mov rax, qword [r8 + 0x18]
mov rbx, qword [rax]
mov rax, qword [r8 + 0x20]
mov rbp, qword [rax]
mov rax, qword [r8 + 0x28]
mov rsi, qword [rax]
mov rax, qword [r8 + 0x30]
mov rdi, qword [rax]
mov rax, qword [r8 + 0x58]
mov r12, qword [rax]
mov rax, qword [r8 + 0x60]
mov r13, qword [rax]
mov rax, qword [r8 + 0x68]
mov r14, qword [rax]
mov rax, qword [r8 + 0x70]
mov r15, qword [rax]
movdqa xmm6, xmmword [r8 + 0x90]
movdqa xmm7, xmmword [r8 + 0xa0]
movdqa xmm8, xmmword [r8 + 0xb0]
movdqa xmm9, xmmword [r8 + 0xc0]
movdqa xmm10, xmmword [r8 + 0xd0]
movdqa xmm11, xmmword [r8 + 0xe0]
movdqa xmm12, xmmword [r8 + 0xf0]
movdqa xmm13, xmmword [r8 + 0x100]
movdqa xmm14, xmmword [r8 + 0x110]
movdqa xmm15, xmmword [r8 + 0x120]
mov rcx, qword [r8 + 0x78]
mov rdx, qword [rsp + 0x120]
call qword [rsp + 0x128]
mov r8, qword [rsp + 0x130]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rdx + 0x70]
cmp rcx, 0
je 0x140006920
mov r9, qword [rdx + 0x68]
mov qword [r9], rcx
mov qword [rdx + 0x68], 0
mov qword [rdx + 0x70], 0
mov rcx, qword [rsp + 0x138]
mov r8, qword [r8 + 0x78]
xor r9d, r9d
mov rcx, qword [rcx]
cmp rcx, r9
je 0x14000693c
cmp rcx, r8
jl 0x14000692f
mov qword [rdx + 0x80], rcx
test dword [0x1403db600], 1
je 0x14000696b
cmp byte [rsp + 0xd0], 0
je 0x14000696b
mov rcx, 0x43
mov rdx, rax
mov rsp, r8
jmp 0x140006490
mov rsp, r8
jmp rax
Function at 0x140006970
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rbx
push rsi
push rdi
push rbp
sub rsp, 0xc8
movdqa xmmword [rsp + 0x20], xmm6
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x50], xmm9
movdqa xmmword [rsp + 0x60], xmm10
movdqa xmmword [rsp + 0x70], xmm11
movdqa xmmword [rsp + 0x80], xmm12
movdqa xmmword [rsp + 0x90], xmm13
movdqa xmmword [rsp + 0xa0], xmm14
movdqa xmmword [rsp + 0xb0], xmm15
mov qword [rsp + 0x110], rcx
mov qword [rsp + 0x118], rdx
mov eax, dword [0x1403e2078]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x20
add rax, rbx
mov qword [rsp + 0xc0], rax
lock and dword [rax + 0x38], 0xffffffef
mov rax, qword [rdx + 0x18]
mov rbx, qword [rax]
mov rax, qword [rdx + 0x20]
mov rbp, qword [rax]
mov rax, qword [rdx + 0x28]
mov rsi, qword [rax]
mov rax, qword [rdx + 0x30]
mov rdi, qword [rax]
mov rax, qword [rdx + 0x58]
mov r12, qword [rax]
mov rax, qword [rdx + 0x60]
mov r13, qword [rax]
mov rax, qword [rdx + 0x68]
mov r14, qword [rax]
mov rax, qword [rdx + 0x70]
mov r15, qword [rax]
movdqa xmm6, xmmword [rdx + 0x90]
movdqa xmm7, xmmword [rdx + 0xa0]
movdqa xmm8, xmmword [rdx + 0xb0]
movdqa xmm9, xmmword [rdx + 0xc0]
movdqa xmm10, xmmword [rdx + 0xd0]
movdqa xmm11, xmmword [rdx + 0xe0]
movdqa xmm12, xmmword [rdx + 0xf0]
movdqa xmm13, xmmword [rdx + 0x100]
movdqa xmm14, xmmword [rdx + 0x110]
movdqa xmm15, xmmword [rdx + 0x120]
mov rcx, qword [rdx + 0x78]
call qword [rsp + 0x110]
mov rdx, qword [rsp + 0x118]
mov rax, qword [rdx + 0x18]
mov qword [rax], rbx
mov rax, qword [rdx + 0x20]
mov qword [rax], rbp
mov rax, qword [rdx + 0x28]
mov qword [rax], rsi
mov rax, qword [rdx + 0x30]
mov qword [rax], rdi
mov rax, qword [rdx + 0x58]
mov qword [rax], r12
mov rax, qword [rdx + 0x60]
mov qword [rax], r13
mov rax, qword [rdx + 0x68]
mov qword [rax], r14
mov rax, qword [rdx + 0x70]
mov qword [rax], r15
movdqa xmmword [rdx + 0x90], xmm6
movdqa xmmword [rdx + 0xa0], xmm7
movdqa xmmword [rdx + 0xb0], xmm8
movdqa xmmword [rdx + 0xc0], xmm9
movdqa xmmword [rdx + 0xd0], xmm10
movdqa xmmword [rdx + 0xe0], xmm11
movdqa xmmword [rdx + 0xf0], xmm12
movdqa xmmword [rdx + 0x100], xmm13
movdqa xmmword [rdx + 0x110], xmm14
movdqa xmmword [rdx + 0x120], xmm15
mov rax, qword [rsp + 0xc0]
lock or dword [rax + 0x38], 0x10
movdqa xmm6, xmmword [rsp + 0x20]
movdqa xmm7, xmmword [rsp + 0x30]
movdqa xmm8, xmmword [rsp + 0x40]
movdqa xmm9, xmmword [rsp + 0x50]
movdqa xmm10, xmmword [rsp + 0x60]
movdqa xmm11, xmmword [rsp + 0x70]
movdqa xmm12, xmmword [rsp + 0x80]
movdqa xmm13, xmmword [rsp + 0x90]
movdqa xmm14, xmmword [rsp + 0xa0]
movdqa xmm15, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbp
pop rdi
pop rsi
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14006c738
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x140256380]
test rax, rax
je 0x14006c782
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006c782
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006c782
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006c782
cmp dword [rcx + 0x84], 0xe
jbe 0x14006c782
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14006c784
xor al, al
add rsp, 0x28
ret
Function at 0x140008780
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rdx, rcx
mov r9d, 0x40
xor ecx, ecx
mov r8d, 0x1000
jmp qword [sym.imp.KERNEL32.dll_VirtualAlloc]
Function at 0x140071a50
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14007187c
Function at 0x14000efc7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14014f738]
jne 0x14000840a
rol rcx, 0x10
test cx, 0xffff
jne 0x140008406
repz ret
ror rcx, 0x10
jmp 0x14000ef20
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140151b70]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140151c68]
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 0x14000efa5
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, [0x140151b70]
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 0x14000efc7
mov rax, qword [rsp + 0x88]
mov qword [0x140151c68], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140151c08], rax
mov rax, qword [0x140151c68]
mov qword [0x140151ae0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140151bf0], rax
mov dword [0x140151ad0], 0xc0000409
mov dword [0x140151ad4], 1
mov rax, qword [0x14014f738]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14014f740]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140151b68], eax
mov ecx, 1
call fcn.140016ed4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140148018]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140151b68], 0
jne 0x14000f04e
mov ecx, 1
call fcn.140016ed4
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 0x140010e70
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140010ce0
Function at 0x140018dc8
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 [0x14014f738]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14000e7fc
xor ebx, ebx
cmp qword [0x140152c08], rbx
mov rdi, rax
jne 0x140018edb
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140018fb2
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140018fb2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140152c08], 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 [0x140152c10], 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 [0x140152c18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140152c28], rax
test rax, rax
je 0x140018ed2
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140152c20], rax
jmp 0x140018ee2
mov rax, qword [0x140152c20]
jmp 0x140018ee9
mov rax, qword [0x140152c20]
mov r11, qword [0x140152c28]
cmp rax, rdi
je 0x140018f50
cmp r11, rdi
je 0x140018f50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140152c28]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140018f50
test rax, rax
je 0x140018f50
call rsi
test rax, rax
je 0x140018f4a
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 0x140018f4a
test byte [rsp + 0x40], 1
jne 0x140018f50
bts ebp, 0x15
jmp 0x140018f90
mov rcx, qword [0x140152c10]
cmp rcx, rdi
je 0x140018f90
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140018f90
call rax
mov rbx, rax
test rax, rax
je 0x140018f90
mov rcx, qword [0x140152c18]
cmp rcx, rdi
je 0x140018f90
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140018f90
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140152c08]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140018fb2
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140018fb4
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400083f0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400030a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140004e60
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004e60
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140003110
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000b0a4]
mov rbx, rcx
test esi, esi
jle 0x140003240
mov rax, qword [0x14000b0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000315b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400031e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003140
mov rcx, rbx
call fcn.140003b60
mov rdi, rax
test rax, rax
je 0x140003262
mov rax, qword [0x14000b0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003ca0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000b0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003247
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400031de
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400031f0
add dword [0x14000b0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000b0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400031de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400030a0
nop dword [rax]
xor esi, esi
jmp 0x140003168
mov rax, qword [0x14000b0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400030a0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400030a0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400037d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000b100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000b0e0]
test rbx, rbx
je 0x14000382c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003823
test rsi, rsi
je 0x140003823
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003808
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003b60
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140007b30]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003b80
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003b88
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003b80
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003bdd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003bd4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003b80
add rax, 0x28
cmp rax, r9
jne 0x140003bc0
xor eax, eax
ret

Function at 0x140003be0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140007b30]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003bff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003c08
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003bff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003ca0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140007b30]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003cbf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003cc8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140167938
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14016796f
call fcn.14016ade0
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14016c490
xor eax, eax
jmp 0x1401679fd
mov rdx, r9
mov rcx, r8
call fcn.140167a20
mov rbx, rax
test rax, rax
je 0x1401679fa
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140167a90]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1401679e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14016ae20
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401679ce
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401679dd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14010d200
jmp 0x1401679fa
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401679f7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140167b64
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140167cac
Function at 0x1405b0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1405b01df
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 0x1405b0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405b006f
add dl, dl
jne 0x1405b0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405b00f6
xor eax, eax
add dl, dl
jne 0x1405b00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405b01ad
add dl, dl
jne 0x1405b00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405b00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405b00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405b00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405b00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405b007e
mov eax, 1
add dl, dl
jne 0x1405b0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405b0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405b00fb
sub eax, ebx
mov ebx, 1
jne 0x1405b014c
mov ecx, 1
add dl, dl
jne 0x1405b012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405b013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405b0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405b007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405b0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405b0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405b015d
cmp eax, 0x7d00
jae 0x1405b019b
cmp eax, 0x500
jb 0x1405b0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405b007e
cmp eax, 0x7f
ja 0x1405b019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405b007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405b01d2
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 0x1405b007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x140014780
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140014260
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400147bf
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14005e2e0]
jmp 0x1400147c9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400384d0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140001bbc
Capabilities:
Read .ini file

Disassembly:
mov eax, 0xb9a6cd0b
mov ecx, eax
mov rdx, qword [rsp + 0x88]
mov r8, qword [rsp + 0x88]
mov eax, dword [rsp + 0x14]
or eax, eax
mov dword [rsp + 0x94], eax
sub rcx, r8
add rdx, 0xfffffffffcb7df93
mov qword [rsp + 0x70], rcx
cmp rdx, qword [rsp + 0x70]
jb 0x1400023d4
jmp 0x1400019a3
mov eax, 0xbffe3cec
mov ecx, eax
sub rcx, qword [rsp + 0x88]
add byte [rax], al
mov dword [rsp + 0x94], 0x4d656f08
mov qword [rsp + 0x68], rcx
mov rcx, qword [rsp + 0x88]
xor rcx, 0x62467e81
mov rdx, qword [rsp + 0x68]
mov dword [rsp + 0x94], 0x9b4cb1f8
cmp rdx, rcx
jb 0x140001ead
jmp 0x14000160a
mov al, 0xd1
mov cl, byte [rsp + 0x23]
mov byte [rsp + 7], al
mov al, cl
mov dl, byte [rsp + 7]
mul dl
mov byte [rsp + 0x9f], al
mov r8, qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
call r8
add ecx, dword [rcx - 0xaa6be9f]
invalid
mov rax, qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call rax
add ecx, dword [rcx - 0xaa6be9f]
invalid
mov eax, 0x1cfbd982
mov cl, byte [rsp + 0x23]
or cl, 0x5b
sub eax, dword [rsp + 0x80]
mov byte [rsp + 0x9f], cl
mov rdx, qword [rsp + 0x18]
xor rdx, 0xffffffffffffffff
mov r8d, dword [rsp + 0x80]
add r8d, 0x282a080c
mov qword [rsp + 0xa0], rdx
mov rdx, qword [sym.imp.KERNEL32.dll_FreeResource]
call rdx
add ecx, dword [rcx - 0xaa6be9f]
invalid
mov eax, 0x8888a14d
mov qword [rsp + 0xa0], 0xffffffffb7465673
sub eax, dword [rsp + 0x80]
cmp dword [rsp + 0x40], eax
jbe 0x1400012e7
jmp 0x14000142b
and al, 0x88
add byte [rax], al
add byte [rax - 0x7f], cl
int1
sti
xchg ecx, eax
int 0x7d
mov byte [rsp + 0x9f], 0xc0
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x18]
or rcx, 0x44efe28
mov qword [rsp + 0xa0], rcx
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0xa0], 0x58eb25ae
xor rcx, 0x707e3900
mov dword [rsp + 0x94], 0x773cdf26
mov rdx, qword [rsp + 0x30]
mov r8b, byte [rsp + 0x23]
sub r8b, r8b
mov byte [rsp + 0x9f], r8b
mov r9d, dword [rsp + 0x7c]
mov dword [rsp + 0x40], r9d
mov r9d, dword [rsp + 0x14]
xor r9d, 0x4f03ae29
mov dword [rsp + 0x94], r9d
cmp rcx, rdx
jbe 0x1400019e3
jmp 0x140001b32
mov eax, 0x1cfbd982
mov ecx, dword [rsp + 0x80]
mov dl, byte [rsp + 0x23]
or dl, 0x9c
mov byte [rsp + 0x9f], dl
mov r8d, dword [rsp + 0x80]
mov r9d, dword [rsp + 0x80]
add ecx, 0xe3042687
xor r9d, 0x1cfbd981
sub eax, r8d
mov dword [rsp + 0x94], 0xea9f3c27
mov r10, qword [sym.imp.GDI32.dll_GetCharWidthW]
call r10
add ecx, dword [rcx - 0xaa6be9f]
invalid
mov rax, qword [sym.imp.GDI32.dll_GetTextExtentExPointI]
call rax
add ecx, dword [rcx - 0xaa6be9f]
invalid

Function at 0x140002a90
Capabilities:
Encode data using xor

Disassembly:
mov esp, 0x32dc3244
cmp byte [rdi], ah
mov dl, 0x11
stosb byte [rdi], al
xchg ecx, eax
xor bh, byte [rax]
add byte [edx - 0x6e55c1ef], dh
int 0x13
mov cl, 0xa8
fdivr qword [r9 - 8]
fdivr qword [rcx - 8]
je 0x140002a48
push rsp
loope 0x140002a44
frstor dword [rax]
mov ebx, 0x6710b165
xor al, 0x9c
xor dh, byte [rax - 0x56]
ret
jae 0x140002a56
pushfq
stosd dword [rdi], eax
invalid