joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000ec8c
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rbx, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x18000ecad
mov rcx, qword [rcx]
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [0x180024388]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000ed55
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rdi
test eax, eax
je 0x18000ed4e
xorps xmm6, xmm6
cvtsi2sd xmm6, qword [rsp + 0x60]
mulsd xmm6, qword [0x18001d9b0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x18000ed42
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18000ed3d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18000ed47
mov rcx, r8
call fcn.1800163b4
movaps xmm0, xmm6
jmp 0x18000ed93
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x18000ed8b
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18000ed86
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18000edb3
mov rcx, r8
call fcn.1800163b4
movsd xmm0, qword [0x18001d9c0]
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rbx, qword [rsp + 0x68]
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x18000edbc
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x202
lea rdx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18000ee13
and qword [rbx], 0
lea rdx, [0x18001d5c8]
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
xor r8d, r8d
mov byte [rbx], 0
jmp 0x18000eed6
cmp qword [rdi + 0x18], 0x10
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x3c], 2
mov dword [rsp + 0x40], 1
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
jb 0x18000ee3f
mov rdi, qword [rdi]
lea r9, [rbp + 0x130]
xor edx, edx
lea r8, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x18000ee62
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x18000edf0
mov rdi, qword [rbp + 0x130]
test rdi, rdi
je 0x18000ee9b
mov rdx, qword [rdi + 0x20]
lea r8, [rsp + 0x20]
mov r9d, 0x16
add rdx, 4
lea ecx, [r9 - 0x14]
call qword [sym.imp.WS2_32.dll_inet_ntop]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x18000ee6e
mov rdi, qword [rbp + 0x130]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
and qword [rbx], 0
lea rax, [rsp + 0x20]
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
or r8, 0xffffffffffffffff
mov byte [rbx], 0
inc r8
cmp byte [rax + r8], 0
jne 0x18000eec7
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1800047ec
lea r11, [rsp + 0x210]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x180010388
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xe0
mov rbx, rcx
mov edi, 0x68
mov r8d, edi
lea rcx, [rsp + 0x70]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x40], rcx
xor edi, edi
mov qword [rsp + 0x38], rdi
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov rdx, rbx
xor ecx, ecx
mov dword [rsp + 0x20], edi
mov dword [rsp + 0xac], 1
mov word [rsp + 0xb0], di
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x180010405
lea eax, [rdi + 1]
jmp 0x18001042b
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret

Function at 0x1800107bc
Capabilities:
Write file on windows

Disassembly:
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, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x1800107ed
call 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]
jmp 0x180010860
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x180010804
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180010806
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18001085a
test ecx, ecx
jle 0x18001083a
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
add r14, rbp
test rbx, rbx
jle 0x18001085a
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18001085a
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
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18001087c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1800108a9
xor eax, eax
jmp 0x180010998
cmp qword [rcx + 0x68], 0
je 0x1800108bb
call 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]
jmp 0x180010998
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x1800108d2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800108d4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180010901
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebx
mov rcx, rsi
add r14, rbx
sub rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rsi + 0x80], 0
mov rbx, rbp
je 0x180010992
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18001093f
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
mov r15d, 0xfff
jmp 0x18001096d
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x1800109b1
cmp rbp, r15
ja 0x180010947
test rbx, rbx
je 0x180010992
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rdi, rbx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
sub rdi, rbp
jmp 0x180010995
Function at 0x180010d28
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x180010d50
xor eax, eax
jmp 0x180010e68
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180010d7e
mov rax, qword [rcx + 0x58]
movsxd rcx, dword [rax]
add rcx, rdx
cmp rdx, rcx
jae 0x180010d7e
mov rcx, rbx
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], sil
mov eax, esi
jmp 0x180010e68
cmp qword [rbx + 0x80], 0
je 0x180010e66
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180010db9
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 0x180010ddd
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
cmovne edi, esi
jmp 0x180010e66
lea rax, [rbp + 0x30]
mov byte [rbp - 0x30], sil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x2f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x30]
lea rax, [rbp + 0x38]
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 0x180010e2b
sub eax, 1
je 0x180010e2b
cmp eax, 2
jne 0x180010e66
movsx ecx, byte [rbp - 0x30]
jmp 0x180010dc6
mov r14, qword [rbp + 0x30]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x180010e56
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x180010e66
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp + 0x38], rax
mov eax, esi
jne 0x180010e68
mov eax, edi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1800116ec
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov edi, 0xffff
xor r14d, r14d
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x18001171d
movzx eax, r14w
jmp 0x180011842
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18001174d
mov rax, qword [rcx + 0x58]
movsxd rcx, dword [rax]
lea rax, [rdx + rcx*2]
cmp rdx, rax
jae 0x18001174d
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Pninc_void____ptr64]
mov word [rax], si
movzx eax, si
jmp 0x180011842
cmp qword [rbx + 0x80], r14
je 0x18001183f
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18001178b
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1800117b5
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, di
je 0x18001183f
movzx edi, si
jmp 0x18001183f
lea rax, [rbp + 0x30]
mov word [rbp - 0x30], si
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x2e]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x30]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180011803
sub eax, 1
je 0x180011803
cmp eax, 2
jne 0x18001183f
movzx ecx, word [rbp - 0x30]
jmp 0x180011797
mov r14, qword [rbp + 0x30]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x18001182e
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x18001183f
lea rax, [rbp - 0x30]
mov byte [rbx + 0x72], 1
cmp qword [rbp + 0x38], rax
movzx eax, si
jne 0x180011842
movzx eax, di
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x18001246c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1800124c8
cmp byte [rcx + 0x71], 0
je 0x1800124c8
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180012510
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
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 0x1800124d5
sub eax, 1
je 0x1800124d9
cmp eax, 2
jne 0x180012510
mov byte [rbx + 0x71], 0
mov al, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x180012507
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x180012510
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1800124ca
xor al, al
jmp 0x1800124ca

