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

Disassembly:
push 0x18
mov eax, 0x4b4b26
call fcn.004afcf2
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 4], edi
call fcn.004853cb
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x20], edi
je 0x4853bb
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, 2
cmp dword [ebp - 0x14], eax
jae 0x4853bb
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
shl esi, 2
push dword [esi + eax]
call ebx
cmp eax, 5
je 0x4853b3
cmp dword [ebp - 0x20], edi
je 0x485344
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, 2
cmp dword [ebp - 0x14], eax
jb 0x48534a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x20]
mov eax, dword [esi + eax]
push eax
call ebx
cmp eax, 2
jne 0x48535b
xor edi, edi
inc edi
cmp dword [ebp - 0x20], 0
je 0x48536f
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, 2
cmp dword [ebp - 0x14], eax
jb 0x485375
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x20]
push dword [esi + eax]
call fcn.0048543c
test edi, edi
jne 0x485389
cmp eax, 7
jne 0x4853b1
cmp dword [ebp - 0x20], 0
je 0x48539d
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, 2
cmp dword [ebp - 0x14], eax
jb 0x4853a3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
add esi, eax
push esi
call fcn.00457195
xor edi, edi
inc dword [ebp - 0x14]
jmp 0x4852ff
lea esi, [ebp - 0x24]
call fcn.00435c00
call fcn.004afdca
ret 4

Function at 0x4853cb
Capabilities:
Get disk information

Disassembly:
push 8
mov eax, 0x4b6a29
call fcn.004afcf2
mov eax, dword [0x4f7c54]
mov ecx, 0x4f7c54
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 2
mov ebx, eax
pop esi
xor eax, eax
inc eax
mov ecx, esi
shl eax, cl
test ebx, eax
je 0x485423
lea eax, [esi + 0x41]
push eax
push str._c:__
lea eax, [ebp - 0x10]
call fcn.00403566
mov edi, dword [ebp + 8]
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
call fcn.00457195
inc esi
cmp esi, 0x1a
jb 0x4853f9
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040113b
call fcn.004afdca
ret 4
Function at 0x48543c
Capabilities:
Get storage device properties

Disassembly:
push 0x20
mov eax, 0x4b35b0
call fcn.004afd5b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4f7c54]
xor ebx, ebx
mov ecx, 0x4f7c54
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov esi, 0x227
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCR80.dll_malloc]
mov edi, eax
cmp edi, ebx
pop ecx
je 0x4854f7
push esi
push ebx
push edi
call sub.MSVCR80.dll_memset
mov eax, dword [ebp - 0x28]
mov dword [edi + 4], esi
movzx eax, word [eax]
push eax
push 0x4d2aa0
lea eax, [ebp - 0x20]
call fcn.00403566
add esp, 0x14
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4854ef
push ebx
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push dword [edi + 4]
lea eax, [ebp - 0x1c]
push edi
push 0xc
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4854e8
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x24], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040113b
mov eax, dword [ebp - 0x24]
call fcn.004afdde
ret 4
Function at 0x486b1b
Capabilities:
Check if file exists
Create process on windows

Disassembly:
mov eax, dword [esi + 0x14]
mov edx, dword [esi]
inc eax
push eax
mov ecx, esi
call dword [edx + 0x50]
test eax, eax
je 0x486b44
cmp dword [esi + 0x144], 0x3a2c998
je 0x486b3f
mov ecx, dword [eax + 0x2c]
jmp fcn.00478f34
jmp fcn.00478f18
ret

Function at 0x48caad
Capabilities:
Read .ini file

Disassembly:
push 0x24
mov eax, 0x4b351b
call fcn.004afcf2
push dword [0x4f9f34]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push str.count
mov edi, str.slim
push edi
call ebx
mov dword [ebp - 0x20], eax
mov eax, dword [0x4f7c54]
mov esi, 0x4f7c54
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
mov eax, dword [0x4f7c54]
mov ecx, esi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
mov eax, dword [0x4f9f40]
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
cmp dword [0x4f9f3c], eax
mov dword [ebp - 0x18], eax
jbe 0x48cb27
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [0x4f9f40]
mov ecx, dword [0x4f9f3c]
cmp ecx, eax
mov dword [ebp - 0x10], ecx
jbe 0x48cb3f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [0x4f9f40]
mov ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x10], ecx
je 0x48cb82
mov edx, eax
sub edx, ecx
mov ecx, dword [ebp - 0x10]
sar edx, 3
lea ecx, [ecx + edx*8]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x18]
cmp ecx, eax
mov dword [ebp - 0x24], eax
je 0x48cb7a
mov eax, dword [ebp - 0x10]
sub eax, ecx
mov edx, dword [ecx]
mov dword [eax + ecx], edx
mov edx, dword [ecx + 4]
mov dword [eax + ecx + 4], edx
add ecx, 8
cmp ecx, dword [ebp - 0x24]
jne 0x48cb66
mov eax, dword [ebp - 0x28]
mov dword [0x4f9f40], eax
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x20], 0
jle 0x48cbf2
jmp 0x48cb93
mov edi, str.slim
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str.sid_d
call fcn.00403566
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push str.std_d
call fcn.00403566
add esp, 0x10
push dword [0x4f9f34]
push 0
push dword [ebp - 0x14]
push edi
call ebx
push dword [0x4f9f34]
mov esi, dword [ebp - 0x1c]
push 0
push esi
push edi
mov dword [ebp - 0x2c], eax
call ebx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov edi, 0x4f9f38
call fcn.0048ce7d
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jl 0x48cb8e
lea eax, [esi - 0x10]
call fcn.0040113b
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040113b
xor eax, eax
inc eax
call fcn.004afdca
ret

Function at 0x48e603
Capabilities:
Create process on windows

Disassembly:
push dword [esp + 4]
call fcn.0048e088
xor edx, edx
cmp eax, edx
je 0x48e63f
mov ecx, dword [eax + 0x38]
cmp dword [ecx - 0xc], edx
je 0x48e63f
cmp dword [eax + 0x1c], 0x3a2c998
je 0x48e63a
cmp ecx, edx
je 0x48e63f
push 5
push edx
push edx
push ecx
push str.open
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x48e63f
call fcn.00478f18
xor eax, eax
ret 4
Function at 0x48f2d9
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b0bbf
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4f1020]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x634]
call fcn.00468097
xor edi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x40], edi
fld dword [0x4d4ea8]
lea ebx, [esp + 0x18]
fstp dword [esp + 0x18]
lea esi, [esp + 0x24]
call fcn.0048fab0
fld dword [0x4d4ea8]
lea ebx, [esp + 0x18]
fstp dword [esp + 0x18]
call fcn.0048fab0
fld dword [0x4d4ea4]
lea ebx, [esp + 0x18]
fstp dword [esp + 0x18]
call fcn.0048fab0
cmp dword [esp + 0x1c], edi
mov dword [esp + 0x14], 0x64
mov dword [esp + 0x18], edi
jle 0x48f444
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
mov ebx, dword [ebp + 8]
push dword [esp + 0x18]
mov esi, dword [ebx + 0x634]
call fcn.004680aa
cmp dword [eax + 0x10], 0
jne 0x48f430
cmp dword [eax + 0x14], 0
jne 0x48f430
push 1
push dword [eax + 0x20]
push ebx
call fcn.0048e644
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x20], ebx
je 0x48f430
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x20]
push eax
call fcn.0044710e
push dword [esp + 0x14]
mov esi, 0x15e
push esi
lea eax, [ebx + 0x24]
push eax
call edi
push dword [esp + 0x14]
lea eax, [ebx + 0x14]
push esi
push eax
call edi
mov eax, dword [ebp + 0xc]
call fcn.0047427b
mov esi, eax
dec esi
cmp dword [esp + 0x28], 0
je 0x48f41e
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
sar eax, 2
cmp esi, eax
jae 0x48f41e
test esi, esi
jl 0x48f41e
cmp esi, eax
jb 0x48f414
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x28]
fld dword [eax + esi*4]
fstp dword [ebx + 0x10]
mov eax, dword [ebp + 0xc]
call fcn.0047427b
cmp eax, 2
ja 0x48f442
add dword [esp + 0x14], 0x14
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x1c]
jl 0x48f382
xor edi, edi
cmp dword [esp + 0x28], edi
je 0x48f454
push dword [esp + 0x28]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x491d0e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4f1020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 8], 0x80004005
call edi
cmp eax, ebx
mov dword [esi + 8], eax
je 0x491d6d
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x491d6d
cmp dword [esi], ebx
jne 0x491d6d
lea eax, [esi + 4]
push eax
push ebx
push esi
push 0x491dfe
push ebx
push ebx
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
mov dword [esi], eax
je 0x491d6d
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
pop edi
xor ecx, ebp
pop ebx
call fcn.00499bb9
leave
ret
Function at 0x491eed
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x4b2fa3
call fcn.004afcf2
mov ebx, 0x400000
lea ecx, [ebp - 0x14]
call fcn.0044027b
lea ecx, [ebp - 0x10]
push str.datacleaner_trash_info_cache.dat
push ecx
xor esi, esi
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.00403aea
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040113b
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x491f48
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040113b
mov eax, esi
call fcn.004afdca
ret
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ebx, 0x4cad08
push ebx
push str.validtime
mov edi, str.common
push edi
call esi
push dword [ebp - 0x10]
push ebx
push 0x4d48b8
push edi
call esi
xor esi, esi
inc esi
jmp 0x491f35

Function at 0x491fe1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push closesocket
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x492079
push edi
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 4], ebx
mov edi, eax
jne 0x49206f
cmp edi, 0x200000
ja 0x49206f
lea eax, [edi + 2]
push esi
push eax
call fcn.004997e3
pop ecx
push ebx
mov esi, eax
lea eax, [ebp + 8]
push eax
push edi
push esi
push dword [ebp - 8]
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49206e
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x49206e
mov byte [eax + esi], bl
mov eax, dword [ebp + 8]
mov byte [eax + esi + 1], bl
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov dword [ebp - 0xc], 1
pop esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret 0xc
Function at 0x492081
Capabilities:
Check if file exists

Disassembly:
push 0x118
mov eax, 0x4b4a5e
call fcn.004afcf2
mov eax, dword [0x4f7c54]
and dword [ebp - 0x14], 0
and dword [ebp - 0x1c], 0
mov edi, ecx
mov ecx, 0x4f7c54
mov dword [ebp - 0x18], edi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4920ec
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4920ec
test edi, edi
jne 0x4920d0
mov edi, 0x80070057
jmp 0x4920d8
push edi
call fcn.00492b3a
mov edi, eax
lea eax, [esi - 0x10]
call fcn.0040113b
xor eax, eax
test edi, edi
setge al
jmp 0x49217c
lea edi, [ebx + 8]
call fcn.00453975
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
call fcn.00491fe1
test eax, eax
mov edi, dword [ebp - 0x1c]
je 0x492166
test edi, edi
je 0x492171
push edi
lea esi, [ebp - 0x120]
call fcn.0040f0bc
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.004014fa
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x120], eax
je 0x492149
push dword [ebp - 0x120]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
push 0xa
push 0xd
lea eax, [ebp - 0x10]
call fcn.0040ed18
mov esi, dword [ebp - 0x10]
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax]
mov dword [ebp - 0x14], 1
test edi, edi
je 0x492171
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
lea eax, [esi - 0x10]
call fcn.0040113b
mov eax, dword [ebp - 0x14]
call fcn.004afdca
ret 4

Function at 0x492184
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b4a30
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4f1020]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
mov eax, dword [0x4f7c54]
and dword [esp + 0x1c], 0
mov ecx, 0x4f7c54
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
and dword [esp + 0x30], 0
mov edi, dword [sym.imp.MSVCR80.dll_wcschr]
push 0x5b
push dword [ebp + 8]
call edi
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x49224d
and dword [esp + 0x18], 0
lea esi, [esp + 0x14]
call fcn.004013b3
push 0xa
push ebx
call edi
test eax, eax
pop ecx
pop ecx
jne 0x492213
push ebx
mov eax, esi
push eax
call fcn.00401797
mov dword [esp + 0x18], 1
jmp 0x492223
sub eax, ebx
sar eax, 1
inc eax
push eax
push ebx
lea eax, [esp + 0x1c]
call fcn.004017bb
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 0xc]
push dword [esp + 0x20]
lea ecx, [esp + 0x18]
lea ebx, [ebx + eax*2]
call fcn.00492272
test eax, eax
je 0x49224d
cmp dword [esp + 0x18], 0
je 0x4921e7
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.0040113b
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4928b6
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x4b27da
call fcn.004afd5b
mov ebx, ecx
mov eax, dword [0x4f7c54]
xor edi, edi
mov esi, 0x4f7c54
mov ecx, esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x18], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
mov eax, dword [0x4f7c54]
mov ecx, esi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push dword [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
je 0x4929ca
mov eax, dword [ebx]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, ebx
call dword [eax + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
lea eax, [ebp - 0x18]
push eax
push 3
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
mov byte [ebp - 0x14], 0xef
mov byte [ebp - 0x13], 0xbb
mov byte [ebp - 0x12], 0xbf
call ebx
test eax, eax
je 0x4929c1
cmp dword [ebp - 0x18], 3
jne 0x4929c1
call dword [section..data]
mov eax, dword [ebp - 0x1c]
cmp eax, edi
mov dword [ebp - 0x20], eax
je 0x49296f
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x492973
xor eax, eax
jmp 0x49298f
lea esi, [eax + eax]
mov eax, esi
call fcn.004afe10
mov eax, esp
push 0xfde9
push esi
push dword [ebp - 0x20]
mov esi, eax
call fcn.00449123
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004035b3
mov esi, dword [ebp - 0x28]
mov eax, dword [esi - 0xc]
push edi
lea ecx, [ebp - 0x18]
push ecx
push eax
push esi
push dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
call ebx
test eax, eax
je 0x4929c1
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x18], eax
jne 0x4929c1
mov dword [ebp - 0x2c], 1
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
call fcn.0040113b
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040113b
mov eax, dword [ebp - 0x2c]
lea esp, [ebp - 0x3c]
call fcn.004afdde
ret 4
Function at 0x492b3a
Capabilities:
Create directory

Disassembly:
push 0x3c
mov eax, 0x4b0e63
call fcn.004afd5b
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
push dword [eax]
lea ecx, [ebp - 0x2c]
push 0x5c
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::rfind_wchar_t__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp dword [ecx], eax
je 0x492c2c
push eax
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
cmp dword [eax + 0x18], 8
jb 0x492b92
mov eax, dword [eax + 4]
jmp 0x492b95
add eax, 4
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [ebp - 0x48]
mov esi, eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, edi
je 0x492be3
cmp esi, 0x50
je 0x492be3
cmp esi, 0xb7
je 0x492be3
cmp esi, edi
jle 0x492bca
and esi, 0xffff
or esi, 0x80070000
mov edi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
call fcn.004afdde
ret 4
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x492bef
lea eax, [ebp - 0x28]
push edi
push 0x80
push 1
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x492c23
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x492c1f
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x492bcc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x492bcc
mov edi, 0x80070057
jmp 0x492bcc
Function at 0x4934f0
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x4b6a29
call fcn.004afcf2
mov eax, dword [ebp + 8]
call fcn.00479761
mov esi, eax
test esi, esi
jne 0x49356e
push 1
push 0x30
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004794ea
add esp, 0x10
and dword [ebp - 4], esi
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x493561
push 0x10
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x493544
push dword [ebp - 0x10]
mov esi, eax
call fcn.00406195
jmp 0x493546
xor eax, eax
test eax, eax
mov esi, eax
je 0x493561
mov ecx, dword [eax + 8]
and dword [eax + 8], 0
test ecx, ecx
je 0x493561
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
xor esi, esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040113b
mov eax, esi
call fcn.004afdca
ret 4

Function at 0x4936cb
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4f1020]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push edi
mov esi, 0x103
push esi
lea eax, [ebp + 0x8d]
push 0
push eax
mov edi, ecx
mov byte [ebp + 0x8c], 0
call sub.MSVCR80.dll_memset
push esi
lea eax, [ebp - 0x77]
push 0
push eax
mov byte [ebp - 0x78], 0
call sub.MSVCR80.dll_memset
push edi
inc esi
lea eax, [ebp - 0x78]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_strcpy_s]
mov ebx, dword [sym.imp.MSVCR80.dll_strchr]
lea eax, [ebp - 0x78]
push 0x5c
push eax
call ebx
add esp, 0x2c
test eax, eax
mov dword [ebp - 0x7c], eax
lea edi, [ebp - 0x78]
je 0x4937bb
lea eax, [ebp + 0x8c]
dec eax
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x7c]
sub eax, edi
cmp byte [ebp + 0x8c], 0
push eax
push edi
lea eax, [ebp + 0x8c]
push esi
push eax
jne 0x493768
call dword [sym.imp.MSVCR80.dll_strncpy_s]
jmp 0x49376e
call dword [sym.imp.MSVCR80.dll_strncat_s]
mov edi, dword [ebp - 0x7c]
add esp, 0x10
lea eax, [ebp + 0x8c]
push eax
inc edi
call sub.MSVCR80.dll_strlen
pop ecx
mov ecx, dword [ebp - 0x80]
cmp byte [ecx + eax], 0x3a
je 0x493799
lea eax, [ebp + 0x8c]
push eax
call dword [sym.imp.MSVCR80.dll__mkdir]
pop ecx
push 0x4d49cc
lea eax, [ebp + 0x8c]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_strcat_s]
push 0x5c
push edi
call ebx
add esp, 0x14
test eax, eax
mov dword [ebp - 0x7c], eax
jne 0x493748
cmp byte [ebp + 0x8c], 0
push edi
lea eax, [ebp + 0x8c]
push esi
push eax
jne 0x4937d5
call dword [sym.imp.MSVCR80.dll_strcpy_s]
jmp 0x4937db
call dword [sym.imp.MSVCR80.dll_strcat_s]
lea eax, [ebp + 0x8c]
add esp, 0xc
push eax
call dword [sym.imp.MSVCR80.dll__mkdir]
pop ecx
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00499bb9
add ebp, 0x194
leave
ret