joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fe11
Capabilities:
Get file version info

Disassembly:
push 0x2d4
mov eax, 0x5a1b73
call fcn.00462cd6
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x2c8], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x5effb0
call fcn.004096b4
push dword [ebp + 0x14]
mov edx, esi
lea ecx, [ebp - 0x2c4]
call fcn.00440016
test al, al
je 0x44000c
cmp dword [ebp - 0x2c4], ebx
je 0x44000c
push dword [ebp - 0x2c4]
lea ecx, [ebp - 0x21c]
push edi
call fcn.004401e3
test al, al
je 0x440000
cmp word [ebp - 0x21c], bx
je 0x440000
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x440000
push dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.0043d402
test eax, eax
js 0x440000
push ebx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x440000
push edi
call fcn.00467795
mov esi, eax
pop ecx
test esi, esi
je 0x440000
push esi
push edi
push ebx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x43fff9
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x2c0]
push eax
push 0x5effac
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x43fff9
push 0x98
lea eax, [ebp - 0x2bc]
push ebx
push eax
call fcn.00463cc0
pop ecx
lea ecx, [ebp - 0x2bc]
call fcn.0043c2cf
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2bc]
mov eax, dword [ebp - 0x2c0]
movzx eax, word [eax + 0xa]
push eax
call fcn.0040ef19
mov edi, 0x5f3b24
lea ecx, [ebp - 0x2bc]
mov edx, edi
call fcn.00410e46
mov eax, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x2bc]
movzx eax, word [eax + 8]
push eax
call fcn.0040ef19
mov edx, edi
lea ecx, [ebp - 0x2bc]
call fcn.00410e46
mov eax, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x2bc]
movzx eax, word [eax + 0xe]
push eax
call fcn.0040ef19
mov edx, edi
lea ecx, [ebp - 0x2bc]
call fcn.00410e46
mov eax, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x2bc]
movzx eax, word [eax + 0xc]
push eax
call fcn.0040ef19
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.0040fdf4
mov ecx, dword [ebp - 0x2c8]
lea eax, [ebp - 0x2e0]
push eax
call fcn.004094b8
lea ecx, [ebp - 0x2e0]
call fcn.0040aa69
lea ecx, [ebp - 0x2bc]
mov bl, 1
call fcn.0043a46d
push esi
call fcn.0046624e
pop ecx
push dword [ebp - 0x2c4]
call fcn.0046624e
pop ecx
mov al, bl
call fcn.00462c80
ret 0x10
Function at 0x440016
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xe0
mov eax, 0x5a1bc8
call fcn.00462cd6
mov esi, edx
mov edi, ecx
xor ebx, ebx
lea eax, [ebp - 0xac]
push 0x98
push ebx
mov dword [ebp - 0xbc], ebx
push eax
mov dword [edi], ebx
call fcn.00463cc0
pop ecx
lea ecx, [ebp - 0xac]
call fcn.0043c2cf
mov dword [ebp - 4], ebx
cmp byte [ebp + 8], bl
je 0x440069
mov edx, str.Wow6432Node_
lea ecx, [ebp - 0xac]
call fcn.00410e46
mov edx, str.CLSID_
lea ecx, [ebp - 0xac]
call fcn.00410e46
mov edx, esi
mov ecx, eax
call fcn.00410e46
mov edx, str.LocalServer32
mov ecx, eax
call fcn.00410e46
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0xa8]
call fcn.0040fdf4
push 5
pop eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb4]
cmp dword [ebp - 0xd8], 8
mov esi, SysReAllocString
push ecx
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0xec]
cmovae eax, dword [ebp - 0xec]
push 0x20019
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x440134
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xa8]
call fcn.0040fdf4
cmp dword [ebp - 0xc0], 8
lea ecx, [ebp - 0xb4]
push ecx
push 0x20119
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xb0], 0xf
cmovae eax, dword [ebp - 0xd4]
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov byte [ebp - 0xb5], bl
test eax, eax
jne 0x44013b
mov byte [ebp - 0xb5], 1
test byte [ebp - 0xb0], 2
je 0x44014f
lea ecx, [ebp - 0xd4]
call fcn.0040aa69
lea ecx, [ebp - 0xec]
call fcn.0040aa69
cmp byte [ebp - 0xb5], 0
je 0x4401ce
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], ebx
push eax
push ebx
push ebx
push 2
push ebx
push ebx
push dword [ebp - 0xb4]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4401c2
push dword [ebp - 0xb0]
call fcn.00467795
mov esi, eax
pop ecx
test esi, esi
je 0x4401c2
lea eax, [ebp - 0xb0]
push eax
push esi
push ebx
push 2
push ebx
push ebx
push dword [ebp - 0xb4]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4401bb
mov dword [edi], esi
mov bl, 1
jmp 0x4401c2
push esi
call fcn.0046624e
pop ecx
push dword [ebp - 0xb4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xac]
call fcn.0043a46d
mov al, bl
call fcn.00462c80
ret 4
Function at 0x44760b
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c4c6
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x63800c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push edi
call fcn.004094b8
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 0x18]
call fcn.004094b8
lea eax, [edi + 0x30]
push eax
lea ecx, [esi + 0x30]
call fcn.004094b8
mov al, byte [edi + 0x48]
lea ecx, [esi + 0x4c]
mov byte [esi + 0x48], al
mov al, byte [edi + 0x49]
mov byte [esi + 0x49], al
mov al, byte [edi + 0x4a]
mov byte [esi + 0x4a], al
mov al, byte [edi + 0x4b]
mov byte [esi + 0x4b], al
lea eax, [edi + 0x4c]
push eax
call fcn.004094b8
lea ebx, [edi + 0x64]
lea eax, [esi + 0x64]
cmp eax, ebx
je 0x4476a3
mov ecx, eax
call fcn.00409660
mov eax, dword [ebx]
xor ecx, ecx
mov dword [esi + 0x64], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0x68], eax
mov eax, dword [ebx + 8]
mov dword [esi + 0x6c], eax
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
lea ebx, [edi + 0x70]
lea eax, [esi + 0x70]
cmp eax, ebx
je 0x4476cf
mov ecx, eax
call fcn.0043c483
mov eax, dword [ebx]
mov dword [esi + 0x70], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0x74], eax
mov eax, dword [ebx + 8]
mov dword [esi + 0x78], eax
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov al, byte [edi + 0x7c]
lea ecx, [esi + 0x80]
mov byte [esi + 0x7c], al
lea eax, [edi + 0x80]
push eax
call fcn.004094b8
lea eax, [edi + 0x98]
push eax
lea ecx, [esi + 0x98]
call fcn.004094b8
lea eax, [edi + 0xb0]
push eax
lea ecx, [esi + 0xb0]
call fcn.004094b8
mov al, byte [edi + 0xc8]
lea ecx, [esi + 0xcc]
mov byte [esi + 0xc8], al
lea eax, [edi + 0xcc]
push eax
call fcn.004094b8
lea eax, [edi + 0xe4]
push eax
lea ecx, [esi + 0xe4]
call fcn.004094b8
lea eax, [edi + 0xfc]
push eax
lea ecx, [esi + 0xfc]
call fcn.004094b8
lea eax, [edi + 0x114]
push eax
lea ecx, [esi + 0x114]
call fcn.004094b8
mov eax, dword [edi + 0x130]
lea ebx, [esi + 0x138]
mov dword [esi + 0x130], eax
mov eax, dword [edi + 0x134]
mov dword [esi + 0x134], eax
lea eax, [edi + 0x138]
cmp ebx, eax
je 0x4477a8
mov ecx, ebx
call fcn.0040929f
mov ecx, dword [ebx]
lea edx, [edi + 0x138]
mov eax, dword [edx]
mov dword [ebx], eax
mov dword [edx], ecx
mov ecx, dword [ebx + 4]
mov eax, dword [edx + 4]
mov dword [ebx + 4], eax
mov dword [edx + 4], ecx
mov al, byte [edi + 0x140]
lea ecx, [esi + 0x148]
mov byte [esi + 0x140], al
mov al, byte [edi + 0x141]
mov byte [esi + 0x141], al
mov al, byte [edi + 0x142]
mov byte [esi + 0x142], al
mov al, byte [edi + 0x143]
mov byte [esi + 0x143], al
mov al, byte [edi + 0x144]
mov byte [esi + 0x144], al
mov al, byte [edi + 0x145]
mov byte [esi + 0x145], al
lea eax, [edi + 0x148]
push eax
call fcn.004094b8
mov al, byte [edi + 0x160]
lea ecx, [esi + 0x164]
mov byte [esi + 0x160], al
lea eax, [edi + 0x164]
push eax
call fcn.004094b8
lea eax, [edi + 0x17c]
push eax
lea ecx, [esi + 0x17c]
call fcn.004498f3
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x448662
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x63800c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x641380], 8
lea ecx, [ebp - 0x10]
push esi
mov eax, 0x64136c
cmovae eax, dword [0x64136c]
xor esi, esi
push esi
push ecx
push esi
push 0x20006
push esi
push esi
push esi
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x4486e1
push esi
call fcn.0046a1e1
pop ecx
push 8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0xb
push esi
push str.LastUpdate
push dword [ebp - 0x10]
mov dword [ebp - 8], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00462c5a
leave
ret

Function at 0x4486f2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x63800c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 8
pop esi
cmp dword [0x641380], esi
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
mov eax, 0x64136c
xorps xmm0, xmm0
cmovae eax, dword [0x64136c]
push 0
push eax
push reloc.WS2_32.dll_accept
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], esi
mov esi, 0x80070000
movzx ecx, ax
or ecx, esi
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x44878e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.LastUpdate
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, esi
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x44877d
cmp dword [ebp - 0x14], 0xb
je 0x448785
xorps xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
xor ecx, ebp
mov edx, dword [ebp - 8]
pop esi
call fcn.00462c5a
leave
ret
Function at 0x44cc24
Capabilities:
Accept command line arguments

Disassembly:
push 0x230
mov eax, 0x5a38ec
call fcn.00462cd6
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x23c], esi
xor ecx, ecx
mov dword [ebp - 0x234], ecx
xor eax, eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x234], 1
call fcn.0043bbfe
mov bl, al
test bl, bl
jne 0x44ccec
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00463cc0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x44ccec
lea eax, [ebp - 0x218]
push 0x5f9ec4
push eax
call fcn.0057827e
pop ecx
pop ecx
test eax, eax
je 0x44ccec
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x230]
call fcn.004094f1
push 0
push str._allusers
lea ecx, [ebp - 0x230]
call fcn.00409453
cmp eax, 0xffffffff
lea ecx, [ebp - 0x230]
setne bl
call fcn.0040aa69
mov edx, esi
mov cl, bl
call fcn.00437ef9
test eax, eax
js 0x44cd05
push 0x5ef1a8
mov ecx, esi
call fcn.004096dd
push 0x5eeeec
mov ecx, esi
call fcn.004096dd
mov dl, 1
mov ecx, edi
call fcn.0044cbf4
mov edx, eax
lea ecx, [ebp - 0x230]
call fcn.00433f5b
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0040fd71
lea ecx, [ebp - 0x230]
call fcn.0040aa69
mov eax, esi
call fcn.00462c80
ret 4
Function at 0x4618e2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
mov dword [edi], eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 0x10]
je 0x461a33
mov eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0x1c]
xor ebx, ebx
inc ebx
mov esi, 0x3ff
mov ecx, eax
cmp dword [edi], edx
je 0x461a33
mov edx, dword [ebp + 8]
movzx ecx, word [eax]
mov eax, ecx
mov byte [ebp - 1], 0
movzx edx, word [edx]
cmp bx, dx
jae 0x461961
lea eax, [ecx + 0x2400]
cmp ax, si
ja 0x461a42
mov eax, edx
lea ebx, [ecx - 0xdc00]
shl eax, 0xa
or ebx, eax
mov cl, byte [ebp - 1]
cmp ebx, 0x80
jae 0x46197e
mov dl, bl
xor eax, eax
jmp 0x4619ae
mov ebx, eax
lea eax, [ecx + 0x2800]
cmp ax, si
ja 0x461950
add ebx, 0xffff2840
mov cl, 1
shl ebx, 0xa
mov byte [ebp - 1], cl
jmp 0x461953
mov edx, ebx
cmp ebx, 0x800
jae 0x461993
shr edx, 6
xor eax, eax
or dl, 0xc0
inc eax
jmp 0x4619ae
cmp ebx, 0x10000
jae 0x4619a5
shr edx, 0xc
or dl, 0xe0
push 2
jmp 0x4619ad
shr edx, 0x12
or dl, 0xf0
push 3
pop eax
movzx esi, cl
mov ecx, dword [ebp - 0xc]
xor esi, 1
add esi, esi
mov dword [ebp - 8], eax
cmp eax, 3
cmovb esi, eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [edi]
inc esi
cmp eax, esi
jl 0x461a33
mov eax, ecx
mov ecx, dword [ebp + 0x14]
add eax, 2
cmp byte [ebp - 1], 0
mov dword [ecx], eax
mov ecx, dword [ebp - 8]
jne 0x4619e4
cmp ecx, 3
jae 0x4619eb
mov eax, dword [edi]
mov byte [eax], dl
inc dword [edi]
dec esi
test esi, esi
jle 0x461a0a
imul ecx, ecx, 6
mov eax, dword [edi]
sub ecx, 6
mov edx, ebx
dec esi
shr edx, cl
and dl, 0x3f
or dl, 0x80
mov byte [eax], dl
inc dword [edi]
test esi, esi
jg 0x4619f2
xor ecx, ecx
shr ebx, 0xa
inc ecx
movzx eax, bx
cmp byte [ebp - 1], 0
cmovne ecx, eax
mov eax, dword [ebp + 8]
mov word [eax], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, ecx
mov dword [ebp - 0xc], eax
cmp ecx, dword [ebp + 0x10]
jne 0x46190b
xor eax, eax
cmp dword [ebp + 0xc], ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c
push 2
pop eax
jmp 0x461a3b
Function at 0x48350b
Capabilities:
Get common file path

Disassembly:
push 0x234
mov eax, 0x5a8aec
call fcn.00462cd6
mov edi, dword [ebp + 8]
mov eax, 0x64fa44
mov dword [ebp - 0x21c], edi
push eax
mov dword [ebp - 0x240], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x23c], 1
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [0x641190], ebx
jne 0x483665
xorps xmm0, xmm0
movlpd qword [ebp - 0x220], xmm0
mov dword [ebp - method.ClassPtr_struct_IFSManager_.virtual_0], vtable.ClassPtr_struct_IFSManager_.0
mov dword [ebp - 0x21c], ebx
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 1
push eax
call fcn.00484a26
push 0x208
mov esi, eax
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00463cc0
add esp, 0xc
test esi, esi
js 0x483648
cmp byte [0x64fa10], bl
push 0x1c
pop eax
push 0x23
pop ecx
cmovne eax, ecx
lea ecx, [ebp - 0x218]
push ecx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x483648
xor eax, eax
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 2
cmp byte [0x64fa10], al
je 0x4835f1
push str.Microsoft_OneDrive_setuplogs
jmp 0x4835f6
push str.MicrosoftOneDrive_setuplogs
call fcn.004096b4
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
push ebx
cmovae eax, dword [ebp - 0x238]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.00418c34
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 1
mov esi, eax
call fcn.0040aa69
test esi, esi
js 0x483648
lea eax, [ebp - 0x218]
mov ecx, 0x641180
push eax
call fcn.004096b4
push ebx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
mov dword [ebp - method.ClassPtr_struct_IFSManager_.virtual_0], vtable.ClassPtr_struct_IFSManager_.0
call fcn.0040961e
mov byte [ebp - 4], bl
push 0x641180
mov ecx, edi
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
call fcn.00409706
push 0x64fa44
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
call fcn.00462c80
ret 4
Function at 0x489eb2
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x63800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x208
push 0
push eax
mov dword [ebp - 0x214], esi
call fcn.00463cc0
add esp, 0xc
xor edi, edi
test ebx, ebx
je 0x48a002
mov esi, dword [esi]
lea eax, [ebp - 0x20d]
push eax
push ebx
push dword [ebp - 0x214]
mov ecx, dword [esi + 0x4c]
mov byte [ebp - 0x20d], 0
call dword [0x5b664c]
call dword [esi + 0x4c]
test eax, eax
js 0x489f2e
cmp byte [ebp - 0x20d], 0
je 0x489f2e
mov edi, 0x80040c91
jmp 0x489fef
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x489fef
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0041a0c3
mov edi, eax
test edi, edi
jns 0x489f6a
push 0x295
push str.d:dbs_shodct1116_102044cmd8clientonedrive_setup_standalone_fsmanager_fsmanagerimpl.cpp
push edi
call fcn.0048259a
jmp 0x489fef
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x489f82
mov eax, 0x80040b04
jmp 0x489ff1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x489fbd
mov ecx, dword [ebp - 0x214]
lea edx, [ebp - 0x20c]
push edx
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x44]
mov ecx, esi
call dword [0x5b664c]
call esi
mov edi, eax
test edi, edi
jns 0x489fbd
push 0x29e
jmp 0x489f5a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x489fef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x489fdb
xor edi, edi
jmp 0x489fef
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00462c5a
leave
ret 8
push 0x80004005
call fcn.0040a96d
int3

Function at 0x48b1b2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x63800c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
mov esi, 0x208
push esi
push 0
push eax
call fcn.00463cc0
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00463cc0
add esp, 0x18
xor esi, esi
test edi, edi
je 0x48b27f
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x48b228
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x48b26d
lea eax, [ebp - 0x414]
push eax
push 0
push 0x5c2480
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x48b25b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x48b26d
lea eax, [ebp - 0x414]
mov ecx, edi
push eax
call fcn.004096b4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00462c5a
leave
ret 8
push 0x80004005
call fcn.0040a96d
int3
Function at 0x48b91b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x20
mov eax, 0x5a950e
call fcn.00462cd6
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
call fcn.0048afce
xor edx, edx
mov dword [ebp - 0x1c], edx
mov edi, edx
test ebx, ebx
je 0x48ba5e
cmp dword [ebx + 0x14], 8
mov eax, ebx
mov dword [ebx + 0x10], edx
jb 0x48b95a
mov eax, dword [ebx]
xor ecx, ecx
mov word [eax], cx
mov eax, edx
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x48b981
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push edx
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 0x1c]
xor edx, edx
jmp 0x48b984
mov dword [ebp - 0x1c], esi
test eax, eax
je 0x48b99e
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x48ba43
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edx
push eax
push edx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], edx
push eax
push edx
push dword [ebp - 0x20]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x48b9d6
cmp eax, 2
je 0x48b9d6
cmp eax, 0xea
je 0x48b9d6
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x48ba40
cmp eax, 2
je 0x48ba40
cmp dword [ebp - 0x18], 1
jne 0x48ba40
mov eax, dword [ebp - 0x14]
add eax, 2
push eax
mov dword [ebp - 0x28], eax
call fcn.00575a07
mov esi, eax
pop ecx
mov dword [ebp - 0x2c], esi
xor edx, edx
mov dword [ebp - 4], edx
test esi, esi
jne 0x48ba0a
mov edi, 0x8007000e
jmp 0x48ba39
mov eax, dword [ebp - 0x28]
mov ecx, esi
test eax, eax
je 0x48ba1b
mov byte [ecx], dl
inc ecx
sub eax, 1
jne 0x48ba13
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push edx
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
mov ecx, ebx
call fcn.004096b4
push esi
call fcn.0046326b
pop ecx
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x48ba54
cmp dword [ebp - 0x24], 0
je 0x48ba54
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.00462c80
ret 0x10
push 0x80004005
call fcn.0040a96d
int3
Function at 0x48c5dc
Capabilities:
Timestomp file

Disassembly:
push 0x20
mov eax, 0x5a961f
call fcn.00462cd6
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
test edi, edi
jne 0x48c616
push 0x666
mov eax, 0x80070057
push str.d:dbs_shodct1116_102044cmd8clientonedrive_setup_standalone_fsmanager_fsmanagerimpl.cpp
mov esi, eax
push eax
call fcn.0048259a
jmp 0x48c6e1
lea eax, [ebp - 0x14]
push eax
push 0x104
push edi
call fcn.0043fd03
mov esi, eax
test esi, esi
jns 0x48c638
push 0x667
push str.d:dbs_shodct1116_102044cmd8clientonedrive_setup_standalone_fsmanager_fsmanagerimpl.cpp
push esi
jmp 0x48c60c
cmp dword [ebp - 0x14], 0
jne 0x48c645
push 0x668
jmp 0x48c5ff
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x100
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48c69a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x48c6e1
push 0x670
jmp 0x48c630
push ebx
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x48c6d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x48c6d6
push 0x672
push str.d:dbs_shodct1116_102044cmd8clientonedrive_setup_standalone_fsmanager_fsmanagerimpl.cpp
push esi
call fcn.0048259a
test edi, edi
je 0x48c6e1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.00462c80
ret 4
Function at 0x48f1fd
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9b78
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x63800c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
push str.WebClient__p_:_destroyed
push str.WebClient
push dword [esi + 0xa4]
mov dword [esi], vtable.WebClient.0
mov dword [esi + 4], vtable.WebClient.1.0
mov dword [esi + 8], vtable.WebClient.2.0
call fcn.00484717
add esp, 0x10
lea ecx, [esi + 0xb4]
call fcn.0040aa69
lea eax, [esi + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 0x58]
call 0x43d221
xor ecx, ecx
lea eax, [esi + 0x54]
xchg dword [eax], ecx
test ecx, ecx
je 0x48f27d
call fcn.00415424
xor ecx, ecx
lea eax, [esi + 0x50]
xchg dword [eax], ecx
test ecx, ecx
je 0x48f28d
call fcn.00415424
xor ecx, ecx
lea eax, [esi + 0x4c]
xchg dword [eax], ecx
test ecx, ecx
je 0x48f29d
call fcn.00415424
xor edi, edi
cmp dword [esi + 0x48], edi
je 0x48f2b0
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x48], edi
cmp dword [esi + 0x44], edi
je 0x48f2c1
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
cmp dword [esi + 0x40], edi
je 0x48f2d2
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x40], edi
lea ecx, [esi + 0x38]
push edi
mov dword [ebp - 4], edi
mov dword [ecx], vtable.ClassPtr_struct_IDownloadRequestCallback_.0
call fcn.0040961e
lea ecx, [esi + 0x34]
call fcn.0040b56f
lea ecx, [esi + 0x30]
call fcn.0040b56f
lea ecx, [esi + 0x2c]
call fcn.0040b56f
lea ecx, [esi + 0x28]
call fcn.0040b56f
lea ecx, [esi + 0x10]
call fcn.0040aa69
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret