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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d23f0
cmp edx, dword [eax]
je 0x4c7fe3
add eax, 8
inc ecx
cmp eax, 0x4d2480
jl 0x4c7fd4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d23f0]
jne 0x4c8111
mov eax, dword [0x4d7e20]
cmp eax, 1
je 0x4c80eb
test eax, eax
jne 0x4c8014
cmp dword [0x4d2318], 1
je 0x4c80eb
cmp edx, 0xfc
je 0x4c8111
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c804b
lea eax, [ebp - 0x1a4]
push 0x4cddf0
push eax
call fcn.004c89a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c8e30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c808e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c8e30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cddec
push edi
call fcn.004cad00
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4cddd0
push eax
call fcn.004c89a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c89b0
lea eax, [ebp - 0xa0]
push 0x4cddcc
push eax
call fcn.004c89b0
push dword [esi + 0x4d23f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c89b0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cdda4
push eax
call fcn.004cac74
add esp, 0x2c
pop edi
jmp 0x4c8111
lea eax, [ebp + 8]
lea esi, [esi + 0x4d23f4]
push 0
push eax
push dword [esi]
call fcn.004c8e30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
mov ecx, 0x2d3a565d
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0xc5c62c8
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40f7c2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x699008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0xc]
xorps xmm0, xmm0
push eax
mov esi, ecx
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esi + 0x10]
add eax, 0x4c
pop esi
cmp dword [eax + 0x14], 8
jb 0x40f7f6
mov eax, dword [eax]
push 8
lea ecx, [ebp - 0xc]
push ecx
push 3
push eax
push str.SoftwareMicrosoftOneDrive
push reloc.WS2_32.dll_accept
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041af05
leave
ret
Function at 0x41267e
Capabilities:
Copy file

Disassembly:
push 0x68
mov eax, 0x6030c5
call fcn.004f0658
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x40]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push esi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.0040ca6e
lea eax, [ebp - 0x40]
mov dword [ebp - 4], ebx
push eax
call fcn.00460f69
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040ca6e
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.00460f69
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4126d9
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0046100e
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x4126f5
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4126ff
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0046100e
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x412715
mov eax, dword [eax]
push dword [ebp - 0x44]
push eax
push ecx
call 0x40e61e
lea ecx, [ebp - 0x5c]
call fcn.00405795
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.00405795
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x41273d
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x412747
mov eax, dword [esi]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x41279c
cmp dword [edi + 0x14], 8
jb 0x41275c
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x5c]
push eax
call fcn.0046100e
mov edi, eax
mov byte [ebp - 4], 4
cmp dword [edi + 0x14], 8
jb 0x412774
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x41277c
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x74]
push eax
call fcn.0046100e
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x412792
mov eax, dword [eax]
push edi
push eax
push ecx
call 0x40e6d9
jmp 0x4127f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp dword [edi + 0x14], 8
jb 0x4127b8
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x5c]
push eax
call fcn.0046100e
mov edi, eax
mov byte [ebp - 4], 6
cmp dword [edi + 0x14], 8
jb 0x4127d0
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x4127d8
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x74]
push eax
call fcn.0046100e
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x4127ee
mov eax, dword [eax]
push ebx
push edi
push eax
push ecx
call 0x40e794
lea ecx, [ebp - 0x74]
call fcn.00405795
lea ecx, [ebp - 0x5c]
call fcn.00405795
lea ecx, [ebp - 0x28]
call fcn.00405795
lea ecx, [ebp - 0x40]
call fcn.00405795
mov eax, ebx
call fcn.004f0607
ret 8
Function at 0x42dc33
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x699008]
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 0x42dc7e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042de54
test al, al
jne 0x42dc78
sub edx, 2
cmp edx, edi
jne 0x42dc5e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42dca0
lea eax, [edi + 2]
cmp edx, eax
je 0x42dca0
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042db7f
add esp, 0x10
jmp 0x42dd9a
push esi
lea ecx, [ebp - 0x255]
call fcn.0042de54
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 0x42dce3
push dword [ebp - 0x25c]
jmp 0x42dc90
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 0x42dd20
cmp word [ebp - 0x226], 0
je 0x42dd41
cmp word [ebp - 0x226], ax
jne 0x42dd20
cmp word [ebp - 0x224], 0
je 0x42dd41
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042db7f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42dd8d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42dcfa
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42dd75
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42dd9a
push 0x42d8e0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004351a0
add esp, 0x10
jmp 0x42dd6a
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.0041af05
leave
ret

Function at 0x42ebc7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x42ebd8
pop esi
ret
push ebx
push edi
push esi
call fcn.0042eb90
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042d64a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42ec00
push ebx
push esi
push edi
call fcn.0041c210
add esp, 0xc
push 0
call fcn.0042cfd2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x42efc4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042ec15
Function at 0x42f444
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x62bd00
push 0x62bcf8
push str.FlsAlloc
push 0x1e
call fcn.0042f271
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42f478
push dword [ebp + 8]
mov ecx, esi
call dword [0x62275c]
call esi
jmp 0x42f47e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42f4c2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x62bd10
push 0x62bd08
push str.FlsGetValue
push 0x20
call fcn.0042f271
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42f4f9
push dword [ebp + 8]
mov ecx, esi
call dword [0x62275c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x43981f
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 + 0x6b2070]
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 0x43985f
cmp byte [ebx], 0xa
jne 0x43985f
or byte [eax + edi + 0x28], 4
jmp 0x439864
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x439962
mov al, byte [edx]
cmp al, 0x1a
je 0x439944
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x439893
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4398b8
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4398c2
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 0x439875
jmp 0x439962
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 0x43993f
cmp dword [ebp - 0xc], 0
je 0x43993f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x6b2070]
test byte [eax + edi + 0x28], 0x48
je 0x439919
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x439904
mov byte [esi], dl
jmp 0x439915
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6b2070]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x439962
cmp byte [ebp - 1], 0xa
jne 0x439928
cmp esi, ebx
jne 0x439928
mov byte [esi], 0xa
jmp 0x439961
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043978f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x439962
mov byte [esi], 0xd
jmp 0x439961
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x6b2070]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43995e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x439962
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43996b
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 + 0x6b2070]
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 0x4399ae
cmp word [esi], dx
jne 0x4399ae
or byte [edi + eax + 0x28], 4
jmp 0x4399b3
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 0x439b06
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 0x439ae6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4399f5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x439a2b
cmp eax, edx
jae 0x439a37
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 0x4399cd
jmp 0x439b06
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 0x439ae2
cmp dword [ebp - 0x14], 0
je 0x439ae2
mov eax, dword [ebx*4 + 0x6b2070]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x439aba
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x439a83
mov word [esi], cx
jmp 0x439ab6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x6b2070]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x6b2070]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x6b2070]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x439b06
pop ebx
cmp word [ebp - 4], bx
jne 0x439acb
cmp esi, dword [ebp + 0xc]
jne 0x439acb
mov word [esi], bx
jmp 0x439b03
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043978f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x439b06
push 0xd
jmp 0x439aff
mov ecx, dword [ebx*4 + 0x6b2070]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x439afd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x439b06
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 0x43db32
Capabilities:
Get common file path

Disassembly:
push 0x244
mov eax, 0x6040a6
call fcn.004f0658
mov ebx, dword [ebp + 8]
mov eax, 0x6b4294
mov dword [ebp - 0x240], ebx
push eax
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x250], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x24c], 1
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x6a2180], eax
jne 0x43dd30
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], eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 1
push eax
call fcn.0043d9cc
mov ebx, eax
call fcn.004acb76
mov edi, eax
mov eax, dword [edi]
mov esi, dword [eax + 0x88]
mov ecx, esi
call dword [0x62275c]
mov ecx, edi
call esi
push 0x208
mov byte [ebp - 0x241], al
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0041c790
add esp, 0xc
test ebx, ebx
js 0x43dcf5
cmp byte [0x6b4288], 0
mov bl, byte [ebp - 0x241]
je 0x43dbfe
test bl, bl
je 0x43dbfe
push 0x26
jmp 0x43dc00
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 0x43dcf5
xor eax, eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
mov byte [ebp - 4], 2
cmp byte [0x6b4288], al
je 0x43dc4e
mov eax, str.Microsoft_OneDrive_setuplogs
test bl, bl
jne 0x43dc53
mov eax, str.MicrosoftOneDrive_setuplogs
push eax
lea ecx, [ebp - 0x23c]
call fcn.0040c8c9
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
push esi
cmovae eax, dword [ebp - 0x23c]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.0043e159
mov ecx, dword [ebp - 0x228]
mov esi, eax
mov byte [ebp - 4], 1
cmp ecx, 8
jb 0x43dce0
mov eax, dword [ebp - 0x23c]
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x240], eax
cmp ecx, 0x1000
jb 0x43dcd7
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00405741
mov ecx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x240]
push ecx
push eax
call fcn.0041b169
pop ecx
pop ecx
test esi, esi
js 0x43dcf5
lea eax, [ebp - 0x218]
mov ecx, 0x6a2170
push eax
call fcn.0040c8c9
mov ecx, dword [ebp - 0x21c]
xor eax, eax
mov byte [ebp - 4], 3
mov dword [ebp - method.ClassPtr_struct_IFSManager_.virtual_0], vtable.ClassPtr_struct_IFSManager_.0
mov dword [ebp - 0x21c], eax
test ecx, ecx
je 0x43dd27
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x62275c]
call esi
xor eax, eax
mov ebx, dword [ebp - 0x248]
mov byte [ebp - 4], al
push 0x6a2170
mov ecx, ebx
mov dword [ebx], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
call fcn.0040ca6e
push 0x6b4294
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
call fcn.004f0607
ret 4
Function at 0x445222
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x699008]
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.0041c790
add esp, 0xc
xor edi, edi
test ebx, ebx
je 0x44537e
cmp byte [ebp + 0x10], 0
mov byte [ebp - 0x20d], 0
jne 0x4452ab
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 [0x62275c]
call esi
test eax, eax
js 0x4452a5
cmp byte [ebp - 0x20d], 0
je 0x4452a5
mov edi, 0x80040c91
jmp 0x44536b
mov esi, dword [ebp - 0x214]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44536b
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0043f4c8
mov edi, eax
test edi, edi
jns 0x4452e7
push 0x2a9
push str.D:dbs_shodct0417_205450_0cmd_bclientonedriveSetupStandalone_fsmanager_fsmanagerimpl.cpp
push edi
call fcn.0043d50f
jmp 0x44536b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x4452ff
mov eax, 0x80040b04
jmp 0x44536d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x445339
mov eax, dword [esi]
mov esi, dword [eax + 0x48]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
mov ecx, esi
call dword [0x62275c]
call esi
mov edi, eax
test edi, edi
jns 0x445339
push 0x2b2
jmp 0x4452d7
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x44536b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x445357
xor edi, edi
jmp 0x44536b
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.0041af05
leave
ret 0xc
push 0x80004005
call fcn.004056b0
int3

Function at 0x446bb2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x699008]
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.0041c790
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x446bed
mov edi, dword [edi]
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x631548
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x446c1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x446c2b
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0040c8c9
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041af05
leave
ret 0xc
Function at 0x44731b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x20
mov eax, 0x604c3d
call fcn.004f0658
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.004468d2
and dword [ebp - 0x1c], 0
xor edi, edi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x447450
mov ecx, eax
call fcn.004145d6
test ebx, ebx
je 0x44738b
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 0x44738e
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x447433
jmp 0x44738e
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 0x4473d3
cmp eax, 2
je 0x4473ca
cmp eax, 0xea
je 0x4473ca
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x447433
cmp eax, 2
je 0x447433
cmp dword [ebp - 0x18], 1
jne 0x447433
mov ebx, dword [ebp - 0x14]
add ebx, 2
push ebx
call fcn.0041b177
mov esi, eax
pop ecx
mov dword [ebp - 0x2c], esi
and dword [ebp - 4], 0
test esi, esi
jne 0x4473fa
mov edi, 0x8007000e
jmp 0x447429
mov eax, esi
test ebx, ebx
je 0x447409
mov byte [eax], 0
inc eax
sub ebx, 1
jne 0x447400
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.0040c8c9
push esi
call fcn.0041af13
mov ebx, dword [ebp - 0x28]
pop ecx
cmp dword [ebp - 0x1c], 0
je 0x447446
test ebx, ebx
je 0x447446
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.004f0607
ret 0x10
push 0x80004005
call fcn.004056b0
int3
Function at 0x448013
Capabilities:
Timestomp file

Disassembly:
push 0x24
mov eax, 0x604d8d
call fcn.004f0658
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 0x44804d
push 0x635
mov eax, 0x80070057
push str.D:dbs_shodct0417_205450_0cmd_bclientonedriveSetupStandalone_fsmanager_fsmanagerimpl.cpp
mov esi, eax
push eax
call fcn.0043d50f
jmp 0x448118
lea eax, [ebp - 0x2c]
push eax
push 0x104
push edi
call fcn.0043f509
mov esi, eax
test esi, esi
jns 0x44806f
push 0x636
push str.D:dbs_shodct0417_205450_0cmd_bclientonedriveSetupStandalone_fsmanager_fsmanagerimpl.cpp
push esi
jmp 0x448043
cmp dword [ebp - 0x2c], 0
jne 0x44807c
push 0x637
jmp 0x448036
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 0x4480d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x448118
push 0x63f
jmp 0x448067
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 0x44810d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x44810d
push 0x641
push str.D:dbs_shodct0417_205450_0cmd_bclientonedriveSetupStandalone_fsmanager_fsmanagerimpl.cpp
push esi
call fcn.0043d50f
test edi, edi
je 0x448118
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.004f0607
ret 4