joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001cd1c
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
and qword [r11 - 0x48], 0
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [r11 - 0x48]
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptAcquireContextW]
test eax, eax
jne 0x14001cd95
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
mov eax, ecx
jmp 0x14001ced8
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x48], 1
lea r8, [rsp + 0x50]
mov edx, 0x18
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptGenRandom]
test eax, eax
jne 0x14001cde0
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
jmp 0x14001cec9
mov edi, 0x20
cmp qword [rbx + 0x10], rdi
jb 0x14001ce04
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 0x10
jb 0x14001cdfb
mov rax, qword [rbx]
jmp 0x14001cdfe
mov rax, rbx
mov byte [rax + 0x20], 0
jmp 0x14001ce16
mov rdx, rdi
sub rdx, qword [rbx + 0x10]
xor r8d, r8d
mov rcx, rbx
call fcn.14001e880
cmp qword [rbx + 0x18], 0x10
jb 0x14001ce22
mov r9, qword [rbx]
jmp 0x14001ce25
mov r9, rbx
lea rsi, [rsp + 0x50]
test r9, r9
je 0x14001ce9b
xor r10d, r10d
lea ecx, [r10 + 0x13]
xor r8d, r8d
mov eax, 8
test r8d, r8d
cmove ecx, eax
test ecx, ecx
jle 0x14001ce8c
mov edi, ecx
xor edx, edx
lea r11d, [rdx + 3]
movzx eax, byte [rsi]
or edx, eax
inc rsi
shl edx, 8
sub r11, 1
jne 0x14001ce50
mov r11d, 4
mov eax, edx
shr rax, 0x1a
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_application_json
mov al, byte [rax + rbp]
mov byte [r9], al
inc r9
shl edx, 6
sub r11, 1
jne 0x14001ce67
sub rdi, 1
jne 0x14001ce4a
lea r10d, [r10 + rcx*4]
inc r8d
test r8d, r8d
jle 0x14001ce39
mov edi, r10d
movsxd rdx, edi
cmp rdx, qword [rbx + 0x10]
ja 0x14001ceb8
mov qword [rbx + 0x10], rdx
cmp qword [rbx + 0x18], 0x10
jb 0x14001ceb2
mov rbx, qword [rbx]
mov byte [rbx + rdx], 0
jmp 0x14001cec7
sub rdx, qword [rbx + 0x10]
xor r8d, r8d
mov rcx, rbx
call fcn.14001e880
xor ebx, ebx
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptReleaseContext]
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400c20a0
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 0x140029138
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rbp + 0x1f], 7
xor r15d, r15d
mov qword [rbp + 0x17], r15
mov word [rbp + 7], r15w
lea r8d, [r15 + 0x43]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionWebManagementCoreConfig
lea rcx, [rbp + 7]
call fcn.140007004
nop
mov r8d, r15d
cmp word [0x1400fa498], r15w
setne r8b
lea rdx, [0x1400fa498]
lea rcx, [rbp + 7]
call fcn.140008328
or rdi, 0xffffffffffffffff
cmp word [rbx], r15w
jne 0x1400291c7
mov r8d, r15d
jmp 0x1400291d4
mov r8, rdi
inc r8
cmp word [rbx + r8*2], r15w
jne 0x1400291ca
mov rdx, rbx
lea rcx, [rbp + 7]
call fcn.140008328
lea r8, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae r8, qword [rbp + 7]
lea rcx, [rbp - 0x11]
call fcn.1400292f4
nop
cmp byte [rbp - 9], r15b
je 0x140029274
mov dword [rbp - 0x19], r15d
lea rax, [rbp - 0x19]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov r9d, 2
mov r8, rsi
xor edx, edx
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x140029274
mov eax, dword [rbp - 0x19]
test eax, eax
je 0x140029274
mov ecx, eax
call fcn.1400c1d60
mov rbx, rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r15
mov r9d, 2
mov r8, rsi
xor edx, edx
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0x1400292bd
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov bl, r15b
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x140029287
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
cmp qword [rbp + 0x1f], 8
jb 0x140029298
mov rcx, qword [rbp + 7]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov al, bl
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400c20a0
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
cmp word [rbx], r15w
jne 0x1400292c8
mov rdi, r15
jmp 0x1400292d2
inc rdi
cmp word [rbx + rdi*2], r15w
jne 0x1400292c8
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.140007004
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov bl, 1
jmp 0x140029277
Function at 0x140029380
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, r8
mov qword [rbp + 0x3f], 7
xor edi, edi
mov qword [rbp + 0x37], rdi
mov word [rbp + 0x27], di
lea r8d, [rdi + 0x43]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionWebManagementCoreConfig
lea rcx, [rbp + 0x27]
call fcn.140007004
nop
mov r8d, edi
cmp word [0x1400fa498], di
setne r8b
lea rdx, [0x1400fa498]
lea rcx, [rbp + 0x27]
call fcn.140008328
lea r8d, [rdi + 0x1a]
lea rdx, str.PostTempFolderMappingPairs
lea rcx, [rbp + 0x27]
call fcn.140008328
lea r8, [rbp + 0x27]
cmp qword [rbp + 0x3f], 8
cmovae r8, qword [rbp + 0x27]
lea rcx, [rbp + 0xf]
call fcn.1400292f4
cmp byte [rbp + 0x17], dil
jne 0x14002942b
mov bl, dil
jmp 0x140029465
mov dword [rbx], edi
mov dword [rbp + 7], 4
lea rax, [rbp + 7]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
mov r9d, 0x10
lea r8, str.NumMappingPairs
xor edx, edx
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
sete bl
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x140029475
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
cmp qword [rbp + 0x3f], 8
jb 0x140029486
mov rcx, qword [rbp + 0x27]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov al, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400c20a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140037c3c
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rdi
push r14
push r15
sub rsp, 0x50
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, r8
mov r15, rdx
mov rbp, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
and qword [r11 - 0x20], 0
and qword [r11 + 8], 0
mov rcx, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x140037c82
mov rax, qword [r8]
lea r9, [rbp + 0x40]
lea r8d, [rcx + rcx]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14003f9a4
test eax, eax
js 0x140037d10
mov rdi, qword [rbp + 0x30]
sub rdi, qword [rbp + 0x28]
mov rbx, qword [rsp + 0x40]
sub rbx, qword [rsp + 0x38]
mov r14, rdi
cmp rdi, rbx
cmovae r14, rbx
lea rdx, [rbp + 8]
mov rcx, r15
call fcn.14000ec80
xor r8d, r8d
test al, al
sete r8b
xor eax, eax
cmp rdi, rbx
setne al
or r8d, eax
test r14, r14
je 0x140037d08
mov rdx, qword [rsp + 0x38]
mov r9, qword [rbp + 0x28]
sub r9, rdx
movzx ecx, byte [r9 + rdx]
movzx eax, byte [rdx]
xor ecx, eax
or r8d, ecx
inc rdx
sub r14, 1
jne 0x140037cf2
test r8d, r8d
sete bl
jmp 0x140037d12
xor bl, bl
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140037d2a
xor edx, edx
call qword [sym.imp.api_ms_win_security_cryptoapi_l1_1_0.dll_CryptReleaseContext]
and qword [rsp + 0x70], 0
cmp qword [rsp + 0x38], 0
je 0x140037d3d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov al, bl
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14003929c
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x448
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov edi, ecx
lea r9, [r11 + 0x18]
mov r8, rdx
lea rcx, [rsp + 0x30]
mov ebx, 0x400
mov edx, ebx
call qword [sym.imp.msvcrt.dll_vsprintf_s]
lea r8d, [rbx - 2]
movsxd rdx, eax
cmp rdx, r8
lea rcx, [rsp + 0x30]
cmovb r8d, eax
movsxd rax, r8d
mov r8d, 0x7ffffffe
sub rbx, rax
add rcx, rax
lea rax, [rbx - 1]
cmp rax, r8
ja 0x140039344
sub r8, rbx
lea rdx, [0x1400fe2dc]
sub rdx, rcx
lea rax, [r8 + rbx]
test rax, rax
je 0x140039334
mov al, byte [rdx + rcx]
test al, al
je 0x140039334
mov byte [rcx], al
inc rcx
sub rbx, 1
jne 0x140039319
test rbx, rbx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
jmp 0x14003934c
test rbx, rbx
je 0x14003934c
mov byte [rcx], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
xor bl, bl
cmp edi, 2
ja 0x140039367
lea rcx, str.e_31_1m
jmp 0x140039373
cmp edi, 3
jne 0x14003937b
lea rcx, str.e_33_1m
call qword [sym.imp.msvcrt.dll_wprintf]
mov bl, 1
mov ecx, 1
call fcn.1400e3c64
mov rdx, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_fputs]
test bl, bl
je 0x1400393a4
lea rcx, str.e_0m
call qword [sym.imp.msvcrt.dll_wprintf]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400c20a0
add rsp, 0x448
pop rdi
pop rbx
ret
Function at 0x14003b0b0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r14d, r14d
mov rsi, rcx
cmp word [0x1400fa498], r14w
mov r9d, r14d
mov bl, 1
setne r9b
xor r8d, r8d
lea rdx, [0x1400fa498]
call fcn.14000e110
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14003b1a2
mov r9, rax
mov qword [rbp - 0x18], 7
xor r8d, r8d
mov qword [rbp - 0x20], r14
mov rdx, rsi
mov word [rbp - 0x30], r14w
lea rcx, [rbp - 0x30]
call fcn.140006c68
cmp qword [rbp - 0x18], 8
lea rcx, [rbp - 0x30]
cmovae rcx, qword [rbp - 0x30]
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
sete bl
test eax, eax
jne 0x14003b165
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
jne 0x14003b15a
mov bl, r14b
jmp 0x14003b165
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
cmp eax, 5
jne 0x14003b191
cmp qword [rbp - 0x18], 8
jb 0x14003b176
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
cmp word [0x1400fa498], r14w
lea r8, [rdi + 1]
mov r9, r14
mov rcx, rsi
setne r9b
jmp 0x14003b0ed
cmp qword [rbp - 0x18], 8
jb 0x14003b1a2
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
xor bl, 1
mov al, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400c20a0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x14003b1d0
Capabilities:
Delete directory

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x50
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov qword [r11 - 0x18], 7
xor esi, esi
mov qword [r11 - 0x20], rsi
mov word [rsp + 0x28], si
lea r8d, [rsi + 1]
lea rdx, [0x1400fc0bc]
lea rcx, [r11 - 0x30]
call fcn.140007004
nop
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.14003b56c
test al, al
sete dil
cmp qword [rsp + 0x40], 8
jb 0x14003b248
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
test dil, dil
je 0x14003b251
xor al, al
jmp 0x14003b269
cmp qword [rbx + 0x18], 8
jb 0x14003b25b
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
test eax, eax
setne al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400c20a0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14003b28c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
cmp qword [rcx + 0x18], 8
mov qword [rcx + 0x10], rbx
jb 0x14003b2b0
mov rax, qword [rcx]
jmp 0x14003b2b3
mov rax, rdi
mov word [rax], bx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov edx, 0x8000
lea rcx, [0x1400f8150]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
mov esi, eax
test eax, eax
jns 0x14003b333
cmp dword [0x140142444], 2
jb 0x14003b2f8
mov r8d, eax
lea rdx, str.Failed_to_get_temp_folder_path:_0x_x
mov ecx, 2
call fcn.14003929c
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x14003b32f
test byte [rcx + 0x1c], 8
je 0x14003b32f
cmp byte [rcx + 0x19], 2
jb 0x14003b32f
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400fe548]
mov edx, 0xa
mov r9d, esi
call fcn.140007608
xor al, al
jmp 0x14003b365
mov rdx, qword [rsp + 0x30]
cmp word [rdx], bx
je 0x14003b34d
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], bx
jne 0x14003b341
mov rbx, rax
mov r8, rbx
mov rcx, rdi
call fcn.140007004
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov al, 1
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14003b37c
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rsi, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryW]
xor ebx, ebx
test eax, eax
je 0x14003b420
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rbx
lea edx, [rax + 1]
lea rcx, [rsp + 0x28]
call fcn.14000db88
nop
mov rcx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
sub rcx, rdi
sar rcx, 1
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14003b412
cmp word [rdi], bx
je 0x14003b3f6
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], bx
jne 0x14003b3ea
mov rbx, rax
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140007004
nop
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
xor eax, eax
jmp 0x14003b440
test rdi, rdi
je 0x14003b420
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
mov eax, ecx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14003b458
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp qword [rdx + 0x18], 8
mov rdi, r8
jb 0x14003b484
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x14003b48e
mov rcx, qword [rcx]
lea r9, [rsp + 0x20]
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetTempFileNameW]
xor ebx, ebx
test eax, eax
jne 0x14003b516
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
cmp dword [0x140142444], 2
jb 0x14003b4db
mov r8d, edi
lea rdx, str.Failed_to_get_temp_folder_name:_0x_x
lea ecx, [rbx + 2]
call fcn.14003929c
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x14003b512
test byte [rcx + 0x1c], 8
je 0x14003b512
cmp byte [rcx + 0x19], 2
jb 0x14003b512
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400fe548]
mov edx, ntohs
mov r9d, edi
call fcn.140007608
mov eax, edi
jmp 0x14003b544
cmp word [rsp + 0x20], bx
je 0x14003b532
lea rcx, [rsp + 0x20]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x14003b526
mov rbx, rax
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140007004
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400c20a0
mov rbx, qword [rsp + 0x268]
add rsp, 0x240
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x14003baf6
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003bb09
test al, 0x10
jne 0x14003bb09
mov al, 1
jmp 0x14003bb0b
xor al, al
add rsp, 0x28
ret
Function at 0x14003c068
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov dil, dl
mov dword [rsp + 0x38], ecx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
xor ebx, ebx
call sub.msvcrt.dll_memset
and qword [rsp + 0x20], rbx
lea r8, [rsp + 0x50]
mov r9d, 0x208
lea rdx, str.SOFTWAREMicrosoftWebManagementCredentials
lea rcx, str.WindowsDevicePortalCreds
call qword [sym.imp.api_ms_win_stateseparation_helpers_l1_1_0.dll_GetPersistedRegistryLocationW]
and qword [rsp + 0x30], rbx
lea rax, [rsp + 0x30]
lea r9d, [rbx + 2]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003c164
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea r9d, [rbx + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SslCertState
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x14003c164
mov rcx, qword [rsp + 0x30]
lea r9d, [rbx + 4]
movzx eax, dil
lea rdx, str.RememberSslCertState
mov dword [rsp + 0x40], eax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x14003c182
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14003c192
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400c20a0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14003cc90
Capabilities:
Check if file exists
Modify service

Disassembly:
push rbx
sub rsp, 0x60
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
xor ebx, ebx
mov qword [rsp + 0x80], rax
test rax, rax
je 0x14003ce18
lea r8d, [rbx + 2]
mov rcx, rax
lea rdx, [0x1400fac68]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14003cd94
mov qword [rsp + 0x50], rbx
lea r8d, [rbx + 4]
mov qword [rsp + 0x48], rbx
or edx, 0xffffffff
mov qword [rsp + 0x40], rbx
mov r9d, edx
mov qword [rsp + 0x38], rbx
mov rcx, rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfigW]
test eax, eax
jne 0x14003cd87
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
cmp dword [0x140142444], 2
mov ebx, ecx
jb 0x14003cd50
mov r8d, ecx
lea rdx, str.Failed_to_change_service_configuration:_0x_x
mov ecx, 2
call fcn.14003929c
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x14003cd87
test byte [rcx + 0x1c], 8
je 0x14003cd87
cmp byte [rcx + 0x19], 2
jb 0x14003cd87
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400fe690]
mov edx, 0x13
mov r9d, ebx
call fcn.140007608
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x14003ce08
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
cmp dword [0x140142444], 2
mov ebx, ecx
jb 0x14003cdd1
mov r8d, ecx
lea rdx, str.Failed_to_open_web_management_service:_0x_x
mov ecx, 2
call fcn.14003929c
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x14003ce08
test byte [rcx + 0x1c], 8
je 0x14003ce08
cmp byte [rcx + 0x19], 2
jb 0x14003ce08
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400fe690]
mov edx, 0x14
mov r9d, ebx
call fcn.140007608
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x14003ce8c
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
cmp dword [0x140142444], 2
mov ebx, ecx
jb 0x14003ce55
mov r8d, ecx
lea rdx, str.Failed_to_open_SCM_manager:_0x_x
mov ecx, 2
call fcn.14003929c
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x14003ce8c
test byte [rcx + 0x1c], 8
je 0x14003ce8c
cmp byte [rcx + 0x19], 2
jb 0x14003ce8c
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400fe690]
mov edx, 0x15
mov r9d, ebx
call fcn.140007608
mov eax, ebx
add rsp, 0x60
pop rbx
ret