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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x90
mov rbx, r8
mov rdi, rdx
mov r13, rcx
call fcn.14001666c
movsxd r15, eax
mov rcx, 0xffffffffffffffff
mov eax, 4
lea r9d, [r15 + r15]
movsxd rbp, r9d
mul rbp
cmovo rax, rcx
mov rcx, rax
call fcn.14001d460
or dword [rsp + 0xd8], 0xffffffff
lea ecx, [r15*8]
mov r14, rax
mov dword [rsp + 0x30], ecx
lea rax, [rsp + 0x30]
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0xd8]
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rdx, rbx
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001a95b
cmp dword [rsp + 0xd8], 3
jne 0x14001a95b
mov eax, dword [rsp + 0x30]
lea rcx, [rbp*4]
cmp rax, rcx
jne 0x14001a95b
mov rcx, qword [r13 + 0x18]
lea eax, [r15 - 1]
lea r9, [r15 + 1]
movsxd r8, eax
lea r9, [r14 + r9*4]
mov edx, 0x1212
mov rbp, r15
call qword [sym.imp.USER32.dll_SendMessageW]
mov edi, esi
test r15d, r15d
jle 0x14001a958
mov ebx, esi
cmp dword [r14 + rbx*4], esi
jle 0x14001a94e
mov r15d, dword [r14 + rbx*4]
mov ecx, 0x4e
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp r15d, eax
jge 0x14001a94e
mov dword [rsp + 0x40], 1
lea r9, [rsp + 0x40]
mov dword [rsp + 0x44], r15d
mov edx, 0x120c
test edi, edi
jne 0x14001a93e
mov rcx, qword [r13 + 8]
xor r8d, r8d
jmp 0x14001a948
mov rcx, qword [r13 + 0x18]
lea eax, [rdi - 1]
movsxd r8, eax
call qword [sym.imp.USER32.dll_SendMessageW]
inc edi
inc rbx
cmp rbx, rbp
jl 0x14001a900
mov sil, 1
mov rcx, r14
call fcn.14001d3ac
lea r11, [rsp + 0x90]
mov al, sil
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret

Function at 0x14001a984
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140050310]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r13, r8
mov r12, rdx
mov r15, rcx
call fcn.14001666c
movsxd r14, eax
mov rcx, 0xffffffffffffffff
mov eax, 4
lea edx, [r14 + r14]
movsxd r8, edx
mul r8
cmovo rax, rcx
mov rcx, rax
call fcn.14001d460
lea ecx, [r14 - 1]
xor edi, edi
movsxd r8, ecx
mov edx, 0x1211
mov rsi, rax
lea r9, [rax + 4]
mov dword [rax + r14*4], edi
mov rcx, qword [r15 + 0x18]
lea r9, [r9 + r14*4]
call qword [sym.imp.USER32.dll_SendMessageW]
test r14d, r14d
jle 0x14001aa2c
mov ebx, edi
lea r8, [rsp + 0x30]
mov edx, edi
mov rcx, r15
call fcn.140017e08
mov eax, dword [rsp + 0x38]
inc edi
sub eax, dword [rsp + 0x30]
mov dword [rsi + rbx*4], eax
inc rbx
cmp rbx, r14
jl 0x14001aa08
lea r8d, [r14*8]
mov r9d, 3
mov dword [rsp + 0x28], r8d
mov rdx, r13
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rsi
call fcn.14001d3ac
mov al, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001d350
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001e2b4
Capabilities:
Parse pe header

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

Function at 0x1400274bc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14002734f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002734f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002734f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002734f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002734f
cmp dword [rcx + 0x84], 0xe
jbe 0x14002734f
cmp dword [rcx + 0xf8], 0
je 0x14002734f
mov ecx, ebx
call fcn.1400273f0
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400271e0
cmp dword [rbp + 0x20], 0
je 0x14002739c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400273a4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400272e8

