joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a680
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x14003d180]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rdx
mov r15, rcx
mov qword [rbp - 0x71], rcx
mov qword [rbp - 0x71], rdx
xor eax, eax
mov dword [rbp - 0x29], eax
mov qword [rbp - 0x21], rax
mov dword [rbp - 0x19], 0x6a09e667
mov dword [rbp - 0x15], 0xbb67ae85
mov dword [rbp - 0x11], 0x3c6ef372
mov dword [rbp - 0xd], 0xa54ff53a
mov dword [rbp - 9], 0x510e527f
mov dword [rbp - 5], 0x9b05688c
mov dword [rbp - 1], 0x1f83d9ab
mov dword [rbp + 3], 0x5be0cd19
mov rsi, qword [rdx + 0x10]
mov r14, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x14000a706
mov r14, qword [rdx]
xor ebx, ebx
test rsi, rsi
je 0x14000a746
nop dword [rax]
mov ecx, eax
movzx eax, byte [r14 + rbx]
mov byte [rbp + rcx - 0x69], al
mov eax, dword [rbp - 0x29]
inc eax
mov dword [rbp - 0x29], eax
cmp eax, 0x40
jne 0x14000a73e
lea rcx, [rbp - 0x69]
call fcn.140001500
add qword [rbp - 0x21], 0x200
xor eax, eax
mov dword [rbp - 0x29], eax
inc rbx
cmp rbx, rsi
jb 0x14000a710
mov byte [rbp + rax - 0x69], 0x80
lea rcx, [rax + 1]
mov edx, 0x38
mov r8d, 0x40
cmp eax, edx
cmovb r8d, edx
cmp rcx, r8
jae 0x14000a776
sub r8, rcx
lea rax, [rbp - 0x69]
add rcx, rax
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [rbp - 0x29]
cmp eax, 0x38
jb 0x14000a79f
lea rcx, [rbp - 0x69]
call fcn.140001500
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rbp - 0x69], xmm2
movups xmmword [rbp - 0x59], xmm2
movups xmmword [rbp - 0x49], xmm2
mov qword [rbp - 0x39], rax
mov eax, dword [rbp - 0x29]
lea edx, [rax*8]
add rdx, qword [rbp - 0x21]
mov qword [rbp - 0x21], rdx
mov byte [rbp - 0x2a], dl
mov rax, rdx
shr rax, 8
mov byte [rbp - 0x2b], al
mov rax, rdx
shr rax, 0x10
mov byte [rbp - 0x2c], al
mov rax, rdx
shr rax, 0x18
mov byte [rbp - 0x2d], al
mov rax, rdx
shr rax, 0x20
mov byte [rbp - 0x2e], al
mov rax, rdx
shr rax, 0x28
mov byte [rbp - 0x2f], al
mov rax, rdx
shr rax, 0x30
mov byte [rbp - 0x30], al
shr rdx, 0x38
mov byte [rbp - 0x31], dl
lea rcx, [rbp - 0x69]
call fcn.140001500
xor bl, bl
nop
xor al, al
movzx r11d, bl
mov r10d, 3
sub r10d, r11d
shl r10d, 3
lea r9, [rbp - 0x19]
nop word [rax + rax]
mov r8d, dword [r9]
mov ecx, r10d
shr r8d, cl
movzx ecx, al
lea edx, [r11 + rcx*4]
mov byte [rbp + rdx + 7], r8b
inc al
lea r9, [r9 + 4]
cmp al, 8
jb 0x14000a820
inc bl
cmp bl, 4
jb 0x14000a800
lea rdx, [rbp + 7]
mov rcx, r15
call fcn.140001730
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14000a889
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14000a884
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000a8c2
mov rcx, r8
call fcn.1400294ec
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], recv
mov byte [rdi], 0
mov rax, r15
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140029490
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000d1b0
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 case.default.0x14000d1d1
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 0x14000d1fe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000d200
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000d259
test ecx, ecx
jle 0x14000d239
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 0x14000d259
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000d259
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
cld
invalid
Function at 0x14000d280
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 0x14000d2a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14000d2b1
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 0x14000d2d4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000d2d6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000d312
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 0x14000d3ae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000d34d
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 0x14000d38e
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 0x14000d3ae
cmp rbx, rax
ja 0x14000d360
test rbx, rbx
je 0x14000d3ae
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
invalid
Function at 0x14000d810
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14003d180]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000d83d
xor eax, eax
jmp 0x14000d9a9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000d877
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000d877
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 0x14000d9a9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000d99c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000d8ba
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 0x14000d8e5
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 0x14000d9a1
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 0x14000d954
sub eax, 1
je 0x14000d954
cmp eax, 2
jne 0x14000d99c
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 0x14000d9a1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000d982
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 0x14000d99c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000d9a1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140029490
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000eb80
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14003d180]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000ec53
cmp byte [rcx + 0x71], 0
je 0x14000ec53
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000ec4f
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 0x14000ec14
sub eax, 1
je 0x14000ec18
cmp eax, 2
jne 0x14000ec4f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140029490
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000ec46
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 0x14000ec4f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000ebfc
xor al, al
jmp 0x14000ebfc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140029490
add rsp, 0x60
pop rbx
ret
Function at 0x140023c40
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r9, r9
je 0x140023dd6
cmp r9, 4
jb 0x140023c7a
mov r10, r9
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r9, rax
mov eax, dword [rdx]
add rdx, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub r10, 1
jne 0x140023c61
xor r11d, r11d
test r9, r9
je 0x140023dd6
cmp r9, 8
jb 0x140023dad
lea r10, [rcx - 1]
lea rax, [r8 - 1]
add r10, r9
add rax, r9
cmp rcx, rax
ja 0x140023cac
cmp r10, r8
jae 0x140023dad
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x140023cc1
cmp r10, rdx
jae 0x140023dad
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x140023d67
mov r10, r9
mov qword [rsp + 0x18], rsi
and r10d, 0x3f
mov rbx, r9
sub rbx, r10
mov rdi, rdx
lea rax, [r8 + 0x10]
sub rdi, r8
mov rsi, rcx
sub rsi, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rdi + rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmm2, xmmword [rdi + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rsi + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x30]
movdqu xmm1, xmmword [rax - 0x30]
movdqu xmmword [rsi + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x20]
movdqu xmm2, xmmword [rax - 0x20]
movdqu xmmword [rsi + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rsi + rax - 0x20], xmm2
cmp r11, rbx
jb 0x140023d00
mov rsi, qword [rsp + 0x18]
cmp r10, 8
jb 0x140023d9f
mov r10, r9
and r10, 0xfffffffffffffff8
mov rbx, rdx
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rdi + rax - 8], xmm1
cmp r11, r10
jb 0x140023d80
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x140023dd6
sub rdx, r8
lea r10, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [r10 + rdx]
xor al, byte [r10]
mov byte [rcx + r10], al
lea r10, [r10 + 1]
sub r9, 1
jne 0x140023dc0
add rsp, 8
ret

Function at 0x140028bf4
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 0x140028c2e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140028c33
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 0x140028c7c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140030ee0]
cmp byte [rcx + rax], 0
je 0x140028c7c
dec r8
sub rdx, 1
jne 0x140028c62
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14002926c
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.140028c94
mov ebx, eax
test eax, eax
jne 0x14002929c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400292ff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400292f6
test al, 0x10
je 0x1400292f6
bt eax, 0xa
jae 0x1400292ef
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140029310
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400292eb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400292eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400292f6
and dword [rsp + 0x3c], 0
jmp 0x1400292fb
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 0x14002a148
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x360
mov rax, qword [0x14006d030]
xor rax, rsp
mov qword [rsp + 0x350], rax
mov rbx, rcx
mov qword [rsp + 0x100], rcx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140002cea
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x114]
call fcn.140032030
mov dword [rsp + 0x110], 0x238
lea rdx, [rsp + 0x110]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rcx, rsi
test eax, eax
je 0x140002cb6
lea rdx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x140002c61
lea rcx, [rsp + 0x13c]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140002b70
mov rdx, qword [rbx + 0x10]
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x140002b8b
mov r8, qword [rbx]
cmp rdx, rax
jne 0x140002c59
lea rax, [rsp + 0x13c]
test rdx, rdx
je 0x140002bc8
lea rcx, [rsp + 0x13c]
sub r8, rcx
nop dword [rax]
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x140002c59
add rax, 2
sub rdx, 1
jne 0x140002bb0
mov edi, dword [rsp + 0x118]
cmp edi, 0xffffffff
je 0x140002c61
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140002c21
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140002c1c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002d18
mov rcx, r8
call fcn.14002fb64
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 7
mov word [rbx], ax
mov eax, edi
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.14002fb00
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rcx, rsi
jmp 0x140002b43
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x80]
call fcn.1400056e0
nop
mov r8, rbx
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.1400055c0
nop
mov r8, rax
lea rcx, [rsp + 0x58]
call fcn.140006570
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140001230
lea rdx, [0x14006b040]
lea rcx, [rsp + 0x20]
call fcn.1400318b4
nop
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rax, str.Process32First_failed:
add rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400012a0
lea rdx, [0x14006b040]
lea rcx, [rsp + 0x20]
call fcn.1400318b4
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rax, str.CreateToolhelp32Snapshot_failed:
add rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400012a0
lea rdx, [0x14006b040]
lea rcx, [rsp + 0x20]
call fcn.1400318b4
nop
call fcn.140036e4c
int3
Function at 0x140002d20
Capabilities:
Query service status
Start service

Disassembly:
push rdi
sub rsp, 0x80
mov rax, qword [0x14006d030]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r8d, 0x20000000
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140002e87
mov r8d, 0xa0000000
mov qword [rsp + 0x90], rbx
lea rdx, str.TrustedInstaller
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x140002eb5
lea rax, [rsp + 0x48]
mov r9d, 0x24
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140002eec
nop dword [rax + rax]
mov ecx, dword [rsp + 0x54]
cmp ecx, 1
jne 0x140002dcf
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x140002e47
mov ecx, dword [rsp + 0x54]
lea eax, [rcx - 2]
cmp eax, 1
jbe 0x140002e10
cmp ecx, 4
jne 0x140002e1a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x6c]
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14002fb00
add rsp, 0x80
pop rdi
ret
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x48]
mov r9d, 0x24
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140002eec
jmp 0x140002db0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x30]
lea rax, str.StartService_failed:
add rdx, rax
call fcn.1400012a0
lea rdx, [0x14006b040]
lea rcx, [rsp + 0x30]
call fcn.1400318b4
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x30]
lea rax, str.OpenSCManager_failed:
add rdx, rax
call fcn.1400012a0
lea rdx, [0x14006b040]
lea rcx, [rsp + 0x30]
call fcn.1400318b4
int3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x30]
lea rax, str.OpenService_failed:
add rdx, rax
call fcn.1400012a0
lea rdx, [0x14006b040]
lea rcx, [rsp + 0x30]
call fcn.1400318b4
int3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x30]
lea rax, str.QueryServiceStatusEx_failed:
add rdx, rax
call fcn.1400012a0
lea rdx, [0x14006b040]
lea rcx, [rsp + 0x30]
call fcn.1400318b4
int3
Function at 0x1400033b0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14006d030]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
lea rax, [rsp + 0x50]
xor ecx, ecx
lea rdx, str.SOFTWAREMicrosoftWindows_Security_HealthUpdates
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ecx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140003461
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
lea rdx, [0x140063c88]
mov r9d, 1
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002fb00
add rsp, 0x60
pop rbx
ret
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002fb00
add rsp, 0x60
pop rbx
ret
Function at 0x140007864
Capabilities:
Get geographical location

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

Function at 0x14003086c
Capabilities:
Parse pe header

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

Function at 0x1400361d0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14003603b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003603b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003603b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003603b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003603b
cmp dword [rcx + 0x84], 0xe
jbe 0x14003603b
cmp dword [rcx + 0xf8], 0
je 0x14003603b
mov ecx, ebx
call fcn.1400360ec
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140035ec8
nop
cmp dword [rbp + 0x20], 0
je 0x140036089
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140036094
int3
xor r8d, r8d
xor edx, edx
jmp 0x140035fcc