joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800539e0
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x1800656fc]
mov rdi, rcx
test eax, eax
jne 0x180053a83
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
jne 0x180053a0a
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.180054200
mov rbx, rax
test rax, rax
jne 0x180053a26
lea edi, [rax + 8]
jmp 0x180053a49
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x180053a67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.1800545b4
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x1800656fc], edi
mov qword [0x180065700], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x180065708]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x180065708], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140002f90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1460
call fcn.140008cc0
sub rsp, rax
mov rax, qword [0x14000f040]
xor rax, rsp
mov qword [rsp + 0x1450], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
movaps xmm0, xmmword [str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]
movaps xmmword [rsp + 0x13d0], xmm0
movaps xmm1, xmmword [0x14000a7d0]
movaps xmmword [rsp + 0x13e0], xmm1
movaps xmm0, xmmword [0x14000a7e0]
movaps xmmword [rsp + 0x13f0], xmm0
movaps xmm1, xmmword [0x14000a7f0]
movaps xmmword [rsp + 0x1400], xmm1
movaps xmm0, xmmword [0x14000a800]
movaps xmmword [rsp + 0x1410], xmm0
movaps xmm1, xmmword [0x14000a810]
movaps xmmword [rsp + 0x1420], xmm1
movaps xmm0, xmmword [0x14000a820]
movaps xmmword [rsp + 0x1430], xmm0
movsd xmm0, qword [0x14000a830]
movsd qword [rsp + 0x1440], xmm0
mov eax, dword [0x14000a838]
mov dword [rsp + 0x1448], eax
movzx eax, word [0x14000a83c]
mov word [rsp + 0x144c], ax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rsp + 0x13c4], 0xffffffff
mov dword [rsp + 0x44], eax
lea eax, [rsi + 1]
nop dword [rax + rax]
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [rsp + rax*4 + 0x44], edx
inc rax
cmp rax, 0x270
jb 0x140003080
mov dword [rsp + 0x40], 0x270
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov dword [rsp + 0x20], 1
test rdi, rdi
je 0x14000312d
nop dword [rax + rax]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov edx, 0x3f
lea rcx, [rsp + 0x28]
call fcn.140007420
movzx r9d, word [rsp + rax*2 + 0x13d0]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14000311f
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 7
jbe 0x140003113
mov rax, qword [rbx]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], si
jmp 0x140003127
mov rcx, rbx
call fcn.140005f40
sub rdi, 1
jne 0x1400030d0
mov rax, rbx
mov rcx, qword [rsp + 0x1450]
xor rcx, rsp
call fcn.140007e70
lea r11, [rsp + 0x1460]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140004190
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x290
mov rax, qword [0x14000f040]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor ebx, ebx
mov dword [rsp + 0x28], 0x101
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
lea r8d, [rbx + 3]
lea rdx, [0x14000a8a8]
lea rcx, [rsp + 0x50]
call fcn.140006440
nop
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rdx, qword [rsp + 0x50]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov r8, qword [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140006440
nop
lea rcx, [rsp + 0x30]
call fcn.140003160
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140004270
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000426b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000426b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008080
movdqa xmm0, xmmword [0x14000aa80]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], bx
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1400042c8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400042c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400042c3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008080
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140007e70
add rsp, 0x290
pop rbx
ret