Function at 0x1400359f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140035a18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140035a18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400042d0
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push r13
push r14
mov eax, 0x1078
call fcn.140010b90
sub rsp, rax
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rbp, rdx
mov qword [rsp + 0x38], r9
mov rdx, qword [rsp + 0x10c0]
xor r14d, r14d
mov qword [rsp + 0x30], rdx
mov r13, r8
mov qword [rsp + 0x40], rcx
test r8, r8
je 0x140004352
mov r9d, 0x1000
lea rdx, [rsp + 0x50]
call fcn.1400027a0
test al, al
jne 0x14000435a
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____Cant_read_module_headers
call fcn.1400060c0
lea rdx, [0x1400062a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rdx, r14
jmp 0x140004442
mov qword [rsp + 0x10a8], rsi
mov qword [rsp + 0x1070], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x1068], r12
mov qword [rsp + 0x1060], r15
inc rdi
cmp byte [rdi + rbp], r14b
jne 0x140004381
movsxd rax, dword [rsp + 0x8c]
lea rcx, [rsp + 0x50]
add rcx, rax
mov esi, r14d
movzx eax, word [rcx + 0x14]
lea r12, [rcx + 0x18]
movzx r15d, word [rcx + 6]
add r12, rax
test r15d, r15d
je 0x1400043fc
nop dword [rax]
nop word [rax + rax]
mov eax, esi
mov r8, rdi
mov rdx, rbp
lea rcx, [rax + rax*4]
lea rbx, [r12 + rcx*8]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400043f5
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], r14b
jne 0x1400043e3
cmp rdi, rax
je 0x14000447c
inc esi
cmp esi, r15d
jb 0x1400043c0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____Cant_find_section
call fcn.1400060c0
lea rdx, [0x1400062a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rdx, r14
mov r12, qword [rsp + 0x1068]
mov rdi, qword [rsp + 0x1070]
mov rsi, qword [rsp + 0x10a8]
mov r15, qword [rsp + 0x1060]
mov rax, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov r8d, r14d
mov qword [rsp + 0x20], rax
call fcn.140004150
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.14000faf0
add rsp, 0x1078
pop r14
pop r13
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x1400043fc
mov ecx, dword [rbx + 8]
lea rdx, [rsp + 0x50]
add rdx, rax
je 0x1400043fc
test ecx, ecx
je 0x1400043fc
lea rax, [rsp + 0x50]
mov r14d, ecx
sub rdx, rax
add rdx, r13
jmp 0x140004422
Function at 0x140005800
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000582d
xor eax, eax
jmp 0x140005999
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140005867
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140005867
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 0x140005999
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000598c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400058aa
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 0x1400058d5
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 0x140005991
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 0x140005944
sub eax, 1
je 0x140005944
cmp eax, 2
jne 0x14000598c
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 0x140005991
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005972
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 0x14000598c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140005991
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000faf0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005da0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005e73
cmp byte [rcx + 0x71], 0
je 0x140005e73
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140005e6f
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 0x140005e34
sub eax, 1
je 0x140005e38
cmp eax, 2
jne 0x140005e6f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000faf0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005e66
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 0x140005e6f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140005e1c
xor al, al
jmp 0x140005e1c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000faf0
add rsp, 0x60
pop rbx
ret
Function at 0x14000d250
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000d362
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000d362
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ecx, dword [rax + rdx + 0xb0]
test ecx, ecx
jne 0x14000d2c9
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x14000d36d
lea rbx, [rdx + rcx]
mov ebp, dword [rax + rdx + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x50]
cmp rbx, rbp
jae 0x14000d350
mov edx, dword [rbx + 4]
test edx, edx
je 0x14000d350
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, r8
je 0x14000d329
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x50], rcx
jmp 0x14000d345
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.14000dc30
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x14000d2e1
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x14000d36d
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000faf0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000eda0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
lea r9, [rsp + 0x20]
mov rsi, rcx
xor r14d, r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov ebx, r14d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000ee2e
test rbx, rbx
je 0x14000edf6
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
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 rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000ede0
test eax, eax
jns 0x14000ee4f
test rbx, rbx
je 0x14000ee54
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14000ef52
test rbx, rbx
jne 0x14000ee5b
xor eax, eax
jmp 0x14000ef52
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rdi
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x14000ef32
mov eax, edi
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x28], xmm0
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rdx, 0x30
mov qword [rsp + 0x38], r14
add rdx, rcx
mov qword [rsp + 0x40], r14
add rdx, rbx
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], r14b
jne 0x14000eeb0
lea rcx, [rsp + 0x28]
call fcn.140008700
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x14000eed0
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
cmova rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000ef68
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14000ef28
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ef23
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000efb1
call fcn.14000fb10
inc edi
cmp edi, dword [rbx]
jb 0x14000ee74
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000faf0
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14000efbd
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000efb8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000efb8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000fb10
mov rax, rdi
jmp 0x14000ef45
Function at 0x14000f3d4
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 0x14000f40e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000f413
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 0x14000f45c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140012660]
cmp byte [rcx + rax], 0
je 0x14000f45c
dec r8
sub rdx, 1
jne 0x14000f442
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400108e0
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140086694
xor r8d, r8d
xor edx, edx
jmp 0x140086384

Function at 0x14003c1ee
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400af060
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400d1008]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x1400d41b8]
xor r11d, r11d
lea rdi, [0x1400bc4a4]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x1400af0d0
mov rax, 0xfffffffffffffffe
jmp 0x1400af21d
cmp word [r10 + 6], r11w
jne 0x1400af13f
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x1400af0fa
test r14, r14
je 0x1400af0eb
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x1400af21d
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x1400af108
mov r8b, 2
jmp 0x1400af126
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x1400af116
mov r8b, 3
jmp 0x1400af126
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x1400af212
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x1400af168
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x1400af212
cmp bl, bpl
jb 0x1400af212
cmp bl, r8b
jae 0x1400af212
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x1400af195
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x1400af212
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x1400af177
cmp r9, rbp
jae 0x1400af1c1
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x1400af0c4
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x1400af212
cmp edx, 0x110000
jae 0x1400af212
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x1400af212
test r14, r14
je 0x1400af200
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.14003db11
jmp 0x1400af21d
mov rdx, rsi
mov rcx, r10
call fcn.14003e179
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14003c68f
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003c23e
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x140043394
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140043421
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140043421
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140043421
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140043408
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140043402
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14004340a
add rdx, 0x28
jmp 0x1400433e7
xor edx, edx
test rdx, rdx
jne 0x140043413
xor al, al
jmp 0x140043427
cmp dword [rdx + 0x24], 0
jge 0x14004341d
xor al, al
jmp 0x140043427
mov al, 1
jmp 0x140043427
xor al, al
jmp 0x140043427
add rsp, 0x18
ret

Function at 0x14003c7e3
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400516dc
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1400bd468]
mov ecx, 2
lea r8, [0x1400bd460]
lea rdx, str.FlsGetValue
call fcn.1400511ac
mov ecx, ebx
test rax, rax
je 0x140051716
add rsp, 0x20
pop rbx
jmp qword [0x1400df020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14003c928
Capabilities:
Query environment variable

Disassembly:
jmp 0x14009a328
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14009a358
xor eax, eax
jmp 0x14009a41b
mov rbp, rbx
cmp word [rax], si
je 0x14009a37d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14009a364
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14009a360
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14003d2d3
movsxd r14, eax
test eax, eax
jne 0x14009a3bb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14009a351
mov rcx, r14
call fcn.14003b037
mov rdi, rax
test rax, rax
jne 0x14009a3d4
xor ecx, ecx
call fcn.14003b172
jmp 0x14009a3b0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14003d2d3
test eax, eax
jne 0x14009a405
mov rcx, rdi
call fcn.14003b172
jmp 0x14009a40f
xor ecx, ecx
call fcn.14003b172
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret