joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017ef0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000a760
sub rsp, rax
mov rax, qword [0x14003e048]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140019914
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140017f3f
mov rax, rbp
jmp 0x140018047
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x4da60]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001bedc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4da60]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140018043
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140018043
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001bedc
test rax, rax
js 0x140018043
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140018043
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140018035
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140018035
cmp byte [rcx], 0xd
jne 0x14001801b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001802a
cmp byte [rcx + 1], 0xa
jne 0x14001802a
inc rcx
jmp 0x14001802a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3e310]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140017ffd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140018047
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000a730
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140019154
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140018f50
Function at 0x14001b114
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14004da60]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001b16b
cmp word [rdx], r13w
jne 0x14001b16b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001b170
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001b295
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001b2b6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001b1a9
mov rdx, r9
mov word [rbx], cx
jmp 0x14001b1d0
cmp r9, r8
jae 0x14001b1e0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001b18a
jmp 0x14001b295
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001b28a
cmp dword [rsp + 0x80], esi
je 0x14001b28a
lea r8, [0x14004da60]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001b262
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001b232
mov word [rbx], r13w
jmp 0x14001b292
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001b23f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001b292
cmp word [rsp + 0x70], r13w
jne 0x14001b26f
cmp rbx, r14
je 0x14001b22c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001bee4
cmp word [rsp + 0x70], r13w
je 0x14001b295
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14004da60]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001b28f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001b295
Function at 0x14001cfc0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001cfd6
mov al, 1
jmp 0x14001d036
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001cfe7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001d034
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001768c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001d034
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001d034
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001d034
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001d036
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001f6bc
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14003e048]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14001f706
call fcn.140016698
mov dword [rax], 0xf
call fcn.1400166b8
mov dword [rax], 0xd
call fcn.14001a540
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000a730
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14001f711
lea eax, [rbx + 1]
jmp 0x14001f6f3
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14001f6f1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14001f6f3
Function at 0x14002211c
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 0x14002214c
xor eax, eax
jmp 0x14002220f
mov rbp, rbx
cmp word [rax], si
je 0x140022171
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140022158
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140022154
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.14001f768
movsxd r14, eax
test eax, eax
jne 0x1400221af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140022145
mov rcx, r14
call fcn.14001d25c
mov rdi, rax
test rax, rax
jne 0x1400221c8
xor ecx, ecx
call fcn.14001a5a8
jmp 0x1400221a4
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.14001f768
test eax, eax
jne 0x1400221f9
mov rcx, rdi
call fcn.14001a5a8
jmp 0x140022203
xor ecx, ecx
call fcn.14001a5a8
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 0x14002222c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400222b3
mov rsi, rbx
cmp word [rax], bp
je 0x140022272
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002225c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140022258
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001d25c
mov rdi, rax
test rax, rax
je 0x1400222a0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000b4f0
mov rbp, rdi
xor ecx, ecx
call fcn.14001a5a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140026c74
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400150b4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140026cfe
cmp byte [rbp - 0x21], r15b
je 0x140026cf9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140026d34
call fcn.14001e774
test eax, eax
jne 0x140026d20
cmp byte [rbp - 0x21], r15b
je 0x140026d18
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140026d34
cmp byte [rbp - 0x21], r15b
je 0x140026d31
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140014b9c
test eax, eax
jne 0x140026dd4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400150b4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140026d73
cmp byte [rbp - 0x21], r15b
je 0x140026da8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140026da8
call fcn.14001e774
test eax, eax
jne 0x140026d94
cmp byte [rbp - 0x21], r15b
je 0x140026d8d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140026da8
cmp byte [rbp - 0x21], r15b
je 0x140026da5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140014b9c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140026dd4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140026dd7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140026de5
mov rcx, rdi
call fcn.14001a5a8
cmp byte [rbp + 0x3f], r15b
je 0x140026df4
mov rcx, qword [rbp + 0x27]
call fcn.14001a5a8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140028460
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001bee4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001bee4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400285b0
cmp rax, 0xffffffffffffffff
je 0x1400285b0
xor edi, edi
test rbp, rbp
jle 0x14002855b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001e4e8
mov rbx, rax
test rax, rax
jne 0x1400284e8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028551
mov edx, 0x8000
mov ecx, r14d
call fcn.140015f98
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001cbc0
cmp eax, 0xffffffff
je 0x140028531
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400284f8
mov edx, r15d
mov ecx, r14d
call fcn.140015f98
jmp 0x140028551
cmp byte [rsi + 0x38], dil
je 0x140028548
cmp dword [rsi + 0x34], 5
jne 0x140028548
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028551
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a5a8
jmp 0x1400285c4
jns 0x1400285c4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001bee4
cmp rax, 0xffffffffffffffff
jne 0x14002857c
cmp byte [rsi + 0x30], dil
je 0x1400285c4
mov edi, dword [rsi + 0x2c]
jmp 0x1400285c4
mov ecx, r14d
call fcn.14001768c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400285c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400285c4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400285bd
mov eax, dword [rsi + 0x2c]
jmp 0x1400285c2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001bee4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140016190
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x200
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov r14, r8
mov rbx, rdx
mov rdi, rcx
xor r12d, r12d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 0xc1
mov word [rsp + 0x68], r12w
lea r13, fcn.140019f80
mov qword [rsp + 0x50], r13
lea r8, [rsp + 0x50]
lea rdx, [0x140094bc8]
mov rcx, rbx
call fcn.140013fe0
test eax, eax
je 0x1400392ec
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov dword [rsp + 0x34], 4
mov rcx, qword [rbx + 0xb0]
test rcx, rcx
je 0x14003924e
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.ProvidesNotifications
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400392e4
cmp dword [rsp + 0x38], 4
jne 0x1400392e4
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x24], eax
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x140039272
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140016280
test ebx, ebx
je 0x140039272
mov rax, qword [r14]
mov r15d, dword [rax - 0x10]
mov rsi, rdi
sub rsi, rax
sar rsi, 1
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or eax, ecx
jge 0x1400162bd
mov edx, ebx
mov rcx, r14
call fcn.140012d00
mov rcx, qword [r14]
movsxd rdx, ebx
add rdx, rdx
mov r9, rdx
cmp rsi, r15
jbe 0x140039258
mov r8, rdi
call qword [sym.imp.msvcrt.dll_memcpy_s]
test ebx, ebx
js 0x140039268
mov rax, qword [r14]
cmp ebx, dword [rax - 0xc]
jg 0x140039268
mov dword [rax - 0x10], ebx
movsxd rcx, ebx
mov rax, qword [r14]
mov word [rax + rcx*2], r12w
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x50], r13
test rdi, rdi
je 0x14001631a
lea rax, [rsp + 0x68]
cmp rdi, rax
jne 0x1400392c1
mov eax, r12d
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14002cdb0
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov ecx, 6
jmp 0x1400392e6
lea r8, [rcx + rsi*2]
call qword [sym.imp.msvcrt.dll_memmove_s]
nop
jmp 0x1400162db
mov ecx, 0x80070057
call fcn.14004a3b0
mov rcx, qword [r14]
sub rcx, 0x18
mov rbx, qword [rcx]
cmp dword [rcx + 8], 0
je 0x140016302
mov eax, dword [rcx + 0x10]
shr eax, 0x1f
test al, al
je 0x1400392a0
xor edx, edx
mov rcx, r14
call fcn.140012e28
nop
jmp 0x1400162fd
call int.140013dd0
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [case.0x140006f84.0]
add rax, 0x18
mov qword [r14], rax
jmp 0x1400162fd
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
nop
jmp 0x14001631a
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r12d, eax
test eax, eax
jle 0x140039304
movzx r12d, ax
or r12d, 0x80070000
lea rcx, [rsp + 0x50]
call fcn.140017f7c
nop
jmp 0x14001631a
Function at 0x14002cb54
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140195000
add rsp, 0x28
jmp 0x14002cb54
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 [0x1400c9b58], rbx
je 0x14002cb9e
cmp rax, rbx
jne 0x14002cbb3
mov edi, 1
mov eax, dword [0x1400c9b60]
cmp eax, 1
jne 0x14002cbc0
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x14002cc2d
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14002cb87
mov eax, dword [0x1400c9b60]
test eax, eax
jne 0x14002cc23
mov dword [0x1400c9b60], 1
lea r14, [0x140093760]
lea rbx, [0x140093748]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x14002cc15
test eax, eax
jne 0x14002cc19
cmp qword [rbx], 0
je 0x14002cc0a
mov rax, qword [rbx]
mov rcx, qword [case.0x140006f84.0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14002cbeb
test eax, eax
je 0x14002cc2d
mov eax, 0xff
jmp 0x14002cd82
mov dword [0x1400c9260], 1
mov eax, dword [0x1400c9b60]
cmp eax, 1
jne 0x14002cc55
lea rdx, [0x140093740]
lea rcx, [0x140093550]
call sub.msvcrt.dll__initterm
mov dword [0x1400c9b60], 2
test edi, edi
jne 0x14002cc62
xor eax, eax
xchg qword [0x1400c9b58], rax
cmp qword [0x1400c9b78], 0
je 0x14002cc96
lea rcx, [0x1400c9b78]
call fcn.14002d5f0
test eax, eax
je 0x14002cc96
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400c9b78]
mov r9, qword [case.0x140006f84.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]
mov cl, byte [rbx]
cmp cl, 0x20
ja 0x14002cd21
test cl, cl
je 0x14002ccb8
test edi, edi
jne 0x14002cd21
dec cl
cmp cl, 0x1f
ja 0x14002cccb
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x14002ccb8
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.1400245e0
mov dword [0x1400c925c], eax
cmp dword [0x1400c9280], 0
jne 0x14002cd0a
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400c9260], 0
jne 0x14002cd1f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400c925c]
jmp 0x14002cd82
cmp cl, 0x22
jne 0x14002cd33
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14002cd48
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x14002cca9
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x14007a7c0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0xa8]
sub rsp, 0x190
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rsi, rcx
lea rax, [rbp - 0x20]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 0x41
xor r15d, r15d
mov word [rbp - 0x20], r15w
lea rax, fcn.140019f80
mov qword [rbp - 0x38], rax
lea rax, [0x14008bba0]
mov qword [rbp - 0x40], rax
mov dword [rbp + 0x68], r15d
mov qword [rbp + 0x70], r15
mov qword [rsp + 0x20], r15
mov r9d, 0x2001f
lea r8, str.SOFTWAREMicrosoftWindows_SearchCrawlScopeManager_
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x40]
call fcn.140013ea0
lea r8, [rsp + 0x30]
lea rdx, str.SQMFullDriveIndexingSent
lea rcx, [rbp - 0x40]
call fcn.140014200
test eax, eax
jne 0x14007a98b
mov rcx, qword [rsi + 0x98]
mov rdx, qword [rcx]
call fcn.1400120d0
mov rdi, rax
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140097428]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
test eax, eax
js 0x14007a98b
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14001716c
nop
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.140012a08
nop
mov r14d, r15d
jmp 0x14007a968
mov rbx, rdi
mov rdx, rdi
mov rcx, qword [rsi + 0x98]
call fcn.1400465bc
mov rdi, rax
cmp dword [rbx + 0x50], r15d
je 0x14007a968
cmp qword [rbx + 8], 2
jne 0x14007a968
xor edx, edx
mov rcx, rbx
call fcn.140013d40
lea rdx, str.file:
mov rcx, qword [rax]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14007a968
lea edx, [rax + 1]
mov rcx, rbx
call fcn.140013d40
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140012a08
nop
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.140045db4
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.140021600
neg ebx
sbb eax, eax
add eax, 2
or eax, r14d
mov r14d, eax
mov r8d, eax
lea rdx, str.SQMFullDriveIndexingSent
lea rcx, [rbp - 0x40]
call fcn.14005ba70
test rdi, rdi
jne 0x14007a8d8
lea rcx, [rsp + 0x48]
call fcn.140021600
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xffffffffffffffe8
call int.140013dd0
nop
lea rcx, [rbp - 0x40]
call fcn.140013e30
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14002cdb0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140001fc0
Capabilities:
Parse pe header

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