joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cef20
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x4cef2d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x4cef3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x4cef25
lea eax, [rcx + 1]
jmp 0x4cef4b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x4cef5e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x4cef44
sub eax, 3
jb 0x4cef7e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x4cefcd
sar eax, 1
movsxd rbp, eax
jb 0x4cefb4
jmp 0x4cef8c
add ebx, ebx
jne 0x4cef8a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x4cefb4
inc ecx
add ebx, ebx
jne 0x4cef9a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x4cefb4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x4cefad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x4cef9c
add ecx, 2
jmp 0x4cefb9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.004ceee2
jmp 0x4cef2d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x7ac00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x4cf01d
cmp rsi, rcx
jae 0x4cf025
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x4cf004
cmp al, 0x8f
ja 0x4cf004
cmp byte [rsi - 2], 0xf
je 0x4cf00a
sub al, 0xe8
cmp al, 1
ja 0x4cefee
cmp rsi, rcx
jae 0x4cf025
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x4ceff4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x4cf025
lodsb al, byte [rsi]
jmp 0x4cf004
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xcc000]
mov eax, dword [rdi]
or eax, eax
je 0x4cf082
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xcf000]
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 0x4cf032
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 0x4cf07c
mov qword [rbx], rax
add rbx, 8
jmp 0x4cf052
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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 + 0x1af]
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
mov byte [fcn.004cf105], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.004cf105
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x4cf0f5
sub rsp, 0xffffffffffffff80
jmp 0x401500
Function at 0x140003df0
Capabilities:
Acquire debug privileges

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, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140003e43
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x140003e57
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000a9a0
add rsp, 0x68
ret
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x44], rax
mov r9d, 0x10
xor eax, eax
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x4c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140003e3d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000a9a0
add rsp, 0x68
ret

Function at 0x140003ec0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x290
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
xor edx, edx
mov ecx, 2
xor edi, edi
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140004024
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000401b
xorps xmm0, xmm0
mov qword [rsp + 0x30], rdi
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x6c]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], di
jne 0x140003f40
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.140008520
cmp qword [rbx + 0x18], 7
mov rdx, rbx
jbe 0x140003f66
mov rdx, qword [rbx]
cmp qword [rsp + 0x38], 7
lea rcx, [rsp + 0x20]
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rdx, qword [rsp + 0x38]
test eax, eax
je 0x140003fd7
cmp rdx, 7
jbe 0x140003fbf
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003fba
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000400f
call fcn.14000aacc
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140003f21
jmp 0x14000401b
mov edi, dword [rsp + 0x48]
cmp rdx, 7
jbe 0x14000401b
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004016
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004016
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000aacc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000a9a0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140006460
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000648d
xor eax, eax
jmp 0x1400065f9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400064c7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400064c7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400065f9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400065ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000650a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
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 0x140006535
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 0x1400065f1
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 0x1400065a4
sub eax, 1
je 0x1400065a4
cmp eax, 2
jne 0x1400065ec
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 0x1400065f1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400065d2
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 0x1400065ec
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400065f1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000a9a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140006d90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140006e63
cmp byte [rcx + 0x71], 0
je 0x140006e63
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140006e5f
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 0x140006e24
sub eax, 1
je 0x140006e28
cmp eax, 2
jne 0x140006e5f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000a9a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140006e56
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 0x140006e5f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140006e0c
xor al, al
jmp 0x140006e0c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000a9a0
add rsp, 0x60
pop rbx
ret

