joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c010
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
xor rdi, rdi
mov rcx, rbx
mov edx, 1
call sub.kernel32.dll_TerminateProcess
test eax, eax
jne 0x43c03c
call sub.kernel32.dll_GetLastError_2
mov dword [0x00448f4c], eax
test esi, esi
je 0x43c04a
mov rcx, rbx
call fcn.0043c060
mov edi, eax
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x43c270
Capabilities:
Get disk information

Disassembly:
push rbp
sub rsp, 0x30
mov rbp, rsp
mov word [rbp + 0x28], cx
mov word [rbp + 0x2a], 0x3a
mov word [rbp + 0x2c], 0x5c
mov word [rbp + 0x2e], 0
lea rcx, [rbp + 0x28]
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
ja 0x43c2a1
xor rax, rax
jmp 0x43c2a3
mov al, 1
lea rsp, [rbp + 0x30]
pop rbp
ret

Function at 0x43c2b0
Capabilities:
Get disk information

Disassembly:
push rbp
sub rsp, 0x260
mov rbp, rsp
mov word [rbp + 0x44], cx
mov word [rbp + 0x46], 0x3a
mov word [rbp + 0x48], 0x5c
mov word [rbp + 0x4a], 0
lea rcx, [rbp + 0x44]
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
ja 0x43c2e3
mov al, 1
jmp 0x43c340
cmp eax, 2
je 0x43c33d
cmp eax, 5
je 0x43c33d
lea rcx, [rbp + 0x44]
lea rdx, [rbp + 0x4e]
mov r8d, 0x104
lea r9, [rbp + 0x258]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
jne 0x43c33d
call sub.kernel32.dll_GetLastError_2
cmp eax, 5
jne 0x43c33d
mov al, 1
jmp 0x43c340
xor rax, rax
lea rsp, [rbp + 0x260]
pop rbp
ret

Function at 0x43c930
Capabilities:
Set console window title

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
mov rbp, rsp
mov rbx, rcx
test rbx, rbx
je 0x43ca2e
mov rax, qword [0x00449990]
cmp qword [rax], 0
jne 0x43ca2e
mov rax, qword [0x00449788]
cmp byte [rax], 0
jne 0x43ca2e
mov ecx, 0x20c
call fcn.00404ae0
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x43ca2e
mov rcx, qword [rbp + 0x28]
mov edx, 0x104
call sub.kernel32.dll_GetConsoleTitleW
mov esi, eax
test esi, esi
je 0x43ca2e
mov rcx, rbx
call fcn.004235c0
lea rcx, [rbp + 0x28]
mov edx, esi
add edx, eax
add edx, dword [0x004670b4]
add edx, 0xa
add edx, edx
mov edx, edx
call fcn.00404b40
cmp qword [rbp + 0x28], 0
je 0x43ca2e
mov rax, qword [0x00449ae8]
cmp byte [rax], 0
je 0x43c9e7
mov rax, qword [rbp + 0x28]
mov ecx, dword [0x004670b4]
lea rcx, [rax + rcx*2]
mov rdx, rbx
call fcn.004235e0
jmp 0x43ca1c
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0043ca38]
call fcn.00423600
mov rcx, qword [rbp + 0x28]
call fcn.004235c0
mov dword [0x004670b4], eax
mov rcx, qword [rbp + 0x28]
mov rdx, rbx
call fcn.00423600
mov rax, qword [0x00449ae8]
mov byte [rax], 1
mov rcx, qword [rbp + 0x28]
call sub.kernel32.dll_SetConsoleTitleW
mov rcx, qword [rbp + 0x28]
call fcn.00404b10
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rbp
ret
Function at 0x43ca40
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x43ca7b
mov rax, qword [0x00449990]
cmp qword [rax], 0
jne 0x43ca7b
mov rax, qword [0x00449ae8]
cmp byte [rax], 0
je 0x43ca7b
call sub.kernel32.dll_SetConsoleTitleW
mov dword [0x004670b4], 0
mov rax, qword [0x00449ae8]
mov byte [rax], 0
add rsp, 0x28
ret

Function at 0x43cd70
Capabilities:
Encrypt data using rc6

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rcx, qword [0x00467178]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
call fcn.00404eb0
mov dword [0x004670bc], 0xb7e15163
mov ebx, 1
lea rax, [0x004670bc]
movsxd rcx, ebx
lea rdx, [0x004670b8]
movsxd r8, ebx
mov edx, dword [rdx + r8*4]
add edx, 0x9e3779b9
mov dword [rax + rcx*4], edx
add ebx, 1
cmp ebx, 0x2c
jne 0x43cda3
nop
xor rbx, rbx
xor rsi, rsi
xor r13, r13
xor r14, r14
mov edi, 1
lea rax, [0x004670bc]
movsxd rcx, ebx
mov ecx, dword [rax + rcx*4]
add ecx, r13d
add ecx, r14d
mov edx, 3
call fcn.0043cbc0
mov r13d, eax
lea rax, [0x004670bc]
movsxd rcx, ebx
mov dword [rax + rcx*4], r13d
movsxd rax, esi
mov ecx, dword [rsp + rax*4 + 0x20]
add ecx, r13d
add ecx, r14d
mov edx, r13d
add edx, r14d
call fcn.0043cbc0
mov r14d, eax
movsxd rax, esi
mov dword [rsp + rax*4 + 0x20], r14d
mov eax, ebx
add eax, 1
mov ecx, 0x2c
cdq
idiv ecx
mov rbx, rdx
mov eax, esi
add eax, 1
mov ecx, 0x10
cdq
idiv ecx
mov rsi, rdx
add edi, 1
cmp edi, 0x85
jne 0x43cddf
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret

Function at 0x43d3a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
xor rsi, rsi
mov rcx, 0xffffffff80000002
lea rdx, [0x0043d4a0]
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x238]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x43d479
mov rcx, qword [rbp + 0x238]
lea rdx, [0x0043d4e0]
xor r8, r8
lea r9, [rbp + 0x30]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x34]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x43d419
mov sil, 1
jmp 0x43d479
mov rcx, 0xffffffff80000002
lea rdx, [0x0043d4a0]
xor r8, r8
mov r9d, 0x20119
lea rax, [rbp + 0x238]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x43d479
mov rcx, qword [rbp + 0x238]
lea rdx, [0x0043d4e0]
xor r8, r8
lea r9, [rbp + 0x30]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x34]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x43d479
mov sil, 1
test sil, sil
je 0x43d491
mov rcx, rbx
lea rdx, [rbp + 0x38]
mov r8d, pe_nt_image_headers64
call fcn.0040b000
mov rax, rbx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rbp
ret
Function at 0x1400105c0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14036b028]
xor rax, rsp
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov rbx, rcx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r8, qword [rbx + 0x20]
add r8, 0x68
cmp qword [r8 + 0x18], 8
jb 0x1400105fb
mov r8, qword [r8]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 8
mov r9d, 3
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftOneDrive
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140020ae0
add rsp, 0x40
pop rbx
ret

Function at 0x140010970
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x28
add rcx, 0x30
cmp qword [rcx + 0x18], 8
jb 0x140010982
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14002164c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140021696
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140021696
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140021696
mov eax, SHFlushSFCache
cmp word [rcx + 0x18], ax
jne 0x140021696
cmp dword [rcx + 0x84], 0xe
jbe 0x140021696
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140021698
xor al, al
add rsp, 0x28
ret
Function at 0x14003aa5c
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 0x14003aae3
mov rsi, rbx
cmp word [rax], bp
je 0x14003aaa2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003aa8c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003aa88
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400390f4
mov rdi, rax
test rax, rax
je 0x14003aad0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400227c0
mov rbp, rdi
xor ecx, ecx
call fcn.1400389dc
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 0x140046ac0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140387cf0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140046b1e
cmp word [rdx], r12w
jne 0x140046b1e
or byte [rax + r8*8 + 0x38], cl
jmp 0x140046b24
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140046c7f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140046c5a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140046b5d
mov rcx, r9
jmp 0x140046b80
cmp r9, rdx
jae 0x140046b97
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140046b41
jmp 0x140046c7f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140046c54
cmp dword [rsp + 0x80], edi
je 0x140046c54
mov rdx, r14
lea r11, [0x140387cf0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140046c2d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140046c00
mov word [rbx], r12w
jmp 0x140046c7b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140046c09
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140046c7b
cmp word [rsp + 0x70], r12w
jne 0x140046c3a
cmp rbx, rsi
je 0x140046bfa
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400469e0
cmp word [rsp + 0x70], r12w
je 0x140046c7f
mov word [rbx], r13w
jmp 0x140046c7b
lea r11, [0x140387cf0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140046c77
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140046c7f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004ac80
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov rax, qword [0x14036b028]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor r14d, r14d
lea r15, [0x14038ce50]
mov qword [rsp + 0x38], r15
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x40], 1
lea rsi, [0x140374b30]
cmp qword [0x140374b40], r14
jne 0x14004adc8
call fcn.1400c5e70
mov rcx, rax
mov rax, qword [rax]
mov rax, qword [rax + 0x110]
call qword [case.0x140066ca3.0]
mov bl, al
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.140022e70
cmp byte [0x14038ce38], r14b
je 0x14004ad29
test bl, bl
lea edx, [r14 + 0x26]
jne 0x14004ad2e
mov edx, 0x1c
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14004adc8
mov qword [rsp + 0x48], r14
movdqa xmm0, xmmword [0x140315b50]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r14w
cmp byte [0x14038ce38], r14b
je 0x14004ad77
test bl, bl
lea rdx, str.Microsoft_OneDrive_setuplogs
jne 0x14004ad7e
lea rdx, str.MicrosoftOneDrive_setuplogs
lea rcx, [rsp + 0x48]
call fcn.14000e574
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r8, qword [rsp + 0x48]
xor r9d, r9d
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.14004b1e0
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140007e18
test ebx, ebx
js 0x14004adc8
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14000e574
mov qword [rdi], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae rsi, qword [0x140374b30]
mov r8, qword [0x140374b40]
mov rdx, rsi
mov rcx, rdi
call fcn.14000e6ec
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rdi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140020ae0
lea r11, [rsp + 0x290]
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 0x14004cf48
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14036b028]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x14004cfe6
mov edx, 0x2000
mov rax, rbx
mov ecx, edx
cmp word [rax], di
je 0x14004cf84
add rax, 2
sub rcx, 1
jne 0x14004cf75
sub rdx, rcx
mov rax, rcx
neg rax
sbb r8, r8
and r8, rdx
test rcx, rcx
je 0x14004cfce
mov rcx, qword [0x14038ce48]
lea r9, [rsp + 0x30]
add r8d, r8d
mov dword [rsp + 0x30], edi
mov rdx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [0x14038ce40]
test rax, rax
je 0x14004cfce
mov rcx, rbx
call qword [case.0x140066ca3.0]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140020ae0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov ecx, 0x80004005
call fcn.140007be8
int3

Function at 0x140071578
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14036b028]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140022e70
xor r9d, r9d
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1c]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140071606
cmp qword [0x14038bd78], 8
lea r8, [0x14038bd60]
mov edx, 0x104
lea rcx, [rsp + 0x30]
cmovae r8, qword [0x14038bd60]
xor r9d, r9d
call fcn.14004b1e0
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov ebx, eax
call fcn.14000e574
jmp 0x14007160b
mov ebx, 0x80004005
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140020ae0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x140071860
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x3b8]
sub rsp, 0x4b0
mov rax, qword [0x14036b028]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x250
call fcn.140022e70
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x1400718b1
mov rcx, qword [rbx]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400719de
xor esi, esi
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call fcn.140022e70
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x1400718ec
mov r8, qword [rbx]
lea rax, [rbp + 0x190]
mov edx, 0x104
sub r8, rax
lea rcx, [rbp + 0x190]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140071925
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140071925
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140071902
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], si
je 0x1400719bf
lea rcx, [rbp + 0x190]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor r9d, r9d
lea r8, [rsp + 0x6c]
mov edx, 0x104
lea rcx, [rbp + 0x190]
call fcn.14004b1e0
test eax, eax
js 0x1400719bf
mov qword [rsp + 0x20], rsi
lea rax, [rbp + 0x190]
mov qword [rsp + 0x30], rsi
or r8, 0xffffffffffffffff
mov qword [rsp + 0x38], rsi
inc r8
cmp word [rax + r8*2], si
jne 0x14007197d
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x20]
call fcn.14000e5f4
cmp qword [rsp + 0x38], 8
lea rcx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x20]
xor r8d, r8d
lea edx, [r8 + 2]
call sub.KERNEL32.dll_WerRegisterFile
lea rcx, [rsp + 0x20]
call fcn.140007e18
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400718cb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140020ae0
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400724fc
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x140072531
mov edi, 0x80004004
mov r8d, 0x277
mov ecx, edi
jmp 0x140072638
lea rdi, [rbx + 0x108]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x14007255e
and qword [rbx + 0x58], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140066ca3.0]
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, str.BITS
lea rax, str.URLMon
cmp byte [rbx + 0x175], 0
cmovne rax, rcx
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, str.WebClient__p_:_BeginDownloadAttempt:_using__ls
lea rdx, str.WebClient
mov ecx, dword [rbx + 0x16c]
call fcn.14004cef0
cmp byte [rbx + 0x175], 0
je 0x1400725c4
mov rcx, rbx
call fcn.140072680
mov edi, eax
test eax, eax
jns 0x140072644
mov r8d, 0x280
jmp 0x140072636
cmp byte [rbx + 0x40], 0
je 0x140072607
mov r9, rbx
lea r8, str.WebClient__p_:_BeginDownloadAttempt:_using_WinHTTP_instead_of_URLMon
lea rdx, str.WebClient
mov ecx, dword [rbx + 0x16c]
call fcn.14004cef0
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x90]
call qword [case.0x140066ca3.0]
mov edi, eax
test eax, eax
jns 0x140072644
mov r8d, 0x285
jmp 0x140072636
call fcn.1400561ac
lea rdx, [rbx + 0xb0]
cmp qword [rdx + 0x18], 8
jb 0x14007261d
mov rdx, qword [rdx]
mov r9, rbx
xor r8d, r8d
xor ecx, ecx
call sub.urlmon.dll_URLOpenStreamW
mov edi, eax
test eax, eax
jns 0x140072644
mov r8d, 0x289
mov ecx, eax
lea rdx, str.D:dbs_shodct1010_172940_0cmd7clientonedriveSetupStandalonewebclientwebclient.cpp
call fcn.14004a46c
mov r9, rbx
lea r8, str.WebClient__p_:_Leaving_BeginDownloadAttempt__
lea rdx, str.WebClient
mov ecx, edi
call fcn.14004a8d4
test edi, edi
jns 0x140072672
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x78]
mov edx, edi
mov rcx, rbx
call qword [case.0x140066ca3.0]
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140073000
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x14036b028]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
cmp qword [rcx + 0xe0], rdi
je 0x14007314a
lea rbx, [rcx + 0xd0]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14007304c
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140073136
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
lea rsi, vtable.ClassPtr_struct_IFSManager_.0
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], rdi
lea rcx, [rbp + 0xf]
call fcn.14004aadc
test eax, eax
js 0x140073117
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14007308e
mov rdx, qword [rbx]
mov qword [rbp - 0x19], rdi
mov qword [rbp - 9], rdi
mov qword [rbp - 1], rdi
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], di
jne 0x14007309e
lea rcx, [rbp - 0x19]
call fcn.14000e5f4
nop
mov qword [rbp + 0x17], rdi
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x27], xmm0
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rdx, qword [rbp - 0x19]
mov r8, qword [rbp - 9]
lea rcx, [rbp + 0x17]
call fcn.14000e6ec
mov qword [rbp + 0x37], 0xffffffff80000001
mov byte [rbp + 0x3f], dil
lea rcx, [rbp - 0x19]
call fcn.140007e18
mov rcx, qword [rbp + 0xf]
test rcx, rcx
jne 0x1400730f8
int3
mov rax, qword [rcx]
lea rdx, [rbp + 0x17]
mov rax, qword [rax + 0x80]
call qword [case.0x140066ca3.0]
nop
lea rcx, [rbp + 0x17]
call fcn.140007e18
nop
mov qword [rbp + 7], rsi
mov rcx, qword [rbp + 0xf]
mov qword [rbp + 0xf], rdi
test rcx, rcx
je 0x140073136
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140066ca3.0]
nop
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140073143
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdi
mov word [rax], di
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140020ae0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x1400742e4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rsi, rcx
test rdx, rdx
jne 0x14007431e
mov r8d, 0x155
mov ecx, 0x80004003
lea rdx, str.D:dbs_shodct1010_172940_0cmd7clientonedriveSetupStandalonewebclientwebclient.cpp
mov edi, ecx
call fcn.14004a46c
jmp 0x14007437c
test rbp, rbp
jne 0x14007432b
mov r8d, 0x156
jmp 0x140074309
call fcn.140074098
mov edi, eax
test eax, eax
js 0x14007437c
cmp qword [rsi + 0xe0], 0
je 0x14007436d
lea rbx, [rsi + 0xd0]
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140074354
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14007436d
cmp qword [rbx + 0x18], 8
jb 0x140074368
mov rbx, qword [rbx]
mov rdx, rbx
jmp 0x140074374
lea rdx, [0x140313ab0]
mov rcx, rbp
call fcn.14000e574
mov r9, rsi
lea r8, str.WebClient__p_:_Leaving_GetDownloadedData__
lea rdx, str.WebClient
mov ecx, edi
call fcn.14004a8d4
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140074408
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x14036b028]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, rcx
mov ebx, 0x208
mov r8d, ebx
lea rcx, [r11 - 0x228]
xor edx, edx
call fcn.140022e70
mov r8d, ebx
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140022e70
mov edi, 0x104
lea rdx, [rsp + 0x230]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ebp, ebp
test eax, eax
jne 0x1400744a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140074537
mov r8d, 0x541
lea rdx, str.D:dbs_shodct1010_172940_0cmd7clientonedriveSetupStandalonewebclientwebclient.cpp
mov ecx, ebx
call fcn.14004a46c
jmp 0x140074537
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, [0x1402c5258]
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1400744ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140074537
mov r8d, 0x542
jmp 0x140074496
lea rax, [rsp + 0x20]
cmp word [rax], bp
je 0x1400744fe
add rax, 2
sub rdi, 1
jne 0x1400744ef
mov rax, rdi
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rdi, rdi
jne 0x14007451e
mov r8d, 0x543
jmp 0x140074496
mov rcx, rsi
call fcn.140073000
lea rcx, [rsi + 0xd0]
lea rdx, [rsp + 0x20]
call fcn.14000e574
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140020ae0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret