joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4c5e00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4c6802
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4e9108]
test eax, eax
je 0x2fc4c689a
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4e9110]
mov qword [rbp - 8], rax
jmp 0x2fc4c687e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c6872
cmp qword [rbp - 0x10], 0
je 0x2fc4c6872
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c6838
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c689b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c69a0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c69c8
mov eax, 0
jmp 0x2fc4c6a16
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c69f1
mov eax, 0
jmp 0x2fc4c6a16
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c6a11
mov eax, 0
jmp 0x2fc4c6a16
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c6a1c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c6a9a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c6a91
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c6a91
mov rax, qword [rbp - 8]
jmp 0x2fc4c6aaf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c6a64
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c65d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4c6fd2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4e9108]
test eax, eax
je 0x2fc4c706a
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4e9110]
mov qword [rbp - 8], rax
jmp 0x2fc4c704e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c7042
cmp qword [rbp - 0x10], 0
je 0x2fc4c7042
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c7008
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c706b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c7170
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c7198
mov eax, 0
jmp 0x2fc4c71e6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c71c1
mov eax, 0
jmp 0x2fc4c71e6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c71e1
mov eax, 0
jmp 0x2fc4c71e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c71ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c726a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c7261
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c7261
mov rax, qword [rbp - 8]
jmp 0x2fc4c727f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c7234
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400129f4
Capabilities:
Access peb ldr_data
Get kernel32 base address

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 r15d, ecx
mov ebp, r8d
mov rcx, qword gs:[0x60]
mov r14d, edx
xor edi, edi
mov r12d, 0x1000
mov r8d, r12d
mov rcx, qword [rcx + 0x30]
lea edx, [rdi + 8]
call qword [0x14001b1e0]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140012abe
mov r8, r12
xor edx, edx
mov rcx, rbx
call 0x1400180d9
jmp 0x140012a9a
cmp ebp, r12d
mov esi, r12d
mov rdx, rbx
mov ecx, r15d
cmovbe esi, ebp
mov r8d, esi
sub ebp, esi
call qword [0x14001af30]
nop dword [rax + rax]
xor ecx, ecx
cmp eax, esi
cmovne ecx, eax
test ecx, ecx
jne 0x140012a9e
add edi, esi
mov r8d, esi
mov rdx, rbx
mov ecx, r14d
call qword [0x14001afc0]
nop dword [rax + rax]
test ebp, ebp
jne 0x140012a58
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [0x14001b1e8]
nop dword [rax + rax]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1800014f8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
mov rbp, rsp
sub rsp, 0x50
mov eax, 0x400
lea r8, [rbp - 0x18]
lea rcx, [0x18000d0c0]
mov edx, 0xeb08af
xor ebx, ebx
mov dword [rbp - 0x18], 0x3dc00
mov dword [rbp - 0x14], eax
mov word [rbp - 0x10], 8
mov dword [rbp - 0xc], 0xef91
mov dword [rbp - 8], 1
mov dword [rbp - 0x30], 0xf10
mov dword [rbp - 0x2c], eax
mov word [rbp - 0x28], 8
mov dword [rbp - 0x24], 0x225
mov dword [rbp - 0x20], 1
call fcn.1800013cc
mov r12, rax
test rax, rax
je 0x180001628
lea r8, [rbp - 0x30]
lea rcx, [0x180ebd970]
mov edx, 0x17d4
call fcn.1800013cc
mov rsi, rax
test rax, rax
je 0x180001620
mov r13d, dword [rbp - 0x30]
lea r9d, [rbx + 0x40]
mov r8d, 0x3000
mov edx, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x1800015c9
mov r8d, r13d
mov rdx, rsi
mov rcx, rax
call fcn.180005420
jmp 0x1800015cc
mov rdi, rbx
test rdi, rdi
je 0x180001618
mov r9d, dword [rbp - 0x18]
mov r8, r12
mov edx, 1
xor ecx, ecx
call rdi
test rax, rax
je 0x180001618
xor r9d, r9d
mov r8d, 0x378
mov rcx, rax
lea edx, [r9 + 2]
call rdi
test rax, rax
je 0x180001618
mov rcx, qword [0x180ec0218]
mov edx, 0x2efd
call rax
test rax, rax
mov qword [0x180ec0220], rax
setne bl
mov rcx, rsi
call fcn.18000199c
mov rcx, r12
call fcn.18000199c
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rbp
ret
Function at 0x1800020c3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18000c070]
jne 0x18000187a
rol rcx, 0x10
test cx, 0xffff
jne 0x180001876
repz ret
ror rcx, 0x10
jmp 0x18000201c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180ebf240]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180ebf338]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800020a1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180ebf240]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1800020c3
mov rax, qword [rsp + 0x88]
mov qword [0x180ebf338], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180ebf2d8], rax
mov rax, qword [0x180ebf338]
mov qword [0x180ebf1b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180ebf2c0], rax
mov dword [0x180ebf1a0], 0xc0000409
mov dword [0x180ebf1a4], 1
mov rax, qword [0x18000c070]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18000c078]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180ebf238], eax
mov ecx, 1
call fcn.180004d84
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800082e0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180ebf238], 0
jne 0x18000214a
mov ecx, 1
call fcn.180004d84
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180006af4
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x18000c070]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18000318c
xor ebx, ebx
cmp qword [0x180ec01e8], rbx
mov rdi, rax
jne 0x180006c07
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180006cde
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180006cde
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180ec01e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180ec01f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x180ec01f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180ec0208], rax
test rax, rax
je 0x180006bfe
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180ec0200], rax
jmp 0x180006c0e
mov rax, qword [0x180ec0200]
jmp 0x180006c15
mov rax, qword [0x180ec0200]
mov r11, qword [0x180ec0208]
cmp rax, rdi
je 0x180006c7c
cmp r11, rdi
je 0x180006c7c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180ec0208]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180006c7c
test rax, rax
je 0x180006c7c
call rsi
test rax, rax
je 0x180006c76
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180006c76
test byte [rsp + 0x40], 1
jne 0x180006c7c
bts ebp, 0x15
jmp 0x180006cbc
mov rcx, qword [0x180ec01f0]
cmp rcx, rdi
je 0x180006cbc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180006cbc
call rax
mov rbx, rax
test rax, rax
je 0x180006cbc
mov rcx, qword [0x180ec01f8]
cmp rcx, rdi
je 0x180006cbc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180006cbc
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180ec01e8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180006cde
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180006ce0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180001860
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, byte [rdx]
mov r11, rcx
mov r10, qword [rsp + 0x88]
shl eax, 0x18
mov dword [rsp + 0x38], eax
movzx eax, word [rdx + 1]
mov dword [rsp + 0x3c], eax
mov rax, qword [rdx + 3]
add rdx, 0xb
mov qword [rsp + 0x40], rax
mov rax, qword [rcx + 8]
mov qword [r10], rax
mov rax, qword [rcx + 8]
mov qword [rsp + 0x28], r10
movzx ecx, word [rax]
mov dword [r10 + 8], ecx
lea rcx, str.ETW0
mov qword [r10 + 0x10], rdx
mov dword [r10 + 0xc], 2
movzx eax, word [rdx]
lea rdx, [rsp + 0x38]
mov dword [r10 + 0x18], eax
lea rax, [0x14037d424]
sub eax, ecx
mov dword [r10 + 0x1c], 1
mov rcx, qword [r11 + 0x20]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_EventWriteTransfer]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140038910
add rsp, 0x58
ret
Function at 0x14001617c
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor esi, esi
mov r14d, esi
mov dword [rbp + 7], esi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [rbp + 0xb], esi
lea rdx, [rbp + 0xb]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r15, rax
test rax, rax
je 0x140016231
call fcn.140109458
mov rdi, rax
mov rax, qword [rax]
mov rbx, qword [rax + 0x1b8]
mov qword [rbp + 0xf], rsi
movdqa xmm0, xmmword [0x140364f60]
movdqu xmmword [rbp + 0x1f], xmm0
mov word [rbp + 0xf], si
lea r8d, [rsi + 0xb]
lea rdx, str._firstsetup
lea rcx, [rbp + 0xf]
call fcn.14001b664
nop
lea r14d, [rsi + 1]
mov dword [rbp + 7], r14d
movsxd r8, dword [rbp + 0xb]
lea r9, [rbp + 0xf]
mov rdx, r15
mov rcx, rdi
mov rax, rbx
call qword [str.0B__]
test al, al
mov bl, r14b
jne 0x140016234
mov bl, sil
test r14b, 1
je 0x140016243
lea rcx, [rbp + 0xf]
call fcn.14001b814
call fcn.140109458
mov rcx, rax
mov rax, qword [rax]
mov rax, qword [rax + 0x3c8]
call qword [str.0B__]
test al, al
je 0x14001626f
mov rcx, qword [0x1403c2f58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x78]
jmp 0x14001627e
call fcn.140109458
mov rcx, rax
mov rax, qword [rax]
mov rax, qword [rax + 0x70]
call qword [str.0B__]
mov dil, al
test bl, bl
jne 0x14001634b
call fcn.140109458
mov rcx, rax
mov rax, qword [rax]
mov rax, qword [rax + 0x3f8]
call qword [str.0B__]
test al, al
je 0x14001634b
test dil, dil
jne 0x14001634b
xor r9d, r9d
mov byte [rsp + 0x48], sil
mov dword [rsp + 0x40], 3
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
mov byte [rsp + 0x28], sil
mov byte [rsp + 0x20], sil
xor r8d, r8d
lea rcx, [0x14035e910]
mov rdx, rcx
call fcn.140077434
test eax, eax
js 0x140016346
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], 2
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0xa4c4e40a
lea rax, [0x140361398]
mov qword [rsp + 0x20], rax
lea r9, str.StandaloneUpdater::HandleZeroExhaustPolicy
mov r8d, 0x5b7
lea rdx, str.D:dbs_shodct0508_230334cmd6clientonedriveProductStandaloneUpdater_standaloneupdaterlibStandaloneUpdater.cpp
lea rcx, [rbp + 0xf]
call fcn.1400765c4
xor edx, edx
lea rcx, [rbp + 0xf]
call fcn.1400779b4
call fcn.140077500
mov esi, 0x8004ee06
mov eax, esi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140038910
lea r11, [rsp + 0x90]
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
Function at 0x1400220c4
Capabilities:
Get file size

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rdx, [r11 - 0x14]
mov rbp, rcx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
and qword [rsp + 0x28], rdi
xor edx, edx
mov dword [rsp + 0x30], eax
mov r8d, 0x11000002
mov r9, qword [rsp + 0x30]
mov rcx, rbp
shr r9, 0x20
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
jne 0x14002212e
call fcn.1400225c4
mov ebx, eax
jmp 0x14002216a
mov rax, qword [rsp + 0x30]
xor r9d, r9d
and qword [rsp + 0x28], rdi
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov rdi, rax
test rax, rax
jne 0x14002216e
call fcn.1400225c4
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
test ebx, ebx
js 0x1400221e1
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x40
jb 0x1400221b7
movsxd rcx, dword [rdi + 0x3c]
mov r10d, eax
lea rax, [rcx + 0x108]
lea r9, [rcx + rdi]
cmp r10, rax
jb 0x1400221b7
movzx edx, word [r9 + 0x14]
add rdx, 0x18
lea r8, [rdx + r9]
movzx r9d, word [r9 + 6]
lea rax, [r9 + r9*4]
lea rcx, [rcx + rax*8]
add rcx, rdx
cmp r10, rcx
jae 0x1400221be
mov ebx, 0x800700c1
jmp 0x1400221e1
xor ecx, ecx
test r9d, r9d
je 0x1400221dc
mov rax, qword [str..odsusr]
cmp rax, qword [r8]
je 0x14002223b
add r8, 0x28
inc ecx
cmp ecx, r9d
jb 0x1400221cc
mov ebx, 0x800700de
xor ebp, ebp
test rdi, rdi
je 0x1400221fc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x1400221fc
call fcn.1400225c4
mov ebp, eax
test rsi, rsi
je 0x140022217
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140022217
test ebp, ebp
js 0x140022217
call fcn.1400225c4
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140038910
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
xor ebx, ebx
jmp 0x1400221e1
Function at 0x1400222e8
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xf0
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor eax, eax
mov rbx, rcx
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
xor edx, edx
lea rcx, [rsp + 0x74]
movups xmmword [rsp + 0x50], xmm0
lea r8d, [rax + 0x64]
call fcn.14003a220
xor edi, edi
mov dword [rsp + 0x70], WSAGetLastError
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
mov rdx, rbx
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140022386
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140038910
mov rbx, qword [rsp + 0x108]
add rsp, 0xf0
pop rdi
ret
Function at 0x14002ecd0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rbx, r8
mov rdi, rdx
mov qword [rsp + 0x50], rbx
mov esi, WSAStartup
mov r8d, esi
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.14003a220
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x64], 0x8540
lea rax, str.open
mov qword [rsp + 0x70], rax
cmp qword [rdi + 0x18], 8
jb 0x14002ed33
mov rdi, qword [rdi]
mov qword [rsp + 0x78], rdi
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002ed45
mov rax, qword [rbx]
mov qword [rbp - 0x80], rax
xor esi, esi
mov dword [rbp - 0x70], esi
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x14002ed61
mov edi, esi
jmp 0x14002ed75
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002ed82
mov rax, qword [rbx]
lea rcx, str.Args
mov qword [rbp + 8], rcx
mov edx, 1
mov dword [rbp], edx
mov qword [rbp + 0x10], rax
test rax, rax
je 0x14002edad
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], si
jne 0x14002eda2
jmp 0x14002edb0
mov rcx, rsi
mov qword [rbp + 0x18], rcx
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x38], 2
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], 0xa0c36d85
lea rax, [0x140361398]
mov qword [rsp + 0x20], rax
lea r9, str.StandaloneUpdaterShellAbstraction::LaunchProcess
mov r8d, 0x2e
lea rdx, str.D:dbs_shodct0508_230334cmd6clientonedriveProductStandaloneUpdater_standaloneupdaterlibStandaloneUpdaterShellAbstraction.cpp
lea rcx, [rbp - 0x30]
call fcn.1400765c4
lea rdx, [rbp]
lea rcx, [rbp - 0x30]
call fcn.1400779b4
call fcn.140077500
nop
mov rcx, rbx
call fcn.14001b814
mov eax, edi
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140038910
mov rbx, qword [rsp + 0x150]
add rsp, 0x130
pop rdi
pop rsi
pop rbp
ret