joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000eb90
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140081040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
cmp eax, 2
je 0x14000ec69
xor edx, edx
mov dword [rsp + 0x30], 0x208
lea rcx, [0x140081f80]
mov r8d, 0x208
test eax, eax
jne 0x14000ec29
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x30]
mov r9d, 0x208
lea r8, [0x140081f80]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x1400824c8]
mov r9d, 0xc0
mov dword [rsp + 0x20], 0xc4
mov r8, rdi
lea rdx, [0x140081f86]
lea rcx, str._ws_ws_n_c_c_deleted_n_n
call fcn.14000ab70
jmp 0x14000ec69
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x30]
mov r9d, 0x208
lea r8, [0x140081f80]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x1400824c8]
mov r8, rdi
lea rdx, [0x140081f86]
lea rcx, str.Failed_to_delete_value:__ws_ws_n_n
call fcn.14000ab70
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140022200
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14000ec90
Capabilities:
Delete registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140081040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
cmp eax, 2
je 0x14000ed72
xor edx, edx
mov dword [rsp + 0x30], 0x208
lea rcx, [0x140081f80]
mov r8d, 0x208
test eax, eax
jne 0x14000ed2f
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x30]
mov r9d, 0x208
lea r8, [0x140081f80]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x1400824c8]
mov r9, rsi
mov dword [rsp + 0x28], 0xc4
mov r8, rdi
mov dword [rsp + 0x20], 0xc0
lea rdx, [0x140081f86]
lea rcx, str._ws_ws_ws_n_c_c_deleted_n_n
call fcn.14000ab70
jmp 0x14000ed72
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x30]
mov r9d, 0x208
lea r8, [0x140081f80]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbx
call qword [0x1400824c8]
mov r9, rsi
lea rdx, [0x140081f86]
mov r8, rdi
lea rcx, str.Failed_to_delete_value:__ws_ws_ws_n_n
call fcn.14000ab70
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140022200
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000f0d0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x590
mov rax, qword [0x140081040]
xor rax, rsp
mov qword [rsp + 0x580], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x370]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov r8, rdi
lea rdx, str._ws
lea rcx, [rsp + 0x370]
call qword [sym.imp.USER32.dll_wsprintfA]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x140
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x370]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
nop word [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x160]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x4c]
mov r8, rdi
lea rdx, str._ws_ws
lea rcx, [rsp + 0x160]
call qword [sym.imp.USER32.dll_wsprintfA]
movzx ecx, word [rsp + 0x4c]
movzx eax, word [rsp + 0x4e]
cmp cx, 0x2e
jne 0x14000f1a9
test ax, ax
je 0x14000f1e3
cmp cx, cx
jne 0x14000f1a9
cmp ax, cx
jne 0x14000f1a9
cmp word [rsp + 0x50], 0
je 0x14000f1e3
test byte [rsp + 0x20], 0x10
lea rdx, str.desktop.ini
je 0x14000f1c6
lea rcx, [rsp + 0x160]
call fcn.14000f0d0
jmp 0x14000f1e3
lea rcx, [rsp + 0x4c]
call qword [sym.imp.SHLWAPI.dll_StrStrA]
test rax, rax
je 0x14000f1e3
lea rcx, [rsp + 0x160]
call fcn.14000ed90
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14000f150
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x580]
xor rcx, rsp
call fcn.140022200
mov rbx, qword [rsp + 0x5a8]
add rsp, 0x590
pop rdi
ret
Function at 0x1400175d0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140081040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rdx
mov rdi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 0x22
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rsp + 0x40]
call fcn.140001e40
nop
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14001b7f0
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x14001773d
mov byte [rsp + 0x38], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14001773d
mov byte [rsp + 0x39], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x39]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14001773d
mov byte [rsp + 0x3a], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x3a]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14001773d
mov eax, dword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x140017703
mov rdi, qword [rdi]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14001773d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
sete bl
jmp 0x14001773f
xor bl, bl
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14001777f
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001777a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001777a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140022220
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140022200
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x14001acb0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14001acd8
add rsp, 0x20
pop r15
pop rdi
pop rbx
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 + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14001acfe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14001ad00
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14001ad59
test ecx, ecx
jle 0x14001ad39
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14001ad59
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14001ad59
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x14001ad80
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 0x14001ada2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14001adb8
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 0x14001add4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001add6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001ae12
mov qword [rsp + 0x20], rdi
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]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001aeae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001ae4d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14001ae8e
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]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14001aeae
cmp rbx, rax
ja 0x14001ae60
test rbx, rbx
je 0x14001aeae
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]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x14001b310
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140081040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001b33d
xor eax, eax
jmp 0x14001b4a9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14001b377
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14001b377
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 0x14001b4a9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001b49c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001b3ba
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 0x14001b3e5
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 0x14001b4a1
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 0x14001b454
sub eax, 1
je 0x14001b454
cmp eax, 2
jne 0x14001b49c
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 0x14001b4a1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14001b482
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 0x14001b49c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14001b4a1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140022200
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14001ba70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140081040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001bb43
cmp byte [rcx + 0x71], 0
je 0x14001bb43
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001bb3f
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 0x14001bb04
sub eax, 1
je 0x14001bb08
cmp eax, 2
jne 0x14001bb3f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140022200
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001bb36
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 0x14001bb3f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001baec
xor al, al
jmp 0x14001baec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140022200
add rsp, 0x60
pop rbx
ret
Function at 0x14001e350
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x50
mov rax, qword [0x140081040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
lea r9, [rsp + 0x20]
xor r8d, r8d
mov dword [rsp + 0x20], ebp
xor edx, edx
mov edi, ebp
lea ecx, [rbp + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14001e3d9
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14001e390
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
test eax, eax
js 0x14001e4b1
mov ebx, ebp
cmp dword [rdi], ebx
jbe 0x14001e4b1
nop word [rax + rax]
mov eax, ebx
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x28], xmm0
movzx edx, word [rcx + rdi + 0x2e]
lea rsi, [rcx + rdi]
add rdx, 0x30
mov qword [rsp + 0x38], rbp
add rdx, rcx
mov qword [rsp + 0x40], rbp
add rdx, rdi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], bpl
jne 0x14001e435
lea rcx, [rsp + 0x28]
call fcn.140001e40
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
lea rdx, str.ntoskrnl.exe
cmova rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14001e4e6
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14001e4a7
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e4a2
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e52f
call fcn.140022220
inc ebx
cmp ebx, dword [rdi]
jb 0x14001e400
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140022200
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rbx, qword [rsi + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14001e53b
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e536
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001e536
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140022220
mov rax, rbx
jmp 0x14001e4c4
Function at 0x140021a90
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 0x140021aca
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140021acf
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 0x140021b18
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140025aa0]
cmp byte [rcx + rax], 0
je 0x140021b18
dec r8
sub rdx, 1
jne 0x140021afe
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140021e88
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140021ba8
mov ebx, eax
test eax, eax
jne 0x140021eb8
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140021f1b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140021f12
test al, 0x10
je 0x140021f12
bt eax, 0xa
jae 0x140021f0b
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140021f2c
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140021f07
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140021f07
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x140021f12
and dword [rsp + 0x3c], 0
jmp 0x140021f17
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140022e00
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x1401b1aed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1401b1afd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1401b1ae5
lea eax, [rcx + 1]
jmp 0x1401b1b0b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1401b1b1e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1401b1b04
sub eax, 3
jb 0x1401b1b3e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1401b1b8d
sar eax, 1
movsxd rbp, eax
jb 0x1401b1b74
jmp 0x1401b1b4c
add ebx, ebx
jne 0x1401b1b4a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401b1b74
inc ecx
add ebx, ebx
jne 0x1401b1b5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401b1b74
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1401b1b6d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1401b1b5c
add ecx, 2
jmp 0x1401b1b79
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1401b1aa2
jmp 0x1401b1aed
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x131e00
mov dl, 0x26
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1401b1bdd
cmp rsi, rcx
jae 0x1401b1be5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1401b1bc4
cmp al, 0x8f
ja 0x1401b1bc4
cmp byte [rsi - 2], 0xf
je 0x1401b1bca
sub al, 0xe8
cmp al, 1
ja 0x1401b1bae
cmp rsi, rcx
jae 0x1401b1be5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1401b1bb4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1401b1be5
lodsb al, byte [rsi]
jmp 0x1401b1bc4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1ad000]
mov eax, dword [rdi]
or eax, eax
je 0x1401b1c4e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1b94a0]
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 0x1401b1bf2
jns 0x1401b1c27
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1401b1c31
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 0x1401b1c48
mov qword [rbx], rax
add rbx, 8
jmp 0x1401b1c12
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 0x1401b1c92
cmp al, 0xef
ja 0x1401b1c7a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1401b1c5a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1401b1c69
mov eax, dword [rdi]
add rdi, 4
jmp 0x1401b1c69
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 + 0x277]
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 0x1401b1ce6
sub rsp, 0xffffffffffffff80
jmp 0x140069780
Function at 0x140f5ec40
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f5ec4a
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 0x140f5ec73
pop rbp
sub rbp, 0x33
sub rbp, 0xf5ec40
sub rsp, 0x20
jmp 0x140f5ec92
mov rax, 0xf5ec40
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffdc486ad5
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f5ecb1
jmp 0x140f5ecc8
popfq
pop rsp
cmp al, 0x5e
pop rsp
jmp 0xdecbc2a7