joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427252
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6b500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x14]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
shl eax, 8
push esi
add eax, 0x20019
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x427285
mov ecx, dword [ecx]
lea esi, [ebp - 0x10]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
xor edx, edx
mov dword [ebp - 0xc], edx
test esi, esi
js 0x427330
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 8], edx
jb 0x4272bc
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push edx
lea ecx, [ebp - 0xc]
push ecx
push edx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x427327
cmp dword [ebp - 0xc], 3
je 0x4272ef
mov esi, 0x8007065d
jmp 0x427327
lea eax, [ebp - 0x11]
mov ecx, ebx
push eax
push dword [ebp - 8]
call fcn.00427bcf
cmp dword [edi + 0x14], 8
jb 0x427305
mov edi, dword [edi]
lea eax, [ebp - 8]
push eax
push dword [ebx]
push 0
push 0
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d8e5
leave
ret 0x14

Function at 0x427352
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x6b500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x20006
cmp byte [ebp + 0x18], 0
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, 0x102
cmovne ecx, edi
cmp dword [eax + 0x14], 8
jb 0x427386
mov eax, dword [eax]
xor ebx, ebx
lea edi, [ebp - 8]
push ebx
push edi
push ebx
push ecx
push ebx
push ebx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jne 0x4273cf
cmp dword [esi + 0x10], ebx
jne 0x4273a9
mov esi, ebx
jmp 0x4273b1
cmp dword [esi + 0x14], 8
jb 0x4273b1
mov esi, dword [esi]
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0042d8e5
leave
ret 0x14

Function at 0x4279f2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c90a9
Function at 0x42a992
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, ecx
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x42a99f
int3
pop ebp
jmp fcn.004bf963

Function at 0x440b93
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6b500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x440bde
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00440db4
test al, al
jne 0x440bd8
sub edx, 2
cmp edx, edi
jne 0x440bbe
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x440c00
lea eax, [edi + 2]
cmp edx, eax
je 0x440c00
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00440adf
add esp, 0x10
jmp 0x440cfa
push esi
lea ecx, [ebp - 0x255]
call fcn.00440db4
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x440c43
push dword [ebp - 0x25c]
jmp 0x440bf0
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x440c80
cmp word [ebp - 0x226], 0
je 0x440ca1
cmp word [ebp - 0x226], ax
jne 0x440c80
cmp word [ebp - 0x224], 0
je 0x440ca1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00440adf
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x440ced
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x440c5a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x440cd5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x440cfa
push 0x440840
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00449b80
add esp, 0x10
jmp 0x440cca
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d8e5
leave
ret

Function at 0x441b27
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x441b38
pop esi
ret
push ebx
push edi
push esi
call fcn.00441af0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0044344f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x441b60
push ebx
push esi
push edi
call fcn.0042ec40
add esp, 0xc
push 0
call fcn.0043ff78
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x441f24
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00441b75
Function at 0x4423a4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x633a88
push 0x633a80
push str.FlsAlloc
push 0x1e
call fcn.004421d1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4423d8
push dword [ebp + 8]
mov ecx, esi
call dword [0x62c6dc]
call esi
jmp 0x4423de
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x442422
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x633a98
push 0x633a90
push str.FlsGetValue
push 0x20
call fcn.004421d1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x442459
push dword [ebp + 8]
mov ecx, esi
call dword [0x62c6dc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x44e6d1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x6ce428]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44e711
cmp byte [ebx], 0xa
jne 0x44e711
or byte [eax + edi + 0x28], 4
jmp 0x44e716
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x44e814
mov al, byte [edx]
cmp al, 0x1a
je 0x44e7f6
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x44e745
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x44e76a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x44e774
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x44e727
jmp 0x44e814
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44e7f1
cmp dword [ebp - 0xc], 0
je 0x44e7f1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x6ce428]
test byte [eax + edi + 0x28], 0x48
je 0x44e7cb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44e7b6
mov byte [esi], dl
jmp 0x44e7c7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6ce428]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44e814
cmp byte [ebp - 1], 0xa
jne 0x44e7da
cmp esi, ebx
jne 0x44e7da
mov byte [esi], 0xa
jmp 0x44e813
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044e641
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44e814
mov byte [esi], 0xd
jmp 0x44e813
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x6ce428]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44e810
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44e814
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44e81d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x6ce428]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44e860
cmp word [esi], dx
jne 0x44e860
or byte [edi + eax + 0x28], 4
jmp 0x44e865
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x44e9b8
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x44e998
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x44e8a7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x44e8dd
cmp eax, edx
jae 0x44e8e9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x44e87f
jmp 0x44e9b8
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44e994
cmp dword [ebp - 0x14], 0
je 0x44e994
mov eax, dword [ebx*4 + 0x6ce428]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x44e96c
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x44e935
mov word [esi], cx
jmp 0x44e968
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x6ce428]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x6ce428]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x6ce428]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x44e9b8
pop ebx
cmp word [ebp - 4], bx
jne 0x44e97d
cmp esi, dword [ebp + 0xc]
jne 0x44e97d
mov word [esi], bx
jmp 0x44e9b5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044e641
add esp, 0x10
cmp word [ebp - 4], bx
je 0x44e9b8
push 0xd
jmp 0x44e9b1
mov ecx, dword [ebx*4 + 0x6ce428]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44e9af
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44e9b8
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4521cd
Capabilities:
Get common file path

Disassembly:
push 0x23c
mov eax, 0x60d7eb
call fcn.0042d958
mov ebx, dword [ebp + 8]
mov eax, 0x6d0a68
mov dword [ebp - 0x21c], ebx
push eax
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x248], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x244], 1
and dword [ebp - 4], 0
cmp dword [0x6bde18], 0
jne 0x45238b
xorps xmm0, xmm0
movlpd qword [ebp - 0x220], xmm0
and dword [ebp - 0x21c], 0
mov dword [ebp - method.ClassPtr_struct_IFSManager_.virtual_0], vtable.ClassPtr_struct_IFSManager_.0
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 1
push eax
call fcn.00452067
mov ebx, eax
call fcn.004c12ba
mov edi, eax
mov eax, dword [edi]
mov esi, dword [eax + 0x64]
mov ecx, esi
call dword [0x62c6dc]
mov ecx, edi
call esi
push 0x208
mov byte [ebp - 0x239], al
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0042e9f0
add esp, 0xc
test ebx, ebx
js 0x452352
cmp byte [0x6d0a60], 0
mov bl, byte [ebp - 0x239]
je 0x452297
test bl, bl
je 0x452297
push 0x26
jmp 0x452299
push 0x1c
pop eax
lea ecx, [ebp - 0x218]
push ecx
push esi
push esi
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x452352
xor eax, eax
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
mov byte [ebp - 4], 2
cmp byte [0x6d0a60], al
je 0x4522e1
mov eax, str.Microsoft_OneDrive_setuplogs
test bl, bl
jne 0x4522e6
mov eax, str.MicrosoftOneDrive_setuplogs
push eax
lea ecx, [ebp - 0x238]
call fcn.00414483
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
push esi
cmovae eax, dword [ebp - 0x238]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.0041b4a4
mov esi, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x224]
cmp eax, 8
jb 0x45233d
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x238]
call fcn.004157b4
test esi, esi
js 0x452352
lea eax, [ebp - 0x218]
mov ecx, 0x6bde08
push eax
call fcn.00414483
mov ecx, dword [ebp - 0x21c]
and dword [ebp - 0x21c], 0
mov byte [ebp - 4], 3
mov dword [ebp - method.ClassPtr_struct_IFSManager_.virtual_0], vtable.ClassPtr_struct_IFSManager_.0
test ecx, ecx
je 0x452381
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x62c6dc]
call esi
mov ebx, dword [ebp - 0x240]
mov byte [ebp - 4], 0
and dword [ebx + 0x10], 0
mov ecx, ebx
and dword [ebx + 0x14], 0
push 0x6bde08
call fcn.004144d5
push 0x6d0a68
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
call fcn.0042d907
ret 4
Function at 0x458bc2
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6b500c]
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.0042e9f0
add esp, 0xc
xor edi, edi
test ebx, ebx
je 0x458d1e
cmp byte [ebp + 0x10], 0
mov byte [ebp - 0x20d], 0
jne 0x458c4b
mov eax, dword [esi]
mov esi, dword [eax + 0x50]
lea eax, [ebp - 0x20d]
push eax
push ebx
push dword [ebp - 0x214]
mov ecx, esi
call dword [0x62c6dc]
call esi
test eax, eax
js 0x458c45
cmp byte [ebp - 0x20d], 0
je 0x458c45
mov edi, 0x80040c91
jmp 0x458d0b
mov esi, dword [ebp - 0x214]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x458d0b
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0041cf74
mov edi, eax
test edi, edi
jns 0x458c87
push 0x2ae
push str.d:dbs_shodct1021_100423_0cmd2clientonedriveSetupStandalone_fsmanager_fsmanagerimpl.cpp
push edi
call fcn.00451940
jmp 0x458d0b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x458c9f
mov eax, 0x80040b04
jmp 0x458d0d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x458cd9
mov eax, dword [esi]
mov esi, dword [eax + 0x48]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
mov ecx, esi
call dword [0x62c6dc]
call esi
mov edi, eax
test edi, edi
jns 0x458cd9
push 0x2b7
jmp 0x458c77
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x458d0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x458cf7
xor edi, edi
jmp 0x458d0b
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.0042d8e5
leave
ret 0xc
push 0x80004005
call fcn.00415bd1
int3

Function at 0x45a1d2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6b500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push 0x208
push esi
push eax
call fcn.0042e9f0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x45a20d
mov edi, dword [edi]
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x639238
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x45a23d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x45a24b
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.00414483
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d8e5
leave
ret 0xc
Function at 0x45a93b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x20
mov eax, 0x60e2a3
call fcn.0042d958
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
call fcn.00459f1e
and dword [ebp - 0x1c], 0
xor edi, edi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x45aa70
mov ecx, eax
call fcn.0045c236
test ebx, ebx
je 0x45a9ab
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x45a9ae
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x45aa53
jmp 0x45a9ae
mov dword [ebp - 0x1c], esi
xor ecx, ecx
lea eax, [ebp - 0x14]
push eax
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ecx
push eax
push ecx
push dword [ebp - 0x20]
mov dword [ebp - 0x14], ecx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45a9f3
cmp eax, 2
je 0x45a9ea
cmp eax, 0xea
je 0x45a9ea
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x45aa53
cmp eax, 2
je 0x45aa53
cmp dword [ebp - 0x18], 1
jne 0x45aa53
mov ebx, dword [ebp - 0x14]
add ebx, 2
push ebx
call fcn.004fb809
mov esi, eax
pop ecx
mov dword [ebp - 0x2c], esi
and dword [ebp - 4], 0
test esi, esi
jne 0x45aa1a
mov edi, 0x8007000e
jmp 0x45aa49
mov eax, esi
test ebx, ebx
je 0x45aa29
mov byte [eax], 0
inc eax
sub ebx, 1
jne 0x45aa20
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x24]
push esi
call fcn.00414483
push esi
call fcn.0042dee5
mov ebx, dword [ebp - 0x28]
pop ecx
cmp dword [ebp - 0x1c], 0
je 0x45aa66
test ebx, ebx
je 0x45aa66
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.0042d907
ret 0x10
push 0x80004005
call fcn.00415bd1
int3
Function at 0x45b751
Capabilities:
Timestomp file

Disassembly:
push 0x24
mov eax, 0x60e3c8
call fcn.0042d958
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ebx
test edi, edi
jne 0x45b78b
push 0x63e
mov eax, 0x80070057
push str.d:dbs_shodct1021_100423_0cmd2clientonedriveSetupStandalone_fsmanager_fsmanagerimpl.cpp
mov esi, eax
push eax
call fcn.00451940
jmp 0x45b856
lea eax, [ebp - 0x2c]
push eax
push 0x104
push edi
call fcn.00452cfa
mov esi, eax
test esi, esi
jns 0x45b7ad
push 0x63f
push str.d:dbs_shodct1021_100423_0cmd2clientonedriveSetupStandalone_fsmanager_fsmanagerimpl.cpp
push esi
jmp 0x45b781
cmp dword [ebp - 0x2c], 0
jne 0x45b7ba
push 0x640
jmp 0x45b774
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 0x45b80f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x45b856
push 0x648
jmp 0x45b7a5
push ebx
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x45b84b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x45b84b
push 0x64a
push str.d:dbs_shodct1021_100423_0cmd2clientonedriveSetupStandalone_fsmanager_fsmanagerimpl.cpp
push esi
call fcn.00451940
test edi, edi
je 0x45b856
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.0042d907
ret 4
Function at 0x460b84
Capabilities:
Enumerate files on windows

Disassembly:
push 0x2b8
mov eax, 0x60eec3
call fcn.0042d958
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
call fcn.00460aff
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2a0]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x460cd0
mov esi, dword [ebp - 0x284]
lea ecx, [ebp - 0x2bc]
xor edi, edi
mov dword [ebp - 0x2a8], 7
add edi, dword [ebp - 0x280]
adc esi, 0
and dword [ebp - 0x2ac], 0
xor eax, eax
mov word [ebp - 0x2bc], ax
lea eax, [ebp - 0x274]
push eax
call fcn.00414483
push esi
push edi
push dword [ebp - 0x298]
lea eax, [ebp - 0x2bc]
mov byte [ebp - 4], 1
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x50]
push eax
call fcn.00460290
mov eax, dword [ebp - 0x2a8]
mov byte [ebp - 4], 3
cmp eax, 8
jb 0x460c55
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x2bc]
call fcn.004157b4
mov esi, dword [ebp - 0x2a4]
xor eax, eax
and dword [ebp - 0x2ac], 0
mov ecx, esi
mov word [ebp - 0x2bc], ax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x2a8], 7
call 0x45fb5e
cmp eax, dword [esi + 4]
jne 0x460ca7
lea eax, [ebp - 0x274]
push eax
call 0x460ea6
test al, al
jne 0x460ca7
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
lea eax, [ebp - 0x2c4]
push eax
call 0x45facb
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.00415bf1
lea eax, [ebp - 0x2a0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x460bd5
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x28]
call fcn.00415bf1
xor eax, eax
call fcn.0042d907
ret 0xc

Function at 0x465522
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x6b500c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x1d8], 0xffffffff
jne 0x465543
xor eax, eax
inc eax
jmp 0x465584
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [esi + 0x1d8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [esi + 0x1d8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0x1d8], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042d8e5
leave
ret