Function at 0x18001266c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1800126cc
cmp byte [rcx + 0x72], 0
je 0x1800126cc
mov rax, qword [rcx]
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x180012714
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1800126d9
sub eax, 1
je 0x1800126dd
cmp eax, 2
jne 0x180012714
mov byte [rbx + 0x72], 0
mov al, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x18001270b
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x180012714
cmp byte [rbx + 0x72], 0
sete al
jmp 0x1800126ce
xor al, al
jmp 0x1800126ce
Function at 0x180015a1c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
mov rbx, r9
mov rdi, r8
mov rsi, rcx
mov ecx, 0x20
call fcn.180016378
mov rdx, qword [rsp + 0x60]
mov qword [rax], rdx
mov rdx, qword [rbx]
mov qword [rax + 8], rdx
mov rdx, qword [rdi]
mov qword [rax + 0x10], rdx
lea rcx, [0x180007b5c]
mov qword [rax + 0x18], rcx
mov qword [rsp + 0x48], rax
lea rbx, [rsi + 8]
mov qword [rsp + 0x28], rbx
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x180015ad4]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsi], rax
test rax, rax
je 0x180015aa6
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
and dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x180021728
Capabilities:
Query environment variable

Disassembly:
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 0x180021758
xor eax, eax
jmp 0x18002181b
mov rbp, rbx
cmp word [rax], si
je 0x18002177d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180021764
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180021760
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.18001dd4c
movsxd r14, eax
test eax, eax
jne 0x1800217bb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180021751
mov rcx, r14
call fcn.18001c3a0
mov rdi, rax
test rax, rax
jne 0x1800217d4
xor ecx, ecx
call fcn.18001c364
jmp 0x1800217b0
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.18001dd4c
test eax, eax
jne 0x180021805
mov rcx, rdi
call fcn.18001c364
jmp 0x18002180f
xor ecx, ecx
call fcn.18001c364
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

Function at 0x1800243e8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18001a3f4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180024489
cmp ebx, dword [rsp + 0x30]
je 0x180024482
test esi, esi
je 0x180024482
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18002445d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18002446a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180024447
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18002446e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18002448b
mov eax, 1
jmp 0x18002448b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000f880
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14000f903
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x14000f8ce
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsi]
mov rdx, rsi
mov r9, rax
call fcn.1400146c0
mov rcx, qword [rsi]
call fcn.140014650
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x14000f8fc
mov qword [rsi], rdi
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.140014680
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
adc byte [rbx - 0x40], ch
cmp byte [rsi - 0x3e51d628], bh
call qword [rax - 0x39]
xor byte [rdi], dl
sub dword [rcx - 0x8010103], ebx
std
invalid
invalid
invalid
invalid
std
invalid
sub ebx, dword [rbx - 0x4c]
mov edx, dword ss:[rdi - 0x16ae920]
rol byte [rsi - 0x41], 1
invalid

