joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003830
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x1400038c0
jmp 0x1400038af
jae 0x140003980
cmp r8, 0x201
jae 0x1400038c0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140003918
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x1400038ef
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140019190
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140003941
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400039e8
mov r8d, r14d
cmp r15, r8
jne 0x1400038a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003a0b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400038af
jmp 0x1400038c0
cmp rsi, r8
jb 0x140003a25
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400057b0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x1400039d1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.1400010e0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x1400039b9
jmp 0x1400039d1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140019bb0
jmp 0x140003a3a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001a000
ud2
Function at 0x140003a90
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.14000ac60
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x408], rax
test rax, rax
je 0x140003c16
mov qword [rbp + 0x400], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x418], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x140003b50
jmp 0x140003b3f
jae 0x140003c28
cmp r8, 0x201
jae 0x140003b50
mov r15d, 0x200
lea r14, [rbp - 0x60]
mov r12, r8
jmp 0x140003ba8
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x140003b7f
lea rcx, [rbp + 0x3e8]
mov rdx, r13
call fcn.140019190
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x410], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3f8], r13
mov rbx, rdi
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x140003bd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140003cfb
mov r8d, esi
cmp r12, r8
jne 0x140003b30
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003d25
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140003b3f
jmp 0x140003b50
lea rcx, [rbp - 0x58]
call fcn.140001990
mov byte [rsi + 0x18], 2
jmp 0x140003cba
cmp r15, r8
jb 0x140003d3f
lea rcx, [rbp + 0x3a0]
mov rdx, r14
call fcn.1400057b0
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x140003c79
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rdi
call fcn.1400010e0
cmp byte [rbp + 0x3d8], 2
jne 0x140003cd1
mov rsi, qword [rbp + 0x400]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.140001990
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x140003cba
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.1400010e0
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x400]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x140003ca5
jmp 0x140003cba
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x140003c61
jmp 0x140003c79
lea rcx, str.internal_error:_entered_unreachable_code_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140019bb0
jmp 0x140003d54
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14001a000
ud2
Function at 0x1400098f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14001cec8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140009934
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000999a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400099d1
test eax, eax
js 0x1400099ab
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400099c4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400054f0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140001b30
mov ecx, 7
int 0x29
ud2
Function at 0x1400175c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001763a
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 0x140017630
cmp r11, r10
ja 0x1400176d3
cmp r10, rdx
ja 0x1400176e7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140017632
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140017610
jmp 0x1400176a7
ja 0x14001763a
mov r11, r10
cmp rax, r8
jne 0x1400175e2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400176ab
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 0x140017680
mov r8, r10
sub ecx, r9d
jns 0x14001769e
jmp 0x1400176ad
cmp r10, rdx
je 0x1400176b9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400176ad
xor al, 1
cmp r8, rdx
jne 0x140017660
jmp 0x1400176ad
xor eax, eax
jmp 0x1400176ad
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140019bb0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001a080
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001a000
ud2

Function at 0x140018c10
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140018c5a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140018c5a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140018c5a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140018c5a
cmp dword [rcx + 0x84], 0xe
jbe 0x140018c5a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140018c5c
xor al, al
add rsp, 0x28
ret
Function at 0x1400012d0
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rdx, rcx
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, rax
test rax, rax
je 0x140001381
xor edx, edx
test rbx, rbx
je 0x140001381
cmp rbx, 0x40
jb 0x14000136a
movdqa xmm2, xmmword [0x1400cc520]
mov r8, rbx
and r8, 0xffffffffffffffc0
add rax, 0x20
movdqu xmm0, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
add rdx, 0x40
movdqa xmm1, xmm2
xorps xmm0, xmm2
movdqu xmmword [rax - 0x60], xmm0
movdqu xmm0, xmmword [rax - 0x50]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
xorps xmm0, xmm2
movdqu xmmword [rax - 0x40], xmm0
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm0, xmm2
movdqu xmmword [rax - 0x30], xmm0
cmp rdx, r8
jb 0x140001320
cmp rdx, rbx
jae 0x14000137e
lea rax, [rdx + rcx]
sub rbx, rdx
xor byte [rax], 0xab
lea rax, [rax + 1]
sub rbx, 1
jne 0x140001371
mov rax, rcx
add rsp, 0x20
pop rbx
ret

Function at 0x140001390
Capabilities:
Block operations on executable memory pages using arbitrary code guard

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x24], 1
lea r8d, [rdi + 4]
lea rdx, [rsp + 0x24]
lea ecx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_SetProcessMitigationPolicy]
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rdi
mov edx, 0xf
mov qword [rsp + 0x40], rdx
mov byte [rsp + 0x28], dil
mov dword [rsp + 0x20], 1
lea rbx, str.SensitiveDataToHide
movzx ecx, byte [str.SensitiveDataToHide]
nop dword [rax]
not cl
cmp rdi, rdx
jae 0x140001429
lea rax, [rdi + 1]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x28]
cmp rdx, 0xf
cmova rax, qword [rsp + 0x28]
mov byte [rax + rdi], cl
mov byte [rax + rdi + 1], 0
jmp 0x140001437
movzx r9d, cl
lea rcx, [rsp + 0x28]
call fcn.1400ca0c0
inc rbx
movzx ecx, byte [rbx]
test cl, cl
je 0x14000144d
mov rdx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
jmp 0x140001400
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0xf
cmova rdx, qword [rsp + 0x28]
lea rcx, str.Hidden_string_in_ConcealDll_function:__s_n
call fcn.140001010
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x1400014ab
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400014a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400014a6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ca28c
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400ca230
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1400c9eb0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdx, str.MainFunctionDataToHide
xor ebx, ebx
lea rcx, [rsp + 0x38]
call fcn.140001230
cmp qword [rsp + 0x50], 0xf
lea rdx, [rsp + 0x38]
lea rcx, str.Hidden_string_in_main_function:__s_n
cmova rdx, qword [rsp + 0x38]
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x1400014d0]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebx
nop dword [rax]
test dil, 1
je 0x1400c9f64
mov edx, edi
lea rcx, str.Counting:__d_n
call fcn.140001010
inc edi
cmp edi, 0x3e8
jl 0x1400c9f50
mov edi, ebx
mov edx, edi
lea rcx, str.Loop_iteration:__d_n
call fcn.140001010
inc edi
cmp edi, 0x1f4
jl 0x1400c9f70
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x64
sub r8d, ecx
cmp r8d, 0x32
jge 0x1400c9fe0
mov edx, ebx
lea rcx, str.Random_operation:__d_n
call fcn.140001010
inc ebx
cmp ebx, 0x64
jl 0x1400c9fc0
jmp 0x1400c9ff5
mov edx, ebx
lea rcx, str.Another_random_operation:__d_n
call fcn.140001010
inc ebx
cmp ebx, 0x32
jl 0x1400c9fe0
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x1400ca035
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ca030
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ca030
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ca28c
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ca230
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x1400caba8
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140c27902
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140c2792b
pop rbp
sub rbp, 0x33
sub rbp, 0xc278f8
sub rsp, 0x20
jmp 0x140c2794a
mov rax, 0xc278f8
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0x694ef9d7
invalid
xor byte [rax], dl
inc rax
dec rcx
jne 0x140c27969
jmp 0x140c27980
lahf
pop rsi
pop rsp
pop rsi
jmp 0x140c2795e
Function at 0x1402c6730
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1402c673d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1402c674d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1402c6735
lea eax, [rcx + 1]
jmp 0x1402c675b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1402c676e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1402c6754
sub eax, 3
jb 0x1402c678e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1402c67dd
sar eax, 1
movsxd rbp, eax
jb 0x1402c67c4
jmp 0x1402c679c
add ebx, ebx
jne 0x1402c679a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1402c67c4
inc ecx
add ebx, ebx
jne 0x1402c67aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1402c67c4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1402c67bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1402c67ac
add ecx, 2
jmp 0x1402c67c9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1402c66f2
jmp 0x1402c673d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x6bc00
mov dl, 0x18
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1402c6829
cmp rsi, rcx
jae 0x1402c6831
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1402c6810
cmp al, 0x8f
ja 0x1402c6810
cmp byte [rsi - 2], 0xf
je 0x1402c6816
sub al, 0xe8
cmp al, 1
ja 0x1402c67fa
cmp rsi, rcx
jae 0x1402c6831
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1402c6800
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1402c6831
lodsb al, byte [rsi]
jmp 0x1402c6810
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2c3000]
mov eax, dword [rdi]
or eax, eax
je 0x1402c689a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2c61e4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1402c683e
jns 0x1402c6873
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1402c687d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1402c6894
mov qword [rbx], rax
add rbx, 8
jmp 0x1402c685e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1402c68d4
cmp al, 0xef
ja 0x1402c68c6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1402c68a6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1402c68b5
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1402c6928
sub rsp, 0xffffffffffffff80
jmp 0x14001da7c
Function at 0x2fc562060
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 0x2fc562a62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc585108]
test eax, eax
je 0x2fc562afa
lea rax, [0x2fc5850e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc585110]
mov qword [rbp - 8], rax
jmp 0x2fc562ade
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 0x2fc562ad2
cmp qword [rbp - 0x10], 0
je 0x2fc562ad2
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 0x2fc562a98
lea rax, [0x2fc5850e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc562afb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc562c00
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 0x2fc562c28
mov eax, 0
jmp 0x2fc562c76
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 0x2fc562c51
mov eax, 0
jmp 0x2fc562c76
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 0x2fc562c71
mov eax, 0
jmp 0x2fc562c76
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc562c7c
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 0x2fc562cfa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc562cf1
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 0x2fc562cf1
mov rax, qword [rbp - 8]
jmp 0x2fc562d0f
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 0x2fc562cc4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x18063f058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x18063f1df
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 0x18063f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18063f06f
add dl, dl
jne 0x18063f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18063f0f6
xor eax, eax
add dl, dl
jne 0x18063f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18063f1ad
add dl, dl
jne 0x18063f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18063f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18063f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18063f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18063f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18063f07e
mov eax, 1
add dl, dl
jne 0x18063f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18063f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18063f0fb
sub eax, ebx
mov ebx, 1
jne 0x18063f14c
mov ecx, 1
add dl, dl
jne 0x18063f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18063f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18063f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18063f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18063f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18063f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18063f15d
cmp eax, 0x7d00
jae 0x18063f19b
cmp eax, 0x500
jb 0x18063f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18063f07e
cmp eax, 0x7f
ja 0x18063f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18063f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18063f1d2
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 0x18063f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20