joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448710
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004b9387
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004809a6
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + ecx + 2]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.004b8df0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
je 0x44879a
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0x20
je 0x44879a
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
jmp 0x44877a
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 8]
sar ecx, 1
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004ba3fb
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
push 2
push 0
push 0x10
mov ecx, 0x56d2d0
call fcn.0046a310
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x44882b
mov edx, dword [ebp - 0xc]
push edx
call fcn.004b9387
add esp, 4
shl eax, 1
push eax
mov eax, dword [ebp - 0xc]
push eax
push 1
push 0
push str.channelid
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x448821
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.004ba1cb
add esp, 4
mov al, 1
jmp 0x44883f
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.004ba1cb
add esp, 4
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x448be0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.004b8df0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], 1
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 0x40
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x40], eax
cmp dword [ebp + 0x10], 0
je 0x448c6b
cmp dword [ebp - 0x40], 0
je 0x448c6b
push 0xffffffffffffffff
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x448c6b
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
mov eax, dword [ebp - 0x40]
mov esp, ebp
pop ebp
ret
Function at 0x448c80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e6f7
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x568e30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.0050cbc0
movzx edx, al
test edx, edx
je 0x448cdc
push 0x519014
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x448cee
push 0x51901c
lea ecx, [ebp - 0x234]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x234]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x448d06
xor eax, eax
jmp 0x448e44
mov eax, dword [ebp + 0xc]
push eax
push str._image
lea ecx, [ebp - 0x250]
push ecx
call fcn.00447460
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x10]
call fcn.004257b0
movzx edx, al
test edx, edx
jne 0x448d83
mov eax, dword [ebp + 0x10]
push eax
push 0x519034
lea ecx, [ebp - 0x2a4]
push ecx
call fcn.00447460
add esp, 0xc
mov dword [ebp - 0x2ac], eax
mov edx, dword [ebp - 0x2ac]
mov dword [ebp - 0x2b0], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x250]
call fcn.0040e000
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2a4]
call fcn.00401340
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x288]
call fcn.0040d8d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x288]
call fcn.00401850
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.0050ccf0
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x250]
call fcn.00401850
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.0050ccf0
add esp, 8
mov byte [ebp - 4], 4
push 0
lea ecx, [ebp - 0x26c]
call fcn.00402980
push eax
push str.SetupHelper.exe
lea ecx, [ebp - 0x2c]
call fcn.00402980
push eax
call fcn.0050d100
add esp, 0x10
mov dword [ebp - 0x2a8], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x26c]
call fcn.00402a30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00402a30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x288]
call fcn.00401340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.00401340
mov eax, dword [ebp - 0x2a8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b8dd5
mov esp, ebp
pop ebp
ret

Function at 0x448fa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
push 0
push 0x448f60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x44ac80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e816
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x568e30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
cmp dword [ebp + 8], 0
je 0x44acb8
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x44acbf
xor eax, eax
jmp 0x44ad7a
push 0x5c
mov edx, dword [ebp + 8]
push edx
call fcn.004ba445
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x44acdd
xor eax, eax
jmp 0x44ad7a
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp + 8]
sar eax, 1
add eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0044d6c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00429450
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
je 0x44ad1a
cmp dword [ebp - 0x10], 5
jne 0x44ad35
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004272d0
mov eax, dword [ebp - 0x24]
jmp 0x44ad7a
mov edx, dword [ebp - 0x1c]
add edx, 2
push edx
lea ecx, [ebp - 0x18]
call fcn.00426660
push str._:____
lea ecx, [ebp - 0x18]
call fcn.0044d6f0
mov dword [ebp - 0x20], eax
xor eax, eax
cmp dword [ebp - 0x20], 0xffffffff
sete al
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x18]
call fcn.004272d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004272d0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x44b070
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x540
mov eax, dword [0x568e30]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x540], ecx
xor eax, eax
mov word [ebp - 0x538], ax
push 0x206
push 0
lea ecx, [ebp - 0x536]
push ecx
call fcn.004b8df0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x320], dx
push 0x206
push 0
lea eax, [ebp - 0x31e]
push eax
call fcn.004b8df0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x320]
push edx
call fcn.004b9368
add esp, 8
lea eax, [ebp - 0x538]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x538]
push ecx
call fcn.00476d50
add esp, 4
push 0x519604
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x56d1bc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x330], eax
cmp dword [ebp - 0x330], 0
jne 0x44b124
jmp 0x44b260
mov ecx, dword [ebp - 0x330]
push ecx
mov edx, dword [0x56d1bc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x324], eax
mov ecx, dword [ebp - 0x330]
push ecx
mov edx, dword [0x56d1bc]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x114], eax
push str.my7zData.7z
lea eax, [ebp - 0x538]
push eax
call fcn.004b933a
add esp, 8
lea ecx, [ebp - 0x538]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44b19f
lea edx, [ebp - 0x538]
push edx
call fcn.0047a300
add esp, 4
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x538]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0xffffffff
je 0x44b208
mov dword [ebp - 0x53c], 0
push 0
lea ecx, [ebp - 0x53c]
push ecx
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x324]
push eax
mov ecx, dword [ebp - 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x328]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004b8df0
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x538]
push edx
call fcn.00476eb0
add esp, 8
push 1
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x320]
push ecx
call fcn.00441250
add esp, 0xc
lea edx, [ebp - 0x538]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b8dd5
mov esp, ebp
pop ebp
ret 8
Function at 0x44b320
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x568e30]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x48], ax
push 0x3e
push 0
lea ecx, [ebp - 0x46]
push ecx
call fcn.004b8df0
add esp, 0xc
movzx edx, word [ebp + 8]
push edx
push str._c:_
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b8dd5
mov esp, ebp
pop ebp
ret
Function at 0x44c200
Capabilities:
Check if file exists
Copy file
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x568e30]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004b8df0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x418], dx
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.004b8df0
add esp, 0xc
lea ecx, [ebp - 0x418]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.Softlink
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.SLDefault.xml
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, 0x56d200
call fcn.00401850
push eax
lea edx, [ebp - 0x210]
push edx
call fcn.004b9368
add esp, 8
push str.Softlink.xml
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44c2ec
push 0
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b8dd5
mov esp, ebp
pop ebp
ret
Function at 0x44cf10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 8], 0
jne 0x44cf29
mov eax, 1
jmp 0x44d032
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x519820
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x44d02d
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0
push 0x519874
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x44cf84
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x44d032
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004809a6
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x44d023
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0
push 0x519894
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x44cfef
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004ba1cb
add esp, 4
mov eax, 1
jmp 0x44d032
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004b9b1b
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004ba1cb
add esp, 4
xor eax, eax
jmp 0x44d032
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x44d480
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ea90
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x568e30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 4], 1
push 0x56d200
lea ecx, [ebp - 0x2c]
call fcn.00401300
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040e000
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.00401300
mov dword [ebp - 0x60], eax
call fcn.0044f0e0
add esp, 0x1c
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x44d5ac
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
lea eax, [ebp + 0x24]
push eax
call fcn.00401300
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.0044e3b0
add esp, 0x20
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 3
push 0x5198b4
lea ecx, [ebp - 0x48]
call fcn.0040d920
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x48]
call fcn.0040e000
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x54], esp
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x58], esp
lea eax, [ebp - 0x48]
push eax
call fcn.00401300
mov dword [ebp - 0x70], eax
push esi
call fcn.0044f060
add esp, 0x20
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x78], ecx
call fcn.0044f2e0
add esp, 0x1c
push 0
lea ecx, [ebp - 0x48]
call fcn.00401850
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401850
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
movzx edx, byte [ebp + 0x40]
test edx, edx
je 0x44d5a0
lea ecx, [ebp - 0x2c]
call fcn.00401850
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.00401340
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401340
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00401340
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b8dd5
mov esp, ebp
pop ebp
ret 0x3c
Function at 0x44f0e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50eec8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x568e30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401850
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x44f14a
mov eax, dword [ebp - 0x14]
and eax, 0x10
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401340
mov eax, dword [ebp - 0x1c]
jmp 0x44f1c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
je 0x44f193
cmp dword [ebp - 0x18], 3
je 0x44f193
cmp dword [ebp - 0x18], 0x7b
je 0x44f193
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x24], esp
lea edx, [ebp + 8]
push edx
call fcn.00401300
mov dword [ebp - 0x28], eax
call fcn.0044f1e0
add esp, 0x1c
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x44f193
mov dword [ebp - 0x30], 1
jmp 0x44f19a
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401340
mov eax, dword [ebp - 0x20]
jmp 0x44f1c3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x44f2e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ef28
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
mov eax, dword [0x568e30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004011a0
test eax, eax
ja 0x44f337
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401340
mov eax, dword [ebp - 0x14]
jmp 0x44f446
lea ecx, [ebp + 8]
call fcn.004011a0
sub eax, 1
push eax
lea ecx, [ebp + 8]
call fcn.00443a80
movzx eax, word [eax]
cmp eax, 0x5c
jne 0x44f37d
lea ecx, [ebp + 8]
call fcn.004011a0
sub eax, 1
push eax
lea ecx, [ebp + 8]
call fcn.00443a80
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp + 8]
call fcn.00401850
push eax
lea ecx, [ebp + 8]
call fcn.0040b040
lea ecx, [ebp + 8]
call fcn.004011a0
cmp eax, 3
jb 0x44f3af
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
lea edx, [ebp + 8]
push edx
call fcn.00401300
mov dword [ebp - 0x2c], eax
call fcn.0044f4e0
add esp, 0x1c
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x44f3ca
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401340
mov eax, dword [ebp - 0x1c]
jmp 0x44f446
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x24], esp
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x28], esp
lea eax, [ebp + 8]
push eax
call fcn.00401300
mov dword [ebp - 0x34], eax
push esi
call fcn.0044f460
add esp, 0x20
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
call fcn.0044f2e0
add esp, 0x1c
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x44f427
push 0
lea ecx, [ebp + 8]
call fcn.00401850
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x44f427
mov dword [ebp - 0x44], 1
jmp 0x44f42e
mov dword [ebp - 0x44], 0
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401340
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44f4e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ef98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x568e30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401850
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x44f535
mov eax, dword [ebp - 0x14]
and eax, 0x10
je 0x44f535
mov dword [ebp - 0x1c], 1
jmp 0x44f53c
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401340
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x44f6d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f05f
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x568e30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x224], ax
push 0x208
push 0
lea ecx, [ebp - 0x222]
push ecx
call fcn.004b8df0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x240]
call fcn.0040d8d0
mov byte [ebp - 4], 1
push 0x51a078
lea ecx, [ebp - 0x240]
call fcn.0040d920
push 0x51a074
lea ecx, [ebp + 8]
call fcn.00401850
push eax
call fcn.004b9552
add esp, 8
test eax, eax
je 0x44f871
push 0x51a070
lea ecx, [ebp - 0x25c]
call fcn.0040d8d0
mov dword [ebp - 0x2b8], eax
mov ecx, dword [ebp - 0x2b8]
mov dword [ebp - 0x2bc], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2bc]
push edx
lea eax, [ebp + 8]
push eax
push 0x51a070
lea ecx, [ebp - 0x278]
call fcn.0040d8d0
mov dword [ebp - 0x2c0], eax
mov ecx, dword [ebp - 0x2c0]
mov dword [ebp - 0x2c4], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2c4]
push edx
lea eax, [ebp - 0x294]
push eax
call fcn.0040ded0
add esp, 0xc
mov dword [ebp - 0x2c8], eax
mov ecx, dword [ebp - 0x2c8]
mov dword [ebp - 0x2cc], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2cc]
push edx
lea eax, [ebp - 0x2b0]
push eax
call fcn.0040ded0
add esp, 0xc
mov dword [ebp - 0x2d0], eax
mov ecx, dword [ebp - 0x2d0]
mov dword [ebp - 0x2d4], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2d4]
push edx
lea ecx, [ebp + 8]
call fcn.0040b180
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b0]
call fcn.00401340
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x294]
call fcn.00401340
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
call fcn.00401340
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x25c]
call fcn.00401340
movzx eax, byte [ebp + 0x24]
test eax, eax
je 0x44f88b
push 0x51a068
lea ecx, [ebp - 0x240]
call fcn.0040d920
jmp 0x44f89b
push 0x51a05c
lea ecx, [ebp - 0x240]
call fcn.0040d920
push 0x51a050
lea ecx, [ebp - 0x240]
call fcn.0040d920
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x240]
call fcn.0040e000
lea edx, [ebp - 0x240]
push edx
call fcn.0044f910
add esp, 4
mov byte [ebp - 0x2b1], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.00401340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401340
mov al, byte [ebp - 0x2b1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b8dd5
mov esp, ebp
pop ebp
ret