Function at 0x140010e90
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov r14, rcx
mov rax, qword [0x140065020]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov word [rdi], 0
xor ebx, ebx
lea r15, str.PROGRAMFILES
mov rsi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r15]
mov word [rsp + 0x20], 0
mov r8d, 0x104
mov rdx, rdi
call rsi
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140010eff
mov edx, eax
mov rcx, rdi
mov r8, r14
call fcn.140010e20
test al, al
jne 0x140010f0d
add rbx, 8
cmp rbx, 0x18
jne 0x140010ecd
xor esi, esi
jmp 0x140010f10
mov sil, 1
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14002a340
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140026970
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0xf0
mov edi, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [0x14012d2d8], rax
call fcn.140016d04
call fcn.1400f0318
call fcn.14001c798
lea rbp, [0x14012d0c0]
xor edx, edx
mov rcx, rbp
call fcn.140017ab8
call fcn.140007ba0
call fcn.1400192a0
lea rcx, [0x14012cb78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [0x14012cfe8]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, 0x3854
call fcn.14001b20c
lea rdx, str._06lu_06lu
lea rcx, [rsp + 0x20]
mov r9d, 0xd6fd2
mov r8d, 0x311f1
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rsp + 0x20]
lea rdx, [0x14011178a]
mov rcx, rbp
call fcn.14005ee18
lea r8, [rsp + 0x20]
lea rdx, str.PECMDVER
mov rcx, rbp
call fcn.14005ee18
lea rdx, str.AMD64_U
lea rcx, [rsp + 0x120]
call fcn.14006ac98
mov rdx, qword [section..data]
lea rcx, [rsp + 0x120]
call fcn.14005fb54
mov r8, qword [rsp + 0x120]
lea rdx, str.PECMDBUILD
mov rcx, rbp
call fcn.14005ee18
lea r8, [0x140111750]
lea rdx, [0x140111740]
mov rcx, rbp
call fcn.14005ee8c
mov ecx, 0x3861
call fcn.14001b20c
call fcn.14001b05c
mov ecx, 0x3863
call fcn.14001b20c
mov rax, qword [0x14012ca58]
xor esi, esi
cmp rax, rsi
mov qword [0x14012cf28], rbx
mov dword [0x14012a244], edi
cmove rax, rbx
mov qword [0x14012ca58], rax
call fcn.140057fe0
mov edx, dword [0x14012d398]
lea r8, str.WM_TaskbarRestart
mov rcx, rbp
call fcn.140062c34
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, str.__PID
mov edx, eax
mov rcx, rbp
call fcn.140062c34
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.1400068d0
lea r9, str._I64u
lea r8, str.__PPID
mov rdx, rax
mov rcx, rbp
call fcn.140062ba8
mov rdx, qword [0x14012cf28]
lea r9, str._I64u
lea r8, str.__HINST
mov rcx, rbp
call fcn.140062ba8
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r8, [0x1401116d0]
mov rcx, rbp
mov edx, eax
mov dword [0x14012cca4], eax
call fcn.140062c34
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [rax + 0x386c]
call fcn.14001b20c
movzx edx, word [0x14012c96c]
lea r8, str.SYSCODEPAGE
mov rcx, rbp
call fcn.140062c34
lea rcx, [rsp + 0x110]
mov edx, 0x20a
call fcn.14005fa8c
mov rdx, qword [rsp + 0x110]
mov ebx, 0x208
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r8, qword [rsp + 0x110]
lea rdx, [0x140111338]
mov rcx, rbp
call fcn.14005ee8c
mov r8, qword [rsp + 0x110]
lea rdx, [0x1401116a0]
mov rcx, rbp
call fcn.14005ee8c
mov rax, qword [rsp + 0x110]
lea rdx, str.CurDrv
mov word [rax + 4], si
mov r8, qword [rsp + 0x110]
mov rcx, rbp
call fcn.14005ee8c
mov rdx, qword [rsp + 0x110]
mov r8d, ebx
xor ecx, ecx
mov word [rdx], si
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8, qword [rsp + 0x110]
lea rdx, str.CurFile
mov rcx, rbp
call fcn.14005ee8c
call fcn.14001b214
lea rcx, [rsp + 0x110]
call fcn.140057768
lea rcx, [rsp + 0x120]
call fcn.140057768
mov rbx, qword [rsp + 0x118]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret