joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c1f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x814
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x810], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x800
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0044e060
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [ebp + 0xc]
push 0
cdq
push 0x100000
push edx
push eax
lea esi, [esp + 0x28]
call fcn.00451ca0
cmp word [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov ebx, edx
je 0x40c28f
movzx eax, word [esi]
mov edx, dword [edi]
mov ecx, dword [edx + 0x48]
push eax
push edi
call ecx
cmp edx, ebx
ja 0x40c2a8
jb 0x40c270
cmp eax, dword [esp + 0x10]
ja 0x40c2a8
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c275
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x40c258
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.0044e04c
mov esp, ebp
pop ebp
ret 8
mov ax, word [esi]
mov ecx, dword [esp + 0x81c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044e04c
mov esp, ebp
pop ebp
ret 8

Function at 0x40c2d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x808
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x804], eax
push 0x800
lea eax, [esp + 4]
push 0
push eax
call fcn.0044e060
add esp, 0xc
push 0x400
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [esp + 0x804]
mov ax, word [esp]
xor ecx, esp
call fcn.0044e04c
mov esp, ebp
pop ebp
ret 4
Function at 0x40c380
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46be16
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, dword [0x485d30]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test esi, esi
je 0x40c55e
mov eax, dword [0x487cf8]
mov edx, dword [eax + 0xc]
mov ecx, 0x487cf8
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x248], 0
cmp dword [edi + 0x10], 0
jne 0x40c453
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x40c45f
lea ecx, [esp + 0x1c]
push ecx
push 0x15
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40c445
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea edx, [esp + 0x2c]
lea edi, [esp + 0x14]
call fcn.00402b90
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40c45f
lea eax, [edi + 4]
lea edi, [esp + 0x14]
call fcn.00402bf0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
mov ebx, 0x4783c8
je 0x40c473
mov ebx, str.360safe.setup.log
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0040c960
mov byte [esp + 0x250], 1
mov eax, dword [esp + 0x20]
push 0x478414
push eax
call fcn.0044ff9f
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40c50b
push 2
push 0
push edi
call fcn.00451934
add esp, 0xc
push 0
call fcn.004512f4
add esp, 4
push edx
push eax
lea eax, [esp + 0x28]
call fcn.0040a340
lea ebx, [esp + 0x10]
lea ecx, [esp + 0x20]
call fcn.0040a3a0
mov ecx, dword [esp + 0x10]
push esi
push ecx
push str._s__s_r_n
push edi
call fcn.004519b9
push edi
call fcn.0044f8a3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c50b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x248], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c533
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x248], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c55e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0044e04c
mov esp, ebp
pop ebp
ret 8
Function at 0x40c6d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x480d90
push 0x450080
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
push ebx
push esi
push edi
mov eax, dword [0x485d30]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov dword [ebp - 4], 0xfffffffe
jmp 0x40c73b
cmp dword [0x4894c4], 0
jne 0x40c7aa
push str.ntdll
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c77b
push str.ntdll
call fcn.00404600
add esp, 4
test eax, eax
jne 0x40c77b
call fcn.0044dbe0
push eax
push str.ntdll
call fcn.0044ddf0
add esp, 8
xor edi, edi
jmp 0x40c79d
push str.ntdll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x40c79d
push str.NtQueryInformationProcess
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4894c4], eax
cmp dword [0x4894c4], 0
je 0x40c83d
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40c83d
push 0
push 0x18
lea ecx, [ebp - 0x3c]
push ecx
push 0
push esi
call dword [0x4894c4]
test eax, eax
jne 0x40c836
lea edx, [ebp - 0x1c]
push edx
push 0x1c
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call ebx
test eax, eax
je 0x40c836
lea edx, [ebp - 0x1c]
push edx
push 0x90
lea eax, [ebp - 0xe8]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
push esi
call ebx
test eax, eax
je 0x40c836
movzx eax, word [ebp - 0xa8]
cmp dword [ebp + 0x14], eax
jb 0x40c836
lea edx, [ebp - 0x1c]
push edx
push eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
push esi
call ebx
test eax, eax
je 0x40c836
mov dword [ebp - 0x20], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40c848
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40c860
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
xor eax, eax
push edi
push str.ntdll
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c8d1
push str.ntdll
call fcn.00404600
add esp, 4
test eax, eax
jne 0x40c8d1
call fcn.0044dbe0
push eax
push str.ntdll
call fcn.0044ddf0
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.ntdll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40c8fb
push str.NtQueryInformationProcess
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x40c907
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40c8f4
push 0
push 0x18
lea ecx, [esp + 0x18]
push ecx
push 0
push edi
call ebx
mov ebx, dword [esp + 0x24]
test eax, eax
je 0x40c938
mov ebx, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ce20
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x46b5a8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x485d30]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
cmp dword [edi + 4], 0
je 0x40cea0
mov eax, dword [0x487cf8]
mov edx, dword [eax + 0xc]
mov ecx, 0x487cf8
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x18], 0
call fcn.0040d2c0
test eax, eax
jne 0x40ceb7
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cea0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0xc
lea eax, [esp + 0x1c]
call fcn.0040cf20
test eax, eax
je 0x40ce78
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push ecx
push edx
push esi
call fcn.0043c0d0
add esp, 0xc
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0xc
Function at 0x40d160
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x46b578
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485d30]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [0x487cf8]
mov edx, dword [eax + 0xc]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov ecx, 0x487cf8
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x38], 0
call fcn.0040d2c0
test eax, eax
jne 0x40d1f9
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d1f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xffffd8ef
jmp 0x40d272
lea edx, [esp + 0x14]
mov ecx, edi
call fcn.0040d410
test eax, eax
je 0x40d1ca
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
mov ecx, esi
call fcn.00414800
lea eax, [edi + 0xc]
lea edx, [esp + 0x18]
mov ecx, 0x10
sub edx, eax
mov edi, dword [edx + eax]
cmp edi, dword [eax]
jne 0x40d293
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x40d225
push ebp
push ebx
push esi
call fcn.0043c0d0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d26d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044e04c
add esp, 0x24
ret 0xc
lea eax, [esi - 0x10]
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d2b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xffffd8ee
jmp 0x40d272
Function at 0x40d2c0
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov eax, 0x1104
call fcn.0044ef90
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x1100], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1110]
push esi
push edi
push 0x800
lea eax, [esp + 0x914]
push 0
push eax
call fcn.0044e060
push 0x800
lea ecx, [esp + 0x120]
push 0
push ecx
call fcn.0044e060
push 0x100
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.0044e060
add esp, 0x24
lea eax, [esp + 0x910]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
mov edx, dword [0x4891e8]
mov eax, dword [edx + 0x2c]
push 0x80
lea ecx, [esp + 0x14]
push ecx
push 0x4891e8
call eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x914]
push edx
lea eax, [esp + 0x118]
push eax
call edi
lea eax, [esp + 0x110]
add eax, 0xfffffffe
jmp 0x40d380
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x40d380
mov ecx, dword [0x478540]
mov edx, dword [0x478544]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esp + 0x110]
push eax
call ebx
test eax, eax
je 0x40d3ce
inc esi
cmp esi, 0xa
jl 0x40d340
xor eax, eax
mov ecx, dword [esp + 0x1110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044e04c
add esp, 0x1104
ret 4
lea eax, [esp + 0x110]
lea edx, [eax + 2]
jmp 0x40d3e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d3e0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x110]
mov ebx, eax
push ecx
mov eax, ebp
call fcn.00402c50
mov eax, 1
jmp 0x40d3b3
Function at 0x40d410
Capabilities:
Check if file exists
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.0044ef90
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
cmp dword [eax - 0xc], 0
mov ebx, edx
jne 0x40d450
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0044e04c
add esp, 0x1004
ret
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d437
mov eax, dword [esi + 0x1c]
push edi
push 0x47856c
push eax
call fcn.0044ff9f
mov edi, eax
add esp, 8
test edi, edi
jne 0x40d48b
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0044e04c
add esp, 0x1004
ret
mov eax, dword [esi + 4]
push 0
push eax
push edi
call fcn.00451934
mov eax, dword [ebx]
push 0x477558
push eax
call fcn.0044ff9f
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x40d549
push 0x1000
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.0044e060
mov esi, dword [esi + 8]
mov eax, esi
cdq
and edx, 0xfff
add eax, edx
add esp, 0xc
sar eax, 0xc
and esi, 0x80000fff
jns 0x40d4e6
dec esi
or esi, 0xfffff000
inc esi
test eax, eax
jle 0x40d51d
push ebp
mov ebp, eax
lea ecx, [ecx]
push edi
push 1
lea edx, [esp + 0x18]
push 0x1000
push edx
call fcn.0044fda3
push ebx
push 1
lea eax, [esp + 0x28]
push 0x1000
push eax
call fcn.0044fa81
add esp, 0x20
sub ebp, 1
jne 0x40d4f0
pop ebp
test esi, esi
je 0x40d540
push edi
push 1
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.0044fda3
push ebx
push 1
lea edx, [esp + 0x24]
push esi
push edx
call fcn.0044fa81
add esp, 0x20
push ebx
call fcn.0044f8a3
add esp, 4
push edi
call fcn.0044f8a3
mov ecx, dword [esp + 0x1010]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0044e04c
add esp, 0x1004
ret

Function at 0x40d620
Capabilities:
Delete file

Disassembly:
push ecx
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d650
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
push eax
push esi
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.0040d680
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret
Function at 0x40d680
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1010
call fcn.0044ef90
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [esp + 0x1014]
push ebx
mov ebx, dword [esp + 0x101c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
cmp eax, 0xffffffff
je 0x40d7d6
test ebx, ebx
je 0x40d7d6
test ecx, ecx
jle 0x40d7d6
mov eax, ecx
cdq
push ebp
and edx, 0xfff
push esi
add eax, edx
push edi
mov esi, eax
mov edi, ecx
sar esi, 0xc
and edi, 0x80000fff
jns 0x40d6ed
dec edi
or edi, 0xfffff000
inc edi
mov ebp, ebx
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x10], ebx
jle 0x40d762
lea esp, [esp]
push 0x1000
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.0044e730
add esp, 0xc
lea eax, [esp + 0x1c]
mov ecx, 0x1000
lea esp, [esp]
mov dl, byte [eax]
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x40d720
mov edx, dword [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40d7a6
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40d757
mov ecx, dword [esp + 0x10]
add dword [eax], ecx
inc ebx
add ebp, 0x1000
cmp ebx, esi
jl 0x40d700
test edi, edi
jle 0x40d7cf
push edi
lea edx, [esp + 0x20]
push ebp
push edx
call fcn.0044e730
add esp, 0xc
lea eax, [esp + 0x1c]
test edi, edi
jle 0x40d78a
mov ecx, edi
nop
mov dl, byte [eax]
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x40d780
mov edx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40d7c1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0044e04c
add esp, 0x1010
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40d7cf
mov ecx, dword [esp + 0x10]
add dword [eax], ecx
mov eax, 1
jmp 0x40d7a8
mov ecx, dword [esp + 0x1010]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044e04c
add esp, 0x1010
ret
Function at 0x40d7f0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x46b7c0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485d30]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x487cf8]
mov edx, dword [eax + 0xc]
mov ecx, 0x487cf8
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
mov dword [esp + 0x24], ebx
call fcn.00403380
add esp, 4
test eax, eax
jne 0x40d871
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d86a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40d99f
mov ebp, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [esp + 0x28]
mov eax, ebp
call fcn.0040d620
test eax, eax
jne 0x40d898
mov dword [esp + 0x20], 0xffffffff
lea eax, [ebp - 0x10]
jmp 0x40d851
mov edx, dword [0x487cf8]
mov eax, dword [edx + 0xc]
mov ecx, 0x487cf8
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x24], 1
call fcn.00403380
mov esi, dword [esp + 0x2c]
add esp, 4
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp dword [esp + 0x30], ebx
je 0x40d912
push ebx
push esi
push ebp
call fcn.0043c0d0
add esp, 0xc
test eax, eax
jge 0x40d942
lea eax, [esi - 0x10]
mov byte [esp + 0x20], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d902
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
lea eax, [ebp - 0x10]
jmp 0x40d851
cmp ebp, ebx
je 0x40d92c
cmp esi, ebx
je 0x40d92c
push esi
push 0x40d9c0
push ebx
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
cmp eax, ebx
jne 0x40d942
lea eax, [esi - 0x10]
mov byte [esp + 0x20], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40d8f6
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x28]
call fcn.00402bf0
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov byte [esp + 0x20], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d976
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d99a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x40dad0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x2004
call fcn.0044ef90
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x2000], eax
xor eax, eax
test ebx, ebx
je 0x40dbc5
mov word [ebx], ax
test edi, edi
jne 0x40db0e
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0044e04c
add esp, 0x2004
ret
push esi
mov esi, 0x4787b0
mov ecx, dword [esi]
push edi
push ecx
call fcn.0044ee88
add esp, 8
test eax, eax
je 0x40db47
add esi, 8
cmp esi, str.TargetDir
jl 0x40db14
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0044e04c
add esp, 0x2004
ret
mov esi, dword [esi + 4]
cmp esi, 0xffffffff
je 0x40db98
push 0x2000
lea edx, [esp + 8]
push 0
push edx
call fcn.0044e060
add esp, 0xc
push 1
push esi
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40db98
lea eax, [esp + 4]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40db80
sub eax, edx
sar eax, 1
cmp eax, dword [esp + 0x200c]
jl 0x40dbb0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0044e04c
add esp, 0x2004
ret
push eax
lea ecx, [esp + 8]
push ecx
push ebx
call fcn.0044effb
add esp, 0xc
mov eax, 1
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0044e04c
add esp, 0x2004
ret

Function at 0x40dc30
Capabilities:
Get file version info

Disassembly:
mov eax, 0x4010
call fcn.0044ef90
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x400c], eax
push ebx
xor eax, eax
push 0x3ffe
mov ebx, ecx
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.0044e060
add esp, 0xc
mov dword [esp + 8], 0
test esi, esi
je 0x40dd15
test edi, edi
je 0x40dd15
lea edx, [esp + 8]
push edx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40dd15
cmp eax, 0x3fff
ja 0x40dd15
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40dd15
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 8]
push eax
push 0x477918
lea ecx, [esp + 0x1c]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40dd15
lea edx, [ebx + ebx]
push edx
push 0
push edi
call fcn.0044e060
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push str._d._d._d._d
dec ebx
push ebx
push edi
call fcn.00451a6c
add esp, 0x28
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x400c]
xor ecx, esp
call fcn.0044e04c
add esp, 0x4010
ret
mov ecx, dword [esp + 0x4010]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044e04c
add esp, 0x4010
ret