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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6c2008]
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 0x420e85
mov ecx, dword [ecx]
lea esi, [ebp - 0x14]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 8], 4
test eax, eax
cmovle esi, eax
test esi, esi
js 0x420efc
cmp dword [edi + 0x14], 8
jb 0x420eb5
mov edi, dword [edi]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x420ef3
cmp dword [ebp - 0xc], 4
jne 0x420eee
mov eax, dword [ebp - 0x10]
xor esi, esi
mov dword [ebx], eax
jmp 0x420ef3
mov esi, 0x8007065d
push dword [ebp - 0x14]
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.004297f5
leave
ret 0x14

Function at 0x420f12
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c4951

Function at 0x420f22
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x6c2008]
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 0x420f58
mov ecx, dword [ecx]
lea esi, [ebp - 0x218]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x214], 0x208
test eax, eax
cmovle esi, eax
and dword [ebp - 0x210], 0
test esi, esi
js 0x420ff7
cmp dword [edi + 0x14], 8
jb 0x420f95
mov edi, dword [edi]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push edi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x420feb
cmp dword [ebp - 0x210], 1
jne 0x420fe6
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
xor esi, esi
call fcn.00411bb5
jmp 0x420feb
mov esi, 0x8007065d
push dword [ebp - 0x218]
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.004297f5
leave
ret 0x14
Function at 0x421012
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6c2008]
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 0x421045
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 0x4210f0
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 8], edx
jb 0x42107c
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 0x4210e7
cmp dword [ebp - 0xc], 3
je 0x4210af
mov esi, 0x8007065d
jmp 0x4210e7
lea eax, [ebp - 0x11]
mov ecx, ebx
push eax
push dword [ebp - 8]
call fcn.00421885
cmp dword [edi + 0x14], 8
jb 0x4210c5
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.004297f5
leave
ret 0x14

Function at 0x421112
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x6c2008]
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 0x421146
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 0x42118f
cmp dword [esi + 0x10], ebx
jne 0x421169
mov esi, ebx
jmp 0x421171
cmp dword [esi + 0x14], 8
jb 0x421171
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.004297f5
leave
ret 0x14

Function at 0x421762
Capabilities:
Set registry value

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 8], 0
jne 0x4243bc
int3
mov ecx, dword [ecx + 8]
pop ebp
jmp fcn.004bc353

Function at 0x429cfb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x429d3a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x429d3a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x429d3a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x429d3a
cmp dword [ecx + 0x74], 0xe
jbe 0x429d3a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x43cfa3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6c2008]
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 0x43cfee
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0043d142
test al, al
jne 0x43cfe8
sub edx, 2
cmp edx, edi
jne 0x43cfce
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x43d010
lea eax, [edi + 2]
cmp edx, eax
je 0x43d010
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043ceef
add esp, 0x10
jmp 0x43d10a
push esi
lea ecx, [ebp - 0x255]
call fcn.0043d142
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 0x43d053
push dword [ebp - 0x25c]
jmp 0x43d000
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 0x43d090
cmp word [ebp - 0x226], 0
je 0x43d0b1
cmp word [ebp - 0x226], ax
jne 0x43d090
cmp word [ebp - 0x224], 0
je 0x43d0b1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043ceef
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43d0fd
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x43d06a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x43d0e5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43d10a
push 0x43cc50
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00446000
add esp, 0x10
jmp 0x43d0da
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.004297f5
leave
ret
Function at 0x43dea7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x43deb8
pop esi
ret
push ebx
push edi
push esi
call fcn.0043de70
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0043f7cf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43dee0
push ebx
push esi
push edi
call fcn.0042ab50
add esp, 0xc
push 0
call fcn.0043c382
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x43e2a4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043def5

Function at 0x43e724
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x639300
push 0x6392f8
push str.FlsAlloc
push 0x1e
call fcn.0043e551
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43e758
push dword [ebp + 8]
mov ecx, esi
call dword [0x6317ac]
call esi
jmp 0x43e75e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43e7a2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x639310
push 0x639308
push str.FlsGetValue
push 0x20
call fcn.0043e551
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43e7d9
push dword [ebp + 8]
mov ecx, esi
call dword [0x6317ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x44aa0f
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 + 0x6da3e8]
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 0x44aa4f
cmp byte [ebx], 0xa
jne 0x44aa4f
or byte [eax + edi + 0x28], 4
jmp 0x44aa54
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x44ab52
mov al, byte [edx]
cmp al, 0x1a
je 0x44ab34
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x44aa83
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x44aaa8
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x44aab2
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 0x44aa65
jmp 0x44ab52
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 0x44ab2f
cmp dword [ebp - 0xc], 0
je 0x44ab2f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x6da3e8]
test byte [eax + edi + 0x28], 0x48
je 0x44ab09
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44aaf4
mov byte [esi], dl
jmp 0x44ab05
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6da3e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44ab52
cmp byte [ebp - 1], 0xa
jne 0x44ab18
cmp esi, ebx
jne 0x44ab18
mov byte [esi], 0xa
jmp 0x44ab51
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044a97f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44ab52
mov byte [esi], 0xd
jmp 0x44ab51
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x6da3e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44ab4e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44ab52
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44ab5b
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 + 0x6da3e8]
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 0x44ab9e
cmp word [esi], dx
jne 0x44ab9e
or byte [edi + eax + 0x28], 4
jmp 0x44aba3
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 0x44acf6
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 0x44acd6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x44abe5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x44ac1b
cmp eax, edx
jae 0x44ac27
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 0x44abbd
jmp 0x44acf6
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 0x44acd2
cmp dword [ebp - 0x14], 0
je 0x44acd2
mov eax, dword [ebx*4 + 0x6da3e8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x44acaa
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x44ac73
mov word [esi], cx
jmp 0x44aca6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x6da3e8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x6da3e8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x6da3e8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x44acf6
pop ebx
cmp word [ebp - 4], bx
jne 0x44acbb
cmp esi, dword [ebp + 0xc]
jne 0x44acbb
mov word [esi], bx
jmp 0x44acf3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044a97f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x44acf6
push 0xd
jmp 0x44acef
mov ecx, dword [ebx*4 + 0x6da3e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44aced
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44acf6
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 0x44e309
Capabilities:
Get common file path

Disassembly:
push 0x23c
mov eax, 0x610ef1
call fcn.00429868
mov ebx, dword [ebp + 8]
mov eax, 0x6dd888
mov dword [ebp - 0x238], ebx
push eax
mov dword [ebp - 0x248], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x244], 1
and dword [ebp - 4], 0
cmp dword [0x6c9f08], 0
jne 0x44e498
call fcn.004bdebb
mov edi, eax
mov eax, dword [edi]
mov esi, dword [eax + 0x88]
mov ecx, esi
call dword [0x6317ac]
mov ecx, edi
call esi
push 0x208
mov byte [ebp - 0x239], al
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0042a970
add esp, 0xc
cmp byte [0x6dd880], 0
je 0x44e398
cmp byte [ebp - 0x239], 0
je 0x44e398
push 0x26
jmp 0x44e39a
push 0x1c
pop eax
lea ecx, [ebp - 0x218]
push ecx
xor ecx, ecx
push ecx
push ecx
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x44e498
and dword [ebp - 0x234], 0
xor eax, eax
and dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov byte [ebp - 4], 1
cmp byte [0x6dd880], al
je 0x44e3f0
cmp byte [ebp - 0x239], al
mov eax, str.Microsoft_OneDrive_setuplogs
jne 0x44e3f5
mov eax, str.MicrosoftOneDrive_setuplogs
push eax
lea ecx, [ebp - 0x234]
call fcn.00411bb5
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
push 0
cmovae eax, dword [ebp - 0x234]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.0044e8ad
mov ecx, dword [ebp - 0x220]
mov esi, eax
mov byte [ebp - 4], 0
cmp ecx, 8
jb 0x44e483
mov eax, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x238], eax
cmp ecx, 0x1000
jb 0x44e47a
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00413cba
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x238]
push ecx
push eax
call fcn.00429588
pop ecx
pop ecx
test esi, esi
js 0x44e498
lea eax, [ebp - 0x218]
mov ecx, 0x6c9ef8
push eax
call fcn.00411bb5
push 0x6c9ef8
mov ecx, ebx
call fcn.00411a2e
push 0x6dd888
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
call fcn.00429817
ret 4
Function at 0x4548c2
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6c2008]
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.0042a970
add esp, 0xc
xor edi, edi
test ebx, ebx
je 0x454a56
cmp byte [ebp + 0x10], 0
mov byte [ebp - 0x20d], 0
jne 0x45494b
mov eax, dword [esi]
mov esi, dword [eax + 0x54]
lea eax, [ebp - 0x20d]
push eax
push ebx
push dword [ebp - 0x214]
mov ecx, esi
call dword [0x6317ac]
call esi
test eax, eax
js 0x454945
cmp byte [ebp - 0x20d], 0
je 0x454945
mov edi, 0x80040c91
jmp 0x454a43
mov esi, dword [ebp - 0x214]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x454a43
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0044fae2
mov edi, eax
test edi, edi
jns 0x4549a0
push str.FAILED:_SUCCEEDED_hr_
push str.SUCCEEDED_hr_
push str.FSManagerImpl::DeepCreateDirectory
push 0x2cc
push str.D:dbs_shodct0613_102023cmd9clientonedriveSetupStandalone_fsmanager_fsmanagerimpl.cpp
push 1
push dword [0x6c2a70]
call 0x45c147
add esp, 0x1c
jmp 0x454a43
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x4549bb
mov edi, 0x80040b04
jmp 0x454a43
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x454a11
mov eax, dword [esi]
mov esi, dword [eax + 0x4c]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
mov ecx, esi
call dword [0x6317ac]
call esi
mov edi, eax
test edi, edi
jns 0x454a11
push str.FAILED:_SUCCEEDED_hr_
push str.SUCCEEDED_hr_
push str.FSManagerImpl::DeepCreateDirectory
push 0x2dc
push str.D:dbs_shodct0613_102023cmd9clientonedriveSetupStandalone_fsmanager_fsmanagerimpl.cpp
push 1
push dword [0x6c2a74]
jmp 0x454993
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x454a43
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x454a2f
xor edi, edi
jmp 0x454a43
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004297f5
leave
ret 0xc
push 0x80004005
call fcn.00413b3a
int3
Function at 0x455b72
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6c2008]
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.0042a970
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x455bad
mov edi, dword [edi]
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x63ee04
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x455bdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x455beb
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.00411bb5
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004297f5
leave
ret 0xc

Function at 0x4561eb
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x20
mov eax, 0x611894
call fcn.00429868
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.00455982
and dword [ebp - 0x1c], 0
xor edi, edi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x456320
mov ecx, eax
call fcn.00457b21
test ebx, ebx
je 0x45625b
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 0x45625e
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x456303
jmp 0x45625e
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 0x4562a3
cmp eax, 2
je 0x45629a
cmp eax, 0xea
je 0x45629a
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x456303
cmp eax, 2
je 0x456303
cmp dword [ebp - 0x18], 1
jne 0x456303
mov ebx, dword [ebp - 0x14]
add ebx, 2
push ebx
call fcn.004fde97
mov esi, eax
pop ecx
mov dword [ebp - 0x2c], esi
and dword [ebp - 4], 0
test esi, esi
jne 0x4562ca
mov edi, 0x8007000e
jmp 0x4562f9
mov eax, esi
test ebx, ebx
je 0x4562d9
mov byte [eax], 0
inc eax
sub ebx, 1
jne 0x4562d0
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.00411bb5
push esi
call fcn.00429df5
mov ebx, dword [ebp - 0x28]
pop ecx
cmp dword [ebp - 0x1c], 0
je 0x456316
test ebx, ebx
je 0x456316
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.00429817
ret 0x10
push 0x80004005
call fcn.00413b3a
int3
Function at 0x456d85
Capabilities:
Timestomp file

Disassembly:
push 0x24
mov eax, 0x6119b9
call fcn.00429868
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 0x456dbf
push 0x662
mov eax, 0x80070057
push 0x63e9b0
mov esi, eax
push eax
call fcn.0044db7a
jmp 0x456e8a
lea eax, [ebp - 0x2c]
push eax
push 0x104
push edi
call fcn.0044fb23
mov esi, eax
test esi, esi
jns 0x456de1
push 0x663
push 0x63e9b0
push esi
jmp 0x456db5
cmp dword [ebp - 0x2c], 0
jne 0x456dee
push 0x664
jmp 0x456da8
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 0x456e43
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x456e8a
push 0x66c
jmp 0x456dd9
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 0x456e7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x456e7f
push 0x66e
push 0x63e9b0
push esi
call fcn.0044db7a
test edi, edi
je 0x456e8a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.00429817
ret 4

Function at 0x461fe2
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x6c2008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x1e0], 0xffffffff
jne 0x462003
xor eax, eax
inc eax
jmp 0x462044
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 + 0x1e0]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [esi + 0x1e0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0x1e0], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004297f5
leave
ret