Function at 0x140004680
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 0x1400046a8
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 0x1400046ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400046d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004729
test ecx, ecx
jle 0x140004709
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 0x140004729
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004729
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 0x140004750
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 0x140004772
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140004788
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 0x1400047a4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400047a6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400047e2
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 0x14000487e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000481d
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 0x14000485e
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 0x14000487e
cmp rbx, rax
ja 0x140004830
test rbx, rbx
je 0x14000487e
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 0x140004ce0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000f040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140004d0d
xor eax, eax
jmp 0x140004e79
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004d47
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140004d47
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 0x140004e79
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140004e6c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004d8a
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 0x140004db5
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 0x140004e71
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 0x140004e24
sub eax, 1
je 0x140004e24
cmp eax, 2
jne 0x140004e6c
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 0x140004e71
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004e52
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 0x140004e6c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004e71
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140007e70
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005310
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000f040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400053e3
cmp byte [rcx + 0x71], 0
je 0x1400053e3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400053df
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 0x1400053a4
sub eax, 1
je 0x1400053a8
cmp eax, 2
jne 0x1400053df
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140007e70
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400053d6
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 0x1400053df
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000538c
xor al, al
jmp 0x14000538c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140007e70
add rsp, 0x60
pop rbx
ret
Function at 0x140007690
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1400076f1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1400076b0
mov ecx, dword [r9]
jmp 0x1400077d8
cmp ecx, 0x4e0
jb 0x1400077d8
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140007710
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140007760
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140007828
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 0x140007862
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140007867
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 0x1400078b0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000a530]
cmp byte [rcx + rax], 0
je 0x1400078b0
dec r8
sub rdx, 1
jne 0x140007896
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140008a14
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x98]
sub rsp, 0x190
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x140035410]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rbx, rcx
and dword [rsp + 0x38], 0
and qword [rsp + 0x20], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x30], 0
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140002042
and qword [rbx], 0
and qword [rbx + 8], 0
and qword [rbx + 0x10], 0
jmp 0x140002097
mov dword [rsp + 0x50], 0x130
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140002032
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.14000248c
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14000205c
mov rax, qword [rsp + 0x20]
mov qword [rbx], rax
mov rax, qword [rsp + 0x28]
mov qword [rbx + 8], rax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x10], rax
mov rax, rbx
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14000bb20
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400029c8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x670
mov rax, qword [0x140035410]
xor rax, rsp
mov qword [rsp + 0x660], rax
lea rdx, [rsp + 0x450]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edi, edi
test eax, eax
jne 0x140002a0a
xor al, al
jmp 0x140002aac
xor r9d, r9d
lea rax, [rsp + 0x240]
xor r8d, r8d
lea edx, [r9 + 0x1c]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140002a03
xor r9d, r9d
lea rax, [rsp + 0x30]
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140002a03
or rbx, 0xffffffffffffffff
lea rax, [rsp + 0x240]
mov r8, rbx
inc r8
cmp word [rax + r8*2], di
jne 0x140002a5c
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x450]
call fcn.14000c744
test eax, eax
je 0x140002aaa
lea rax, [rsp + 0x30]
inc rbx
cmp word [rax + rbx*2], di
jne 0x140002a84
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x450]
mov r8, rbx
call fcn.14000c744
test eax, eax
jne 0x140002a03
mov al, 1
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.14000bb20
mov rbx, qword [rsp + 0x680]
add rsp, 0x670
pop rdi
ret

Function at 0x140002ad0
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rdi, qword [r8]
or rax, 0xffffffffffffffff
xor esi, esi
inc rax
cmp word [rcx + rax*2], si
jne 0x140002ae1
lea eax, [rax*2 + 2]
mov ebx, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, rdi
mov r9d, ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140002b15
mov bl, sil
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002b28
Capabilities:
Copy file
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x140035410]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, rdx
lea rdx, [rsp + 0x20]
mov rbx, rcx
sub rdx, r8
xor esi, esi
movzx eax, word [r8]
mov word [rdx + r8], ax
lea r8, [r8 + 2]
test ax, ax
jne 0x140002b5c
lea rcx, [rsp + 0x20]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], si
jne 0x140002b77
mov rax, qword [0x14002bcc0]
xor edx, edx
mov qword [rcx], rax
mov rax, qword [0x14002bcc8]
mov qword [rcx + 8], rax
mov eax, dword [0x14002bcd0]
mov dword [rcx + 0x10], eax
movzx eax, word [0x14002bcd4]
mov word [rcx + 0x14], ax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, rsi
movzx eax, word [rsp + rcx + 0x20]
lea rcx, [rcx + 2]
mov word [rsp + rcx + 0x22e], ax
test ax, ax
jne 0x140002bb9
lea rdx, [rsp + 0x230]
sub rdx, 2
lea rdx, [rdx + 2]
cmp word [rdx], si
jne 0x140002bdb
mov rax, qword [str.psvhost.exe]
xor r8d, r8d
mov rcx, rdi
mov qword [rdx], rax
mov rax, qword [0x14002bce0]
mov qword [rdx + 8], rax
mov rax, qword [0x14002bce8]
mov qword [rdx + 0x10], rax
movzx eax, word [0x14002bcf0]
mov word [rdx + 0x18], ax
lea rdx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140002c48
lea rdx, [rsp + 0x230]
mov r8d, 0x103
mov rcx, rbx
call fcn.14000c5c4
mov word [rbx + 0x206], si
mov al, 1
jmp 0x140002c4a
xor al, al
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14000bb20
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140002c70
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x140035410]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov edx, 0x5c
mov rdi, rcx
call fcn.14000c60c
mov rbx, rax
test rax, rax
jne 0x140002cb5
mov rbx, rdi
jmp 0x140002cb9
add rbx, 2
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
lea edx, [r9 + 7]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r8, [rsp + 0x40]
lea rdx, str._s_s.lnk
lea rcx, [rbp + 0x150]
mov r9, rbx
call qword [sym.imp.USER32.dll_wsprintfW]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rsp + 0x30]
mov ebx, 1
lea r9, [0x140029bd8]
lea rcx, [0x140029be8]
mov r8d, ebx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140002d8e
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0xa0]
mov rcx, qword [rsp + 0x30]
lea rdx, str.OneDrive
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
lea rdx, [0x140029bf8]
call qword [rax]
test eax, eax
js 0x140002d83
mov rcx, qword [rsp + 0x38]
lea rdx, [rbp + 0x150]
mov r8d, ebx
mov r9, qword [rcx]
call qword [r9 + 0x30]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov al, bl
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.14000bb20
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret