joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14023ef80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14023effa
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14023eff0
cmp r11, r10
ja 0x14023f093
cmp r10, rdx
ja 0x14023f0a7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14023eff2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14023efd0
jmp 0x14023f067
ja 0x14023effa
mov r11, r10
cmp rax, r8
jne 0x14023efa2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14023f06b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14023f040
mov r8, r10
sub ecx, r9d
jns 0x14023f05e
jmp 0x14023f06d
cmp r10, rdx
je 0x14023f079
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14023f06d
xor al, 1
cmp r8, rdx
jne 0x14023f020
jmp 0x14023f06d
xor eax, eax
jmp 0x14023f06d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140312041]
lea r8, [0x140313eb0]
mov edx, 0x2b
call fcn.140235da0
ud2
lea r8, [0x140313ec8]
mov rcx, r11
mov rdx, r10
call fcn.14023c240
ud2
lea r8, [0x140313ec8]
mov rcx, r10
call fcn.14023c1c0
ud2
Function at 0x14024b600
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.14024c3a0
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.14024c3a0
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 0x14024b670
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14034c3c4]
mov rbx, rcx
test esi, esi
jle 0x14024b7a0
mov rax, qword [0x14034c3c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14024b6bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14024b745
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14024b6a0
mov rcx, rbx
call fcn.14024c0c0
mov rdi, rax
test rax, rax
je 0x14024b7c2
mov rax, qword [0x14034c3c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14024c200
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14034c3c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14024b7a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14024b73e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14024b750
add dword [0x14034c3c4], 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 [0x14034c3c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14024b73e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14024b600
nop dword [rax]
xor esi, esi
jmp 0x14024b6c8
mov rax, qword [0x14034c3c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14024b600
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14024b600
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14024bd30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14034c420]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14034c400]
test rbx, rbx
je 0x14024bd8c
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 0x14024bd83
test rsi, rsi
je 0x14024bd83
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14024bd68
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 0x14024c0c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14031ee70]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14024c0e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14024c0e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14024c0e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14024c13d
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 0x14024c134
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14024c0e0
add rax, 0x28
cmp rax, r9
jne 0x14024c120
xor eax, eax
ret

Function at 0x14024c140
Capabilities:
Parse pe header

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

Function at 0x14024c200
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14031ee70]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14024c21f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14024c228
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001b30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rbx, qword [0x14007f480]
mov rax, qword [rbx]
mov qword [rsp + 0x68], rax
xor eax, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, 0x2a
mov r8d, 0x17
mov edx, 0x402
mov ecx, eax
call qword [sym.imp.USER32.dll_PostThreadMessageA]
xor r9d, r9d
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], 0
mov rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140001b99
cmp dword [rsp + 0x38], 0x402
je 0x140001bb8
mov rax, qword [rsp + 0x68]
sub rax, qword [rbx]
jne 0x140001c3e
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
cmp qword [rsp + 0x40], 0x17
jne 0x140001b99
cmp qword [rsp + 0x48], 0x2a
jne 0x140001b99
mov rdi, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rdi
mov ecx, 0x28a
mov esi, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
call rdi
sub eax, 0x258
sub eax, esi
cmp eax, 0x12b
ja 0x140001b99
mov rsi, qword [0x14007f530]
movsxd rdi, dword [rsi + 4]
mov rcx, rdi
call sub.msvcrt.dll_malloc
lea rdx, [rsi + 0x18]
mov r8, rdi
mov r12, rax
mov rcx, rax
call sub.msvcrt.dll_memcpy
lea r8, [rsi + 8]
mov edx, edi
mov rcx, r12
call fcn.1400019c0
mov rax, qword [rsp + 0x68]
sub rax, qword [rbx]
jne 0x140001c3e
mov rcx, r12
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.140002eb0
call fcn.140001d30
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140002050
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.140002f30
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002f30
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x2fc550a30
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 0x2fc551432
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc573108]
test eax, eax
je 0x2fc5514ca
lea rax, [0x2fc5730e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc573110]
mov qword [rbp - 8], rax
jmp 0x2fc5514ae
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 0x2fc5514a2
cmp qword [rbp - 0x10], 0
je 0x2fc5514a2
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 0x2fc551468
lea rax, [0x2fc5730e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc5514cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc5515d0
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 0x2fc5515f8
mov eax, 0
jmp 0x2fc551646
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 0x2fc551621
mov eax, 0
jmp 0x2fc551646
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 0x2fc551641
mov eax, 0
jmp 0x2fc551646
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc55164c
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 0x2fc5516ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc5516c1
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 0x2fc5516c1
mov rax, qword [rbp - 8]
jmp 0x2fc5516df
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 0x2fc551694
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400017e0
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x68
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000186e
lea r8, [rsp + 0x38]
lea rdx, [0x140001090]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140001868
mov rax, qword [rsp + 0x38]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x80010002
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140006f00
add rsp, 0x68
ret

Function at 0x140001d10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x30
mov rbp, rcx
mov ecx, 0x1002
mov rsi, rdx
mov eax, 2
mov r12, 0xffffffffffffffff
mul rcx
cmovo rax, r12
mov rcx, rax
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
xor r14d, r14d
mov rdi, rax
test rax, rax
je 0x140001dfb
mov dword [rsp + 0x70], 0x2000
jmp 0x140001dab
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140001df2
cmp dword [rsp + 0x78], 7
jne 0x140001df2
mov ebx, dword [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov ecx, ebx
mov eax, 2
shr rcx, 1
add rcx, 2
mul rcx
cmovo rax, r12
mov rcx, rax
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov rdi, rax
test rax, rax
je 0x140001dfb
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001d60
mov ecx, dword [rsp + 0x70]
shr ecx, 1
lea eax, [rcx + 1]
mov word [rdi + rcx*2], r14w
mov rcx, rdi
mov word [rdi + rax*2], r14w
call fcn.1400019d0
test rax, rax
jne 0x140001dfd
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400055f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x260
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rsp + 0x290]
xor r14d, r14d
mov ebx, 2
mov dword [rsp + 0x30], r14d
test rdx, rdx
je 0x14000564a
mov eax, 3
jmp 0x140005729
cmp r9d, ebx
jl 0x140005640
mov rcx, qword [rax]
cmp word [rcx], r14w
je 0x140005640
mov rsi, qword [rax + 8]
cmp word [rsi], r14w
je 0x140005640
lea r8, [rsp + 0x40]
xor r9d, r9d
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
dec eax
cmp eax, 0x102
ja 0x140005727
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140005727
lea rcx, [0x1400012d0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x140005727
lea rdx, [0x1400012e8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x14000571e
call qword [sym.imp.msvcrt.dll___iob_func]
lea r9, [rsp + 0x40]
mov r8, rsi
lea rcx, [rax + 0x30]
mov edx, 0xeeae
call fcn.1400016d4
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov r9d, 1
mov rdx, rsi
xor ecx, ecx
mov qword [rsp + 0x20], rax
call rbp
test eax, eax
je 0x14000571e
call qword [sym.imp.msvcrt.dll___iob_func]
mov edx, 0xeeb2
lea rcx, [rax + 0x30]
call fcn.1400016d4
cmp dword [rsp + 0x30], r14d
mov ebx, r14d
setne bl
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140006f00
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140006d28
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140008870], rbx
je 0x140006d74
cmp rax, rbx
jne 0x140006d67
mov ebx, 1
mov esi, ebx
jmp 0x140006d79
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140006d4c
mov ebx, 1
mov eax, dword [0x140008878]
cmp eax, ebx
jne 0x140006d8f
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140006dec
mov eax, dword [0x140008878]
test eax, eax
jne 0x140006de6
mov dword [0x140008878], ebx
lea r15, [0x140001038]
lea rdi, [0x140001020]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140006dd8
test eax, eax
jne 0x140006ddc
mov rcx, qword [rdi]
test rcx, rcx
je 0x140006dcd
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140006db6
test eax, eax
je 0x140006dec
mov eax, 0xff
jmp 0x140006ec0
mov dword [0x1400082b4], ebx
mov eax, dword [0x140008878]
cmp eax, ebx
jne 0x140006e13
lea rdx, [0x140001018]
lea rcx, [0x140001008]
call sub.msvcrt.dll__initterm
mov dword [0x140008878], 2
test esi, esi
jne 0x140006e20
xor eax, eax
xchg qword [0x140008870], rax
cmp qword [0x140008880], 0
je 0x140006e4c
lea rcx, [0x140008880]
call fcn.1400072e0
test eax, eax
je 0x140006e4c
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140008880]
call rax
mov r8, qword [0x1400082c8]
mov rdx, qword [0x1400082c0]
mov ecx, dword [0x1400082b8]
call fcn.140002510
mov dword [0x1400082b0], eax
cmp dword [0x1400082d0], 0
jne 0x140006e7c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400082b4], 0
jne 0x140006e91
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400082b0]
jmp 0x140006ec0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400a4000
add rsp, 0x28
jmp 0x140006d28

Function at 0x140006f24
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400071d4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140007220
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140007218
cmp dword [rcx + 0x3c], edx
jl 0x140007218
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140007218
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140007220
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140a920b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a92237
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 0x140a920e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a920c7
add dl, dl
jne 0x140a920ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a9214e
xor eax, eax
add dl, dl
jne 0x140a920fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a92205
add dl, dl
jne 0x140a9210e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a9211b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a92128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a92135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a92142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a920d6
mov eax, 1
add dl, dl
jne 0x140a9215e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a9216b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a92153
sub eax, ebx
mov ebx, 1
jne 0x140a921a4
mov ecx, 1
add dl, dl
jne 0x140a92186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a92193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a9217b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a920d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a921c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a921cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a921b5
cmp eax, 0x7d00
jae 0x140a921f3
cmp eax, 0x500
jb 0x140a921ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a920d6
cmp eax, 0x7f
ja 0x140a921f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a920d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a9222a
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 0x140a920d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add al, byte [rdx]
sbb al, 0
add dword [rdx], eax
sbb dword [rbx], esi
add eax, dword [rdx + rsi]
jmp 0x14003f704
sbb dword [rcx], ebx
loopne 0x14003f707
call [rax]
invalid
sbb byte [rsi], dl
call 0x12a1a0e0e
call qword [rsi + rdx]
invalid
adc al, 0x16
jmp 0x1231d0f1a