joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003420
Capabilities:
Persist via run registry key

Disassembly:
push rbp
sub rsp, 0x120
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x98], 0xfffffffffffffffe
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x30], rcx
mov rcx, 0xffffffff80000002
call fcn.140007930
mov qword [rbp - 0x28], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea rcx, [rbp + 0x18]
mov r8d, 1
call fcn.140002e40
jmp 0x14000346b
mov rcx, rbp
lea rdx, [rbp + 0x18]
call fcn.140001490
jmp 0x140003479
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
movups xmm0, xmmword [rbp]
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.1400018a0
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], rax
jmp 0x14000349c
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x40]
call fcn.140001100
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x50], rax
jmp 0x1400034b3
mov r9, qword [rbp - 0x58]
mov r8, qword [rbp - 0x50]
lea rcx, [rbp + 0x60]
lea rdx, [rbp - 0x28]
call fcn.140003910
jmp 0x1400034ca
lea rcx, [rbp + 0x50]
lea rdx, [rbp + 0x60]
call fcn.140003250
jmp 0x1400034d9
cmp qword [rbp + 0x50], 0
jne 0x14000350b
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x88], rax
mov qword [rbp + 0x48], rax
lea r8, str.Discord_Client_Servicesrcmain.rs
lea rcx, [rbp + 0x70]
lea rdx, [rbp + 0x48]
mov r9d, 0x16
call fcn.140004090
jmp 0x140003528
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp + 0x58]
mov qword [rbp + 0x90], rdx
lea r8, [0x140036778]
call fcn.140002f00
jmp 0x14000357a
mov rdx, qword [rbp + 0x70]
xor eax, eax
mov ecx, 1
cmp rdx, 0
cmove rax, rcx
cmp rax, 0
jne 0x14000354e
mov rax, qword [rbp - 0x38]
mov byte [rax + 1], 0
mov byte [rax], 0
jmp 0x140003559
mov rax, qword [rbp - 0x38]
mov byte [rax + 1], 1
mov byte [rax], 0
lea rcx, [rbp + 0x70]
call fcn.140006b90
jmp 0x140003564
lea rcx, [rbp + 0x48]
call fcn.140001b30
jmp 0x14000356f
lea rcx, [rbp - 0x20]
call fcn.14000f5f0
jmp 0x14000357c
jmp 0x14000356f
lea rcx, [rbp - 0x28]
call fcn.140001b30
mov rax, qword [rbp - 0x30]
add rsp, 0x120
pop rbp
ret
Function at 0x140003c40
Capabilities:
Set registry value

Disassembly:
push rbp
sub rsp, 0xe0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x58], 0xfffffffffffffffe
mov qword [rbp - 8], r9
mov qword [rbp - 0x10], rcx
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], rdx
mov qword [rbp + 0x40], r8
mov qword [rbp + 0x48], r9
lea rcx, [rbp + 0x10]
call fcn.140002ba0
mov rcx, qword [rbp - 8]
add rcx, 0x18
call fcn.140002c70
mov byte [rbp + 7], al
jmp 0x140003c8b
mov rax, qword [rbp - 0x10]
mov cl, byte [rbp + 7]
mov byte [rbp + 0x2f], cl
movzx ecx, byte [rbp + 0x2f]
mov dword [rbp - 0x24], ecx
mov dword [rbp + 0x50], ecx
mov rax, qword [rax]
mov qword [rbp - 0x20], rax
lea rcx, [rbp + 0x10]
call fcn.140001430
mov qword [rbp - 0x18], rax
jmp 0x140003cb5
mov rcx, qword [rbp - 8]
call fcn.14000c6a0
mov qword [rbp - 0x30], rax
jmp 0x140003cc4
mov rcx, qword [rbp - 8]
call fcn.14000c5e0
mov qword [rbp - 0x38], rax
jmp 0x140003cd3
mov r9d, dword [rbp - 0x24]
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x30]
mov rax, qword [rbp - 0x38]
mov r10d, eax
mov rax, rsp
mov dword [rax + 0x28], r10d
mov qword [rax + 0x20], r8
mov rax, qword [sym.imp.advapi32.dll_RegSetValueExW]
xor r8d, r8d
call rax
mov dword [rbp - 0x3c], eax
jmp 0x140003d06
mov eax, dword [rbp - 0x3c]
cmp eax, 0
jne 0x140003d18
mov qword [rbp + 8], 0
jmp 0x140003d29
mov ecx, dword [rbp - 0x3c]
mov dword [rbp + 0x54], ecx
call fcn.140001da0
mov qword [rbp - 0x48], rax
jmp 0x140003d3f
lea rcx, [rbp + 0x10]
call fcn.14000f720
mov rax, qword [rbp + 8]
add rsp, 0xe0
pop rbp
ret
mov rax, qword [rbp - 0x48]
mov qword [rbp + 8], rax
jmp 0x140003d29
Function at 0x14001bdb0
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 0x14001be40
jmp 0x14001be2f
jae 0x14001bf00
cmp r8, 0x201
jae 0x14001be40
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14001be98
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14001be6f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400342f0
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 0x14001bec1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001bf68
mov r8d, r14d
cmp r15, r8
jne 0x14001be20
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001bf8b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14001be2f
jmp 0x14001be40
cmp rsi, r8
jb 0x14001bfa5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14001e500
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 0x14001bf51
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140004280
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 0x14001bf39
jmp 0x14001bf51
lea rcx, str.internal_error:_entered_unreachable_code_rustc_79e9716c980570bfd1f666e3b16ac583f0168962library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140034e10
jmp 0x14001bfba
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140035360
ud2
Function at 0x140023530
Capabilities:
Copy file

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r9
mov rsi, rcx
lea rcx, [rbp - 0x20]
call fcn.1400259d0
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
test rax, rax
je 0x140023642
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.140024860
mov rax, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x40]
test rax, rax
je 0x140023642
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x30], rdx
mov r8, qword [rbp + 0x50]
lea rcx, [rbp - 0x20]
mov rdx, rdi
call fcn.1400259d0
mov rax, qword [rbp - 0x20]
mov rdi, qword [rbp - 0x18]
test rax, rax
je 0x14002364f
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.140024860
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x40]
test rbx, rbx
je 0x14002364f
mov qword [rbp - 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x1400236f0]
lea r9, [rbp - 0x20]
mov r14, qword [rbp - 0x28]
mov rcx, r14
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x140023660
mov rax, qword [rbp - 0x20]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test rdi, rdi
jne 0x14002367e
jmp 0x140023692
mov qword [rsi + 8], rdx
mov qword [rsi], 1
jmp 0x1400236ac
mov r14, qword [rbp - 0x28]
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x140023692
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdi, rdi
je 0x140023692
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call fcn.140004280
mov rdx, qword [rbp - 0x30]
test rdx, rdx
je 0x1400236ac
add rdx, rdx
mov r8d, 2
mov rcx, r14
call fcn.140004280
mov rax, rsi
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140023710
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 [0x140039d38]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140023754
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 0x1400237ba
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400237f1
test eax, eax
js 0x1400237cb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400237e4
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 byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 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.14001e130
mov rcx, rax
call fcn.140018a40
mov ecx, 7
int 0x29
ud2
Function at 0x140031f30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x140031faa
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 0x140031fa0
cmp r11, r10
ja 0x140032043
cmp r10, rdx
ja 0x140032057
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140031fa2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140031f80
jmp 0x140032017
ja 0x140031faa
mov r11, r10
cmp rax, r8
jne 0x140031f52
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14003201b
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 0x140031ff0
mov r8, r10
sub ecx, r9d
jns 0x14003200e
jmp 0x14003201d
cmp r10, rdx
je 0x140032029
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14003201d
xor al, 1
cmp r8, rdx
jne 0x140031fd0
jmp 0x14003201d
xor eax, eax
jmp 0x14003201d
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.140034e10
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400353e0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140035360
ud2

Function at 0x140033d58
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140033da2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140033da2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140033da2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140033da2
cmp dword [rcx + 0x84], 0xe
jbe 0x140033da2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140033da4
xor al, al
add rsp, 0x28
ret
Function at 0x1400021dc
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 [0x140004650], rbx
je 0x140002228
cmp rax, rbx
jne 0x14000221b
mov ebx, 1
mov esi, ebx
jmp 0x14000222d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002200
mov ebx, 1
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x140002243
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400022a8
mov eax, dword [0x140004658]
test eax, eax
jne 0x1400022a2
mov dword [0x140004658], ebx
lea r15, [0x1400033b0]
lea rdi, [0x140003398]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002294
test eax, eax
jne 0x140002298
cmp qword [rdi], 0
je 0x140002289
mov rax, qword [rdi]
mov rcx, qword [0x140003378]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000226a
test eax, eax
je 0x1400022a8
mov eax, 0xff
jmp 0x140002384
mov dword [0x140004064], ebx
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x1400022cf
lea rdx, [0x140003390]
lea rcx, [0x140003380]
call sub.msvcrt.dll__initterm
mov dword [0x140004658], 2
test esi, esi
jne 0x1400022dc
xor eax, eax
xchg qword [0x140004650], rax
cmp qword [0x140004660], 0
je 0x140002310
lea rcx, [0x140004660]
call fcn.140002540
test eax, eax
je 0x140002310
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140004660]
mov r9, qword [0x140003378]
call r9
mov r8, qword [0x140004078]
mov rdx, qword [0x140004070]
mov ecx, dword [0x140004068]
call fcn.140001800
mov dword [0x140004060], eax
cmp dword [0x140004080], 0
jne 0x140002340
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004064], 0
jne 0x140002355
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004060]
jmp 0x140002384
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.140184000
add rsp, 0x28
jmp 0x1400021dc

Function at 0x140002450
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000249c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002494
cmp dword [rcx + 0x3c], edx
jl 0x140002494
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002494
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 0x14000249c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140004970
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x48
lea rdx, str..OCP
lea rcx, [rsp + 0x38]
mov r8d, 0x3f
mov dword [rsp + 0x30], 0
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::locale::constructor_char_const____ptr64__int____ptr64]
lea rcx, [rsp + 0x28]
mov rdx, rax
call qword [sym.imp.MSVCP90.dll_public:_static_class_std::locale___cdecl_std::locale::global_class_std::locale_const____ptr64_]
lea rcx, [rsp + 0x28]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::locale::destructor_void____ptr64]
lea rcx, [rsp + 0x38]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::locale::destructor_void____ptr64]
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x28], 0x2710
call fcn.1400072c0
test eax, eax
je 0x1400049f1
mov r9d, dword [rsp + 0x28]
cmp r9d, 0x2710
je 0x1400049f1
lea r8, str.logs_ModuleName._Pid.log
lea rcx, str.smi64
xor edx, edx
call fcn.140006e00
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov r8, rax
call fcn.140001640
add rsp, 0x48
ret

Function at 0x140004d20
Capabilities:
Parse pe header

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0xc0
mov rax, qword [0x140016030]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov rsi, rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], r8
test rdx, rdx
jne 0x140004d5d
mov ebx, 0x10000
jmp 0x140004d64
lea rbx, [rdx + 0x10000]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
xor r13d, r13d
mov r12d, 0x5a4d
nop dword [rax]
mov r9d, 0x30
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x140004e77
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x48]
add rcx, rax
cmp rcx, rbx
jb 0x140004e77
cmp dword [rsp + 0x50], 0x1000
jne 0x140004e65
mov eax, dword [rsp + 0x54]
cmp al, 1
je 0x140004e65
bt eax, 8
jb 0x140004e65
mov qword [rsp + 0x20], r13
mov r9d, 0x40
lea r8, [rsp + 0x70]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140004e65
cmp word [rsp + 0x70], r12w
jne 0x140004e50
movsxd rcx, dword [rsp + 0xac]
mov eax, ecx
cmp rax, qword [rsp + 0x48]
ja 0x140004e50
cmp ecx, 0x40
jb 0x140004e50
lea rdx, [rbx + rcx]
mov qword [rsp + 0x20], r13
mov r9d, 0xf8
mov r8, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140004e65
cmp dword [rdi], 0x4550
jne 0x140004e65
mov rax, rbx
jmp 0x140004e79
jmp 0x140004e65
mov rcx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rbx, rcx
jmp 0x140004d90
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140009f00
add rsp, 0xc0
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400072c0
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xe0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x140016030]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rsi, rcx
xor edi, edi
mov dword [rcx], 0x2710
lea rbp, vtable.SpeedBit::Utils::StackBufferEx_128_.0
mov qword [rsp + 0x30], rbp
mov qword [r11 - 0x28], 0x80
lea rax, [rsp + 0x38]
mov qword [r11 - 0x30], rax
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x38]
call sub.MSVCR90.dll_memset
nop
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x38]
mov rbx, rax
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x10]
mov r8d, ebx
mov rdx, rax
lea rcx, str.SB_VAR_F3B44D29_36CA_4481_9EA7_B31ADA3C649E
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
je 0x14000738e
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x38]
cmp ebx, eax
jae 0x14000738e
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x10]
mov rdx, rsi
mov rcx, rax
call fcn.1400071a0
mov edi, eax
mov qword [rsp + 0x30], rbp
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0xb8]
cmp rcx, rax
je 0x1400073b8
test rcx, rcx
je 0x1400073b4
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
jmp 0x1400073ba
mov eax, edi
jmp 0x1400073ba
mov eax, edi
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140009f00
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000a493
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140016030]
jne 0x140009f1a
rol rcx, 0x10
test cx, 0xffff
jne 0x140009f16
repz ret
ror rcx, 0x10
jmp 0x14000a3ec
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400168f0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400169e8]
mov qword [rsp + 0x58], r11
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 0x14000a471
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, [0x1400168f0]
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 0x14000a493
mov rax, qword [rsp + 0x88]
mov qword [0x1400169e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140016988], rax
mov rax, qword [0x1400169e8]
mov qword [0x140016860], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140016970], rax
mov dword [0x140016850], 0xc0000409
mov dword [0x140016854], 1
mov rax, qword [0x140016030]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140016038]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400168e8], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000e650]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400168e8], 0
jne 0x14000a51a
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
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 0x1405a6058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1405a61df
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 0x1405a6089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405a606f
add dl, dl
jne 0x1405a6096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405a60f6
xor eax, eax
add dl, dl
jne 0x1405a60a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405a61ad
add dl, dl
jne 0x1405a60b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405a60c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405a60d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405a60dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405a60ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405a607e
mov eax, 1
add dl, dl
jne 0x1405a6106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405a6113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405a60fb
sub eax, ebx
mov ebx, 1
jne 0x1405a614c
mov ecx, 1
add dl, dl
jne 0x1405a612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405a613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405a6123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405a607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405a6168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405a6175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405a615d
cmp eax, 0x7d00
jae 0x1405a619b
cmp eax, 0x500
jb 0x1405a6196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405a607e
cmp eax, 0x7f
ja 0x1405a619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405a607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405a61d2
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 0x1405a607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20