Function at 0x14000a148
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000a182
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000a187
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000a1d0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000d5a0]
cmp byte [rcx + rax], 0
je 0x14000a1d0
dec r8
sub rdx, 1
jne 0x14000a1b6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000b768
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140006d90]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140006da0]
mov dword [rax], 1
mov rax, qword [0x140006db0]
mov dword [rax], 1
mov rax, qword [0x140006d30]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140006d80]
mov dword [0x14000a00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140006e60]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140006e40]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140006ce0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001ee0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.strlen
mov dword [rbp - 4], eax
mov dword [rbp - 0x14], 0
mov edx, dword [rbp - 4]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rcx, [rbp - 0x14]
mov qword [rsp + 0x20], rcx
mov r9d, 0
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
call rax
test eax, eax
jne 0x140001f4b
mov eax, 0
jmp 0x140001fbb
mov eax, dword [rbp - 0x14]
mov eax, eax
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x10], rax
mov r8, qword [rbp - 0x10]
mov edx, dword [rbp - 4]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rcx, [rbp - 0x14]
mov qword [rsp + 0x20], rcx
mov r9, r8
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
call rax
test eax, eax
jne 0x140001fae
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.free
mov eax, 0
jmp 0x140001fbb
mov edx, dword [rbp - 0x14]
mov rax, qword [rbp + 0x18]
mov dword [rax], edx
mov rax, qword [rbp - 0x10]
add rsp, 0x60
pop rbp
ret
Function at 0x140001fc1
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov dword [rbp - 0x1c], 0
mov dword [rbp - 0x20], 0
mov qword [rbp - 8], 0
lea rax, [rbp - 0x10]
mov r9d, 0
mov r8d, 0
lea rdx, [0x140006390]
mov rcx, rax
call sym.BCryptOpenAlgorithmProvider
test eax, eax
jne 0x14000216b
mov rax, qword [rbp - 0x10]
mov dword [rsp + 0x20], 0
mov r9d, 0x20
lea r8, str.ChainingModeCBC
lea rdx, str.ChainingMode
mov rcx, rax
call sym.BCryptSetProperty
test eax, eax
jne 0x14000216e
mov rcx, qword [rbp - 0x10]
lea rax, [rbp - 0x18]
mov dword [rsp + 0x30], 0
mov edx, dword [rbp + 0x28]
mov dword [rsp + 0x28], edx
mov rdx, qword [rbp + 0x20]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov rdx, rax
call sym.BCryptGenerateSymmetricKey
test eax, eax
jne 0x140002171
mov rax, qword [rbp - 0x18]
mov r8d, dword [rbp + 0x18]
mov rdx, qword [rbp + 0x10]
mov dword [rsp + 0x48], 1
lea rcx, [rbp - 0x1c]
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov ecx, dword [rbp + 0x38]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rcx
mov r9d, 0
mov rcx, rax
call sym.BCryptDecrypt
test eax, eax
jne 0x140002174
mov eax, dword [rbp - 0x1c]
mov eax, eax
mov rcx, rax
call sym.malloc
mov qword [rbp - 8], rax
mov r8d, dword [rbp - 0x1c]
mov rax, qword [rbp - 0x18]
mov r10d, dword [rbp + 0x18]
mov rdx, qword [rbp + 0x10]
mov dword [rsp + 0x48], 1
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x38], r8d
mov rcx, qword [rbp - 8]
mov qword [rsp + 0x30], rcx
mov ecx, dword [rbp + 0x38]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rcx
mov r9d, 0
mov r8d, r10d
mov rcx, rax
call sym.BCryptDecrypt
test eax, eax
je 0x140002160
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.free
mov qword [rbp - 8], 0
jmp 0x140002175
mov edx, dword [rbp - 0x20]
mov rax, qword [rbp + 0x40]
mov dword [rax], edx
jmp 0x140002175
nop
jmp 0x140002175
nop
jmp 0x140002175
nop
jmp 0x140002175
nop
mov rax, qword [rbp - 0x10]
test rax, rax
je 0x14000218f
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
call sym.BCryptCloseAlgorithmProvider
mov rax, qword [rbp - 0x18]
test rax, rax
je 0x1400021a4
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.BCryptDestroyKey
mov rax, qword [rbp - 8]
add rsp, 0x70
pop rbp
ret
Function at 0x1400026e4
Capabilities:
Check for trap flag exception

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, rbp
mov rdx, rax
lea rax, [0x14000c5e0]
mov rcx, rax
call sym.__intrinsic_setjmpex
test eax, eax
jne 0x140002739
lea rax, [sym.trap_flag_handler]
mov rdx, rax
mov ecx, 4
call sym.signal
pushfq
or dword [rsp], 0x100
popfq
nop
mov edx, 0
mov ecx, 4
call sym.signal
mov eax, 0
jmp 0x14000273e
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140002744
Capabilities:
Check for debugger via api

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp - 4], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp - 4]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
call rax
test eax, eax
jne 0x14000278c
mov eax, dword [rbp - 4]
test eax, eax
jne 0x14000278c
call sym.CheckNtQueryInformationProcess
test eax, eax
je 0x140002793
mov eax, 1
jmp 0x140002798
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x1400028d1
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x858
lea rbp, [rsp + 0x80]
mov eax, 1
cpuid
mov r8d, ebx
mov dword [rbp + 0x7c0], eax
mov dword [rbp + 0x7c4], r8d
mov dword [rbp + 0x7c8], ecx
mov dword [rbp + 0x7cc], edx
mov eax, dword [rbp + 0x7c8]
test eax, eax
jns 0x140002919
mov eax, 1
jmp 0x1400029fe
lea rax, [rbp + 0x7b8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov r8d, 0
lea rax, str.SYSTEMCurrentControlSetServicesdiskEnum
mov rdx, rax
mov rcx, 0xffffffff80000002
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call rax
test eax, eax
jne 0x1400029f9
mov dword [rbp + 0x7b4], 0x800
mov rax, qword [rbp + 0x7b8]
lea rdx, [rbp + 0x7b4]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
lea rdx, [0x140006950]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call rax
test eax, eax
jne 0x1400029e6
lea rax, [rbp - 0x50]
lea rdx, [0x140006954]
mov rcx, rax
call sym.wcsstr
test rax, rax
jne 0x1400029cc
lea rax, [rbp - 0x50]
lea rdx, str.VBOX
mov rcx, rax
call sym.wcsstr
test rax, rax
je 0x1400029e6
mov rax, qword [rbp + 0x7b8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 1
jmp 0x1400029fe
mov rax, qword [rbp + 0x7b8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 0
add rsp, 0x858
pop rbx
pop rbp
ret

Function at 0x140002d10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140002d80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000c744]
test esi, esi
mov rbx, rcx
jle 0x140002eb0
mov rax, qword [0x14000c748]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002dcb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002e55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002db0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140002ed2
mov rax, qword [0x14000c748]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000c748]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002eb7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002e4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002e60
add dword [0x14000c744], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14000c748]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002e4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140002dd8
mov rax, qword [0x14000c748]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003440
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000c7a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c780]
test rbx, rbx
je 0x14000349c
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 0x140003493
test rsi, rsi
je 0x140003493
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003478
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 0x1400036b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop

Function at 0x1400036c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop