joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020718
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
push rbp
push rsi
push rdi
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov dil, r9b
mov ebx, ecx
xor esi, esi
mov qword [rbp + 0x17], rsi
lea rax, [rbp + 7]
mov qword [r11 - 0x60], rax
lea rax, [rbp + 0x17]
mov qword [r11 - 0x68], rax
mov dword [rsp + 0x30], 0x2001f
mov dword [rsp + 0x28], esi
lea r8, [0x1400a6540]
mov rdx, 0xffffffff80000002
call fcn.14000aa48
test eax, eax
jne 0x1400207b5
test dil, dil
jne 0x14003b226
lea rax, [rbp + 0x17]
mov qword [rbp + 0x27], rax
lea rax, [rbp + 7]
mov qword [rbp + 0x2f], rax
lea rax, [rbp + 0x6f]
mov qword [rbp + 0x37], rax
lea rax, [rbp + 0x77]
mov qword [rbp + 0x3f], rax
mov edi, esi
test ebx, ebx
je 0x1400207b5
test bl, 1
jne 0x1400207de
inc edi
shr ebx, 1
jne 0x1400207aa
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x1400207ca
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
lea edx, [rdi + 0x41]
lea rcx, [rbp + 0x27]
call fcn.1400207f4
jmp 0x1400207af
mov qword [rbp + 0xf], rsi
lea rax, [rbp + 7]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x77]
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14003b316
mov dword [rbp + 0xb], 3
lea r9d, [rax + 4]
mov dword [rsp + 0x28], r9d
lea rax, [rbp + 0xb]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.DriveType
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
lea rdx, [0x1400a65c0]
mov rcx, qword [rbp + 0x6f]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x14003b316
mov rcx, qword [rbp + 0x77]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x14003b2be
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.VolumeLabel
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x1400207b5
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x1400207b5
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x140020784
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x140020784
Function at 0x1400207f4
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400db348]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov eax, dword [0x1400b2410]
mov rbx, rcx
mov dword [rsp + 0x5c], eax
xor edi, edi
movzx eax, word [0x1400b2414]
xor r9d, r9d
mov word [rsp + 0x60], ax
xor r8d, r8d
mov rax, qword [rcx]
mov word [rsp + 0x5c], dx
lea rdx, [r11 - 0x1c]
mov qword [r11 - 0x28], rdi
mov rcx, qword [rax]
mov rax, qword [rbx + 8]
mov qword [r11 - 0x38], rax
lea rax, [r11 - 0x28]
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140020909
mov rcx, qword [rsp + 0x50]
lea r9d, [rdi + 4]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DriveType
mov dword [rsp + 0x58], 3
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400a65c0]
mov rcx, qword [rcx]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140020909
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x1400208cf
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.VolumeLabel
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14002091f
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14002a8b0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140020a24
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x30
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rsi, rdx
mov rbp, rcx
and qword [rdx], 0
lea rdx, [0x1400a6f84]
mov ecx, 0x208
call fcn.14002ad5c
mov rbx, rax
lea r9, [rsp + 0x48]
mov r8d, 0x104
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
je 0x14003b336
xor edi, edi
mov rax, rbx
xor ebx, ebx
mov qword [rsi], rax
mov rcx, rbx
mov rax, qword [0x14009e368]
call qword [case.0x140024a95.0]
nop
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.14000b7c0
mov edi, eax
cmp eax, 0x800700ea
jne 0x14003b3bb
mov ecx, dword [rsp + 0x48]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
lea rdx, [0x1400a6f84]
mov rcx, rax
call fcn.14002ad5c
mov rdi, rax
mov rcx, rbx
mov rax, qword [0x14009e368]
call qword [case.0x140024a95.0]
nop
mov rbx, rdi
test rdi, rdi
jne 0x14003b390
mov edi, 0x8007000e
jmp 0x140020a8d
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x48]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x140020a83
call fcn.14000b7c0
mov edi, eax
test edi, edi
js 0x140020a8d
jmp 0x140020a85

Function at 0x1400214ec
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x38
lea rax, [rbp + 0x30]
mov ebx, 1
mov qword [rsp + 0x28], rax
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, 0xffffffff80000002
mov dword [rsp + 0x20], ebx
call fcn.14000add8
test eax, eax
jg 0x14003b5ce
js 0x14002158a
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
and dword [rbp + 0x28], 0
lea r9, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea r8, str.EnableDefaultScope
lea rax, [rbp + 0x28]
mov dword [rbp + 0x20], 4
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x18], 4
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHGetValueW]
nop dword [rax + rax]
test eax, eax
jle 0x140021574
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x14003b5dd
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov al, bl
add rsp, 0x38
pop rbx
pop rbp
ret
movzx eax, ax
or eax, 0x80070000
test eax, eax
jmp 0x140021523
cmp dword [rbp + 0x18], 4
je 0x14003b5e8
call fcn.14009827c
cmp dword [rbp + 0x20], 4
je 0x14003b5f3
call fcn.14009827c
mov eax, dword [rbp + 0x28]
neg eax
sbb cl, cl
and bl, cl
jmp 0x14002157a
Function at 0x140021b30
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400db348]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor r14d, r14d
mov sil, r14b
lea rax, [rbp - 0x80]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x41
mov word [rbp - 0x80], r14w
lea rax, [0x14009b690]
mov qword [rsp + 0x68], rax
lea rax, [0x14009b5a0]
mov qword [rsp + 0x60], rax
mov dword [rbp + 8], r14d
mov qword [rbp + 0x10], r14
mov qword [rsp + 0x20], r14
mov r9d, 0x2001f
lea r8, str.SOFTWAREMicrosoftWindows_SearchCrawlScopeManagerWindows
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x60]
call fcn.140012560
test eax, eax
js 0x140021d12
mov eax, r14d
mov dword [rsp + 0x30], eax
lea edi, [r14 + 6]
lea r15d, [r14 + 4]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14003c0f6
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, r15d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetKeySecurity]
nop dword [rax + rax]
mov ecx, eax
mov eax, dword [rsp + 0x30]
cmp ecx, 0x7a
jne 0x140021d12
mov ecx, eax
lea rdx, [0x1400a6f84]
call fcn.14002ad5c
mov rbx, rax
test rax, rax
je 0x140021d01
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140021c4d
lea r9, [rsp + 0x30]
mov r8, rax
mov edx, r15d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetKeySecurity]
nop dword [rax + rax]
mov edi, eax
test edi, edi
jg 0x14003c0fd
js 0x140021d01
mov qword [rsp + 0x40], r14
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x34]
mov rcx, rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetSecurityDescriptorDacl]
nop dword [rax + rax]
test eax, eax
je 0x14003c10d
cmp dword [rsp + 0x34], r14d
je 0x140021d01
mov dword [rsp + 0x38], 0x44
lea r9, [rsp + 0x38]
lea r8, [rbp + 0x20]
xor edx, edx
lea ecx, [rdx + 0x1a]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
nop dword [rax + rax]
test eax, eax
je 0x14003c11f
mov edi, r14d
mov r15d, 1
lea r8, [rsp + 0x48]
mov edx, edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAce]
nop dword [rax + rax]
test eax, eax
je 0x140021d01
mov rdx, qword [rsp + 0x48]
add rdx, 8
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
jne 0x140021d49
add edi, r15d
test sil, sil
je 0x140021cc0
mov rcx, rbx
mov rax, qword [0x14009e368]
call qword [case.0x140024a95.0]
nop
lea rcx, [rsp + 0x60]
call fcn.140014700
mov al, sil
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14002a8b0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 4]
and ecx, 0xf003f
movzx esi, sil
cmp ecx, 0xf003f
cmove esi, r15d
jmp 0x140021cf9
mov ecx, edi
jmp 0x140021c08
movzx edi, di
or edi, 0x80070000
test edi, edi
jmp 0x140021c55
call fcn.14000b7c0
test eax, eax
js 0x140021d01
jmp 0x140021c86
call fcn.14000b7c0
test eax, eax
js 0x140021d01
jmp 0x140021cb7
Function at 0x140025450
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
nop dword [rax + rax]
mov r9d, 0x7cf
lea r12, [0x1400dc7d0]
mov r8, rax
mov rcx, r12
lea r13d, [r9 + 1]
mov edx, r13d
call fcn.140025830
xor r15d, r15d
test eax, eax
js 0x14002568c
mov rbx, r12
mov dword [rdi], r15d
lea edx, [r15 + 0x22]
cmp word [rbx], r15w
je 0x140025543
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jae 0x1400254e8
movzx ecx, word [rbx]
test cx, cx
je 0x1400254e3
call qword [sym.imp.msvcrt.dll_iswspace]
nop dword [rax + rax]
test eax, eax
jne 0x140025671
mov edx, 0x22
mov rax, rbx
sub rax, r12
and rax, 0xfffffffffffffffe
cmp rax, 0xfa0
je 0x140025543
movzx ecx, word [rbx]
test cx, cx
je 0x140025543
cmp cx, dx
je 0x14003d568
call qword [sym.imp.msvcrt.dll_iswspace]
nop dword [rax + rax]
test eax, eax
jne 0x14002552a
cmp word [rbx], r15w
je 0x14002552a
add rbx, 2
movzx ecx, word [rbx]
jmp 0x14002550b
inc dword [rdi]
mov rcx, rbx
sub rcx, r12
mov edx, 0x22
sar rcx, 1
cmp rcx, r13
jb 0x1400254af
cmp dword [rdi], r15d
je 0x14002568c
movsxd rcx, dword [rdi]
mov eax, 8
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
mov rax, qword [0x14009e360]
call qword [case.0x140024a95.0]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14002568c
mov rbx, r12
mov ebp, r15d
mov r14, rax
mov esi, 0x22
cmp word [rbx], r15w
je 0x14002564e
cmp ebp, dword [rdi]
jge 0x14002564e
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jae 0x1400255ca
movzx ecx, word [rbx]
test cx, cx
je 0x1400255ca
call qword [sym.imp.msvcrt.dll_iswspace]
nop dword [rax + rax]
test eax, eax
jne 0x14003d590
mov rcx, rbx
sub rcx, r12
sar rcx, 1
cmp rcx, r13
je 0x14002564e
cmp word [rbx], r15w
je 0x14002564e
cmp word [rbx], si
lea r8, [rbx + 2]
mov rax, rbx
cmove rax, r8
inc ebp
mov qword [r14], rax
add r14, 8
cmp word [rbx], si
je 0x14003d599
cmp rcx, r13
jae 0x14002562e
movzx ecx, word [rbx]
call qword [sym.imp.msvcrt.dll_iswspace]
nop dword [rax + rax]
test eax, eax
jne 0x14002562e
cmp word [rbx], r15w
je 0x14002563c
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x140025603
cmp word [rbx], r15w
je 0x14002563c
mov word [rbx], r15w
add rbx, 2
mov rcx, rbx
sub rcx, r12
sar rcx, 1
cmp rcx, r13
jb 0x14002558e
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
add rbx, 2
mov rax, rbx
sub rax, r12
sar rax, 1
cmp rax, r13
jb 0x1400254c7
jmp 0x1400254e3
xor eax, eax
jmp 0x140025653
lea rcx, [rbx + 2]
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14003d589
add rbx, 2
jmp 0x14002552a
inc dword [rdi]
jmp 0x140025543
add rbx, 2
jmp 0x1400255a0
mov edx, esi
mov rcx, r8
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14002564e
jmp 0x14002562e
Function at 0x1400282b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, r9
xor ecx, ecx
mov rsi, r8
mov rbp, rdx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [rbx + 0xb0]
test rcx, rcx
je 0x14003e78a
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
cmp eax, 0xea
je 0x14003e7a6
test eax, eax
jne 0x14003e791
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, 6
jmp 0x14003e793
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140028327
mov ecx, 0x7a
jmp 0x14003e793
Function at 0x14002a648
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.14002b264
add rsp, 0x28
jmp 0x14002a648
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x1400dbd38], rbx
je 0x14002a692
cmp rax, rbx
jne 0x14002a6a7
mov edi, 1
mov eax, dword [0x1400dbd40]
cmp eax, 1
jne 0x14002a6b4
lea ecx, [rax + 0x1e]
call fcn.140178000
jmp 0x14002a721
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14002a67b
mov eax, dword [0x1400dbd40]
test eax, eax
jne 0x14002a717
mov dword [0x1400dbd40], 1
lea r14, [0x1400a3d10]
lea rbx, [0x1400a3cf8]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x14002a709
test eax, eax
jne 0x14002a70d
cmp qword [rbx], 0
je 0x14002a6fe
mov rax, qword [rbx]
mov rcx, qword [case.0x140024a95.0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14002a6df
test eax, eax
je 0x14002a721
mov eax, 0xff
jmp 0x14002a874
mov dword [0x1400db430], 1
mov eax, dword [0x1400dbd40]
cmp eax, 1
jne 0x14002a749
lea rdx, [0x1400a3cf0]
lea rcx, [0x1400a3b08]
call sub.msvcrt.dll__initterm
mov dword [0x1400dbd40], 2
test edi, edi
jne 0x14002a756
xor eax, eax
xchg qword [0x1400dbd38], rax
cmp qword [0x1400dbd58], 0
je 0x14002a78a
lea rcx, [0x1400dbd58]
call fcn.14002b1d0
test eax, eax
je 0x14002a78a
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400dbd58]
mov r9, qword [case.0x140024a95.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x14002a816
test cl, cl
je 0x14002a7ad
test edi, edi
jne 0x14002a816
dec cl
cmp cl, 0x1f
ja 0x14002a7c0
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x14002a7ad
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140006738
mov dword [0x1400db42c], eax
cmp dword [0x1400db450], 0
jne 0x14002a7ff
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400db430], 0
jne 0x14002a814
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400db42c]
jmp 0x14002a874
cmp cl, 0x22
jne 0x14002a828
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14002a83a
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x14002a79d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x14002b0bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14002b108
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002b100
cmp dword [rcx + 0x3c], edx
jl 0x14002b100
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14002b100
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14002b108
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14002b37c
Capabilities:
Print debug messages

Disassembly:
jmp 0x14002b388
push rbx
sub rsp, 0x540
mov rax, qword [0x1400db348]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14002b405
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlVirtualUnwind]
jmp 0x14002b425
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14002a8b0
add rsp, 0x540
pop rbx
ret

Function at 0x14002b388
Capabilities:
Print debug messages

Disassembly:
jmp 0x14002b388
push rbx
sub rsp, 0x540
mov rax, qword [0x1400db348]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14002b405
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlVirtualUnwind]
jmp 0x14002b425
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14002a8b0
add rsp, 0x540
pop rbx
ret
Function at 0x140046234
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x358]
sub rsp, 0x450
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400db348]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov rdi, rcx
lea rax, [rbp + 0x130]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
nop dword [rax + rax]
mov ebx, eax
xor esi, esi
test eax, eax
js 0x1400463fc
mov ecx, 0x104
mov edx, ecx
lea rax, [rbp + 0x130]
cmp word [rax], si
je 0x1400462bc
add rax, 2
sub rdx, 1
jne 0x1400462ad
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rdx, rdx
je 0x1400462d9
mov rax, rcx
sub rax, rdx
jmp 0x1400462dc
mov rax, rsi
test rdx, rdx
je 0x140046341
sub rcx, rax
lea rdx, [rbp + 0x130]
lea rdx, [rdx + rax*2]
je 0x140046326
lea r8, [rax + 0x7ffffefa]
add r8, rcx
lea rax, str.MicrosoftSearchCatalogCorruptionLogData_
sub rax, rdx
test r8, r8
je 0x140046326
movzx r9d, word [rax + rdx]
test r9w, r9w
je 0x140046326
mov word [rdx], r9w
add rdx, 2
dec r8
sub rcx, 1
jne 0x140046305
lea rax, [rdx - 2]
test rcx, rcx
cmovne rax, rdx
mov word [rax], si
neg rcx
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
test ebx, ebx
js 0x1400463fc
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x48]
call fcn.14001c514
mov rdx, rax
mov rcx, rdi
call fcn.140056ccc
xor r8d, r8d
lea rdx, [rbp + 0x130]
xor ecx, ecx
call qword [sym.imp.api_ms_win_shell_shdirectory_l1_1_0.dll_Ordinal_290]
nop dword [rax + rax]
test eax, eax
je 0x14004639e
cmp eax, 0x50
je 0x14004639e
cmp eax, 0xb7
je 0x14004639e
test eax, eax
jg 0x140046395
mov ebx, eax
jmp 0x14004639e
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x1400463fc
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x130]
lea rcx, [rbp - 0x18]
call fcn.14001c514
mov rbx, rax
lea rdx, [rdi + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.14001c494
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x88]
call fcn.14001c8d8
nop
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call fcn.140056964
mov ebx, eax
test eax, eax
js 0x1400463fc
call fcn.14004d140
mov ebx, eax
mov eax, ebx
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.14002a8b0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret