joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425b10
Capabilities:
Get disk information
Get file system object information

Disassembly:
sub esp, 0x564
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x560], eax
mov eax, dword [esp + 0x568]
push esi
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x4001
mov esi, ecx
push 0x160
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x4b2160
mov dword [esi], eax
call edi
test eax, eax
jne 0x425b81
lea edx, [esp + 0x168]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0x4001
push 0x160
lea eax, [esp + 0x10]
push eax
push 0
lea ecx, [esp + 0x178]
push ecx
call edi
mov edx, dword [esi]
push eax
push 0
push 0x1109
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x568]
pop edi
pop esi
xor ecx, esp
call fcn.0049dea6
add esp, 0x564
ret 4

Function at 0x426000
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x164
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push esi
mov esi, dword [esp + 0x170]
push edi
mov edi, dword [esp + 0x178]
push 0x4009
push 0x160
lea eax, [esp + 0x14]
push eax
push 0
push esi
call ebx
mov ecx, dword [esp + 0x10]
push 0x400b
push 0x160
lea edx, [esp + 0x14]
push edx
push 0
push esi
mov dword [edi + 0x18], ecx
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x16c]
mov dword [edi + 0x1c], eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049dea6
add esp, 0x164
ret 8
Function at 0x427320
Capabilities:
Delete file
Log keystrokes via polling

Disassembly:
mov eax, 0x1450
call fcn.0049e430
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x144c], eax
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push 0
push 9
mov edi, ecx
mov eax, dword [edi]
push 0x110a
push eax
call esi
test eax, eax
je 0x42752c
mov edx, dword [edi]
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x110c
push edx
mov dword [esp + 0x38], 4
mov dword [esp + 0x3c], eax
call esi
test eax, eax
je 0x42752c
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x42752c
xor ecx, ecx
lea esi, [eax + 8]
lea edx, [esp + 0x854]
mov word [esp + 0xc54], cx
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x42752c
mov eax, dword [0x4c7530]
test eax, eax
je 0x4273c5
mov edx, dword [esi]
lea ecx, [esp + 0xc54]
push ecx
push edx
call eax
cmp word [esp + 0xc54], 0
jne 0x4273ea
push 0x1000000
lea eax, [esp + 0xc58]
push eax
lea ecx, [esp + 0x85c]
push ecx
call fcn.0046d7e0
push ebx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
shr ebx, 0xf
not bl
and bl, 1
call fcn.0043ca60
test eax, eax
je 0x4274a7
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x42752b
push str.SHFileOperationW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x42752b
push 0x400
lea edx, [esp + 0xc5c]
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.00465360
lea ecx, [esp + 0x54]
push ecx
call fcn.0046dac0
xor edx, edx
mov word [esp + eax*2 + 0x56], dx
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x28], ax
movzx eax, bl
neg eax
sbb eax, eax
lea edx, [esp + 0xc]
and eax, 0x40
lea ecx, [esp + 0x54]
push edx
mov dword [esp + 0x14], 3
mov word [esp + 0x20], ax
mov dword [esp + 0x18], ecx
call esi
jmp 0x42751f
push 0x400
lea eax, [esp + 0x85c]
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.00465320
lea eax, [esp + 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4274c5
sub eax, edx
mov byte [esp + eax + 0x55], cl
xor eax, eax
movzx edx, bl
neg edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
sbb edx, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x28], ax
lea ecx, [esp + 0xc]
and edx, 0x40
lea eax, [esp + 0x54]
push ecx
mov dword [esp + 0x14], 3
mov word [esp + 0x20], dx
mov dword [esp + 0x18], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
movzx edx, byte [edi + 8]
push edx
mov ecx, edi
call fcn.00427240
pop ebx
mov ecx, dword [esp + 0x1454]
pop edi
pop esi
xor ecx, esp
call fcn.0049dea6
add esp, 0x1450
ret
Function at 0x428130
Capabilities:
Get common file path

Disassembly:
sub esp, 0x404
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x408]
push ebx
push esi
push edi
mov edi, dword [esp + 0x418]
mov ebx, ecx
test eax, eax
je 0x428164
cmp byte [eax], 0
je 0x428164
mov esi, eax
jmp 0x428166
xor esi, esi
push edi
push 0x1f6
call fcn.0045bde0
push eax
push esi
call fcn.00445390
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x4281fe
mov eax, edi
lea edx, [eax + 1]
jmp 0x428190
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428190
sub eax, edx
push edi
mov esi, eax
call fcn.0044e870
test al, al
jne 0x4281cd
lea eax, [esp + 0xc]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0xc]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4281c0
sub eax, edx
lea esi, [esi + eax + 1]
cmp esi, 0x104
jbe 0x4281fe
push 0x104
push 0x564
call fcn.0045bde0
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0049deb5
add esp, 0xc
push 1
lea edx, [esp + 0x10]
push edx
call fcn.0048c9c0
mov ecx, ebx
call fcn.00427d40
mov ecx, dword [esp + 0x40c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049dea6
add esp, 0x404
ret 8
Function at 0x42e270
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4ae02b
mov eax, dword fs:[0]
push eax
mov eax, 0x24c4
call fcn.0049e430
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x24c0], eax
push ebx
push esi
push edi
mov eax, dword [0x4c0390]
xor eax, esp
push eax
lea eax, [esp + 0x24d4]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24e4]
mov esi, dword [esp + 0x24e8]
lea ecx, [esp + 0xc24]
call fcn.004680a0
lea ecx, [esp + 0xc48]
call fcn.004680a0
lea ecx, [esp + 0xc6c]
call fcn.004680a0
push 0
lea eax, [esp + 0x14]
push eax
push esi
push edi
call fcn.004332b0
test al, al
je 0x42e48b
cmp byte [esp + 0x10], 0
je 0x42e48b
cmp byte [esp + 0xc90], 0
je 0x42e48b
lea ecx, [esp + 0xc90]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0044db30
push eax
call fcn.004652e0
test eax, eax
je 0x42e48b
lea eax, [esp + 0xc90]
push eax
push edi
call fcn.0044db30
push eax
call fcn.004652e0
test eax, eax
jne 0x42e48b
xor esi, esi
lea ecx, [ecx]
push 0x400
push edi
lea ecx, [esp + 0x1cd8]
push ecx
call fcn.00465320
push esi
push str.rtmp_d
lea edx, [esp + 0x1cd8]
push edx
call fcn.0044db30
push eax
call fcn.0049deb5
add esp, 0xc
push 0
lea eax, [esp + 0x1cd4]
push eax
call fcn.0042f950
test al, al
je 0x42e39d
add esi, 0x7b
cmp esi, 0x2710
jl 0x42e350
push 0
lea ecx, [esp + 0x1cd4]
push ecx
call fcn.0042f950
test al, al
jne 0x42e48b
push 0x400
push edi
lea edx, [esp + 0x20d8]
push edx
call fcn.00465320
lea eax, [esp + 0x10]
push eax
call fcn.0044db30
lea ecx, [esp + 0x20d0]
push ecx
mov esi, eax
call fcn.0044db30
mov cl, byte [esi]
mov byte [eax], cl
inc esi
inc eax
test cl, cl
jne 0x42e3e0
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea edx, [esp + 0x1cd0]
push edx
lea eax, [esp + 0x20d4]
push eax
call esi
test eax, eax
je 0x42e48b
lea ecx, [esp + 0x10b0]
call fcn.0042e760
mov dword [esp + 0x24dc], 0
push 0
push edi
xor bl, bl
call fcn.0042f950
test al, al
jne 0x42e442
push 1
push 0
push edi
lea ecx, [esp + 0x10bc]
call fcn.0042ecb0
mov bl, al
lea ecx, [esp + 0x20d0]
push ecx
lea edx, [esp + 0x1cd4]
push edx
call esi
test bl, bl
je 0x42e470
lea ecx, [esp + 0x10b0]
call fcn.0042e7e0
lea ecx, [esp + 0x10b0]
call fcn.0042e890
mov dword [esp + 0x24dc], 0xffffffff
lea ecx, [esp + 0x10b0]
call fcn.0042eb20
mov al, 1
jmp 0x42e48d
xor al, al
mov ecx, dword [esp + 0x24d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24c0]
xor ecx, esp
call fcn.0049dea6
add esp, 0x24d0
ret 8
Function at 0x42eb50
Capabilities:
Check if file exists

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
cmp byte [esi + 0x16], 0
push edi
mov dword [esi + 0xc18], 0
mov al, 1
jne 0x42eb6c
mov al, byte [esp + 0x1c]
cmp byte [esp + 0x20], 0
mov dword [esp + 0x1c], CreateStatusWindowA
je 0x42eb83
mov dword [esp + 0x1c], 0xc0000000
mov ebp, 1
test al, al
je 0x42eb91
mov ebp, 3
xor eax, eax
cmp byte [esi + 0x15], al
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.0043ca60
mov ebx, dword [esp + 0x18]
test eax, eax
je 0x42ebd2
test ebx, ebx
je 0x42ebd2
cmp word [ebx], 0
je 0x42ebd2
mov ecx, dword [esp + 0x1c]
push 0
push edi
push 3
push 0
push ebp
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, dword [esp + 0x14]
jmp 0x42ebea
mov edx, dword [esp + 0x1c]
push 0
push edi
push 3
push 0
push ebp
mov ebp, dword [esp + 0x28]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42ec06
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x42ec06
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne al
mov byte [esi + 0x12], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [esp + 0x1c], al
test al, al
je 0x42ec77
mov dword [esi + 4], edi
test ebx, ebx
je 0x42ec39
push ebx
lea eax, [esi + 0x418]
push eax
call fcn.0046dae0
jmp 0x42ec42
xor ecx, ecx
mov word [esi + 0x418], cx
lea edx, [esi + 0x17]
test ebp, ebp
je 0x42ec5c
mov eax, ebp
sub edx, ebp
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x42ec50
jmp 0x42ec68
push 0x1000000
push edx
push ebx
call fcn.0046d7a0
mov eax, dword [esi + 4]
push eax
mov ecx, esi
call fcn.0042e7b0
mov al, byte [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
ret 0x10

Function at 0x42edf0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
push edi
mov edi, dword [esp + 0x14]
jne 0x42ee17
cmp edi, 0x4e20
jbe 0x42ee0c
mov edi, 0x4e20
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42ee88
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x42ee66
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x42ee4b
cmp eax, 3
jne 0x42ee66
cmp edi, 0x4e20
jbe 0x42ee66
push 0x4e20
push ebx
mov ecx, esi
call fcn.0042edf0
pop edi
pop esi
pop ebx
ret 8
cmp dword [esi + 0xc], 1
jne 0x42ee7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x42ee7f
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret 8
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
Function at 0x42f170
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x28]
push esi
mov esi, ecx
test ebx, ebx
je 0x42f376
mov eax, dword [esi + 0xc]
test eax, eax
je 0x42f1ae
sub eax, 1
je 0x42f1a3
sub eax, 1
jne 0x42f1ae
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push ebp
mov dword [esi + 4], eax
push edi
jmp 0x42f1d0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebp
push edi
jmp 0x42f1d0
mov ebx, dword [esp + 0x34]
jmp 0x42f1d0
cmp dword [esi + 0xc], 0
mov dword [esp + 0x10], 0
je 0x42f224
xor edi, edi
test ebx, ebx
jbe 0x42f249
mov eax, ebx
sub eax, edi
cmp eax, 0x4000
jb 0x42f1f4
mov eax, 0x4000
mov edx, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 4]
push eax
lea eax, [edi + edx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
je 0x42f249
add edi, 0x4000
cmp edi, ebx
jb 0x42f1e4
jmp 0x42f241
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
jne 0x42f370
cmp byte [esi + 0x14], 0
je 0x42f370
cmp dword [esi + 0xc], 0
jne 0x42f370
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.0042e990
mov ebx, eax
lea eax, [esi + 0x17]
push eax
mov dword [esp + 0x2c], edx
call fcn.0042f800
push edi
mov dword [esp + 0x20], eax
mov ebp, edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp ebp, eax
mov ebp, dword [esp + 0x34]
jb 0x42f2d2
ja 0x42f29a
cmp dword [esp + 0x1c], ebp
jbe 0x42f2d2
mov edi, dword [esp + 0x28]
mov edx, ebx
sub edx, ebp
mov ecx, edi
sbb ecx, eax
test ecx, ecx
jg 0x42f2d2
jl 0x42f2b1
cmp edx, 0xffffffff
ja 0x42f2d2
mov ecx, ebp
add ecx, ebx
adc eax, edi
mov dword [esp + 0x18], eax
js 0x42f2d2
jg 0x42f2c4
cmp ecx, 0xffffffff
jbe 0x42f2d2
lea eax, [esi + 0x17]
push eax
mov ecx, 0x4c9364
call fcn.00427f20
push 0
lea edi, [esi + 0x17]
push edi
mov ecx, 0x4c9364
call fcn.00427f70
test al, al
je 0x42f360
mov eax, dword [esp + 0x10]
cmp eax, ebp
jae 0x42f1c0
test eax, eax
jbe 0x42f1c0
mov ecx, esi
call fcn.0042e990
mov ecx, dword [esp + 0x10]
xor ebx, ebx
sub eax, ecx
mov ecx, dword [esi + 4]
sbb edx, ebx
cmp ecx, 0xffffffff
je 0x42f1c0
mov ebx, edx
push 0
mov dword [esp + 0x18], edx
lea edx, [esp + 0x18]
push edx
push eax
push ecx
sar ebx, 0x1f
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x42f1c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42f1c0
cmp byte [esi + 0x14], 0
je 0x42f1c0
push edi
mov ecx, 0x4c9364
call fcn.00428030
jmp 0x42f1c0
lea eax, [esi + 0x17]
push eax
push 0
mov ecx, 0x4c9364
call fcn.00428340
pop edi
mov byte [esi + 8], 1
pop ebp
pop esi
pop ebx
add esp, 0x1c
ret 8
Function at 0x42f780
Capabilities:
Get disk information

Disassembly:
sub esp, 0x404
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x408]
lea ecx, [esp]
push ecx
push eax
call fcn.0044da50
movsx edx, byte [esp]
neg edx
sbb edx, edx
lea eax, [esp]
and edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x42f7dc
cmp eax, 5
je 0x42f7dc
xor eax, eax
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0049dea6
add esp, 0x404
ret 4
mov ecx, dword [esp + 0x400]
xor ecx, esp
mov eax, 1
call fcn.0049dea6
add esp, 0x404
ret 4

Function at 0x42f800
Capabilities:
Get disk size

Disassembly:
sub esp, 0x42c
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x428], eax
push esi
mov esi, dword [esp + 0x434]
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.0044da50
cmp dword [0x4c7d44], 0
jne 0x42f85d
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x42f850
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c7d44], eax
cmp dword [0x4c7d44], 0
je 0x42f8de
push 0x400
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.0044dff0
lea edx, [esp + 0x1c]
push edx
movsx edx, byte [esp + 0x30]
lea eax, [esp + 0x28]
push eax
neg edx
lea ecx, [esp + 0xc]
sbb edx, edx
lea eax, [esp + 0x34]
push ecx
and edx, eax
push edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [0x4c7d44]
test eax, eax
je 0x42f8de
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0x20]
ja 0x42f8de
push 1
push 0
push 0
push eax
call fcn.0049ea60
mov ecx, dword [esp + 4]
xor esi, esi
add eax, ecx
adc edx, esi
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.0049dea6
add esp, 0x42c
ret 4
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
movsx eax, byte [esp + 0x34]
lea ecx, [esp + 0x14]
push ecx
neg eax
lea edx, [esp + 0x20]
sbb eax, eax
lea ecx, [esp + 0x38]
push edx
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x42f92b
mov eax, 0x163e00
xor edx, edx
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.0049dea6
add esp, 0x42c
ret 4
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x42c]
mul dword [esp + 0x10]
pop esi
xor ecx, esp
call fcn.0049dea6
add esp, 0x42c
ret 4

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

Disassembly:
call fcn.0043ca60
test eax, eax
je 0x42f97b
mov eax, dword [esp + 8]
test eax, eax
je 0x42f97b
cmp word [eax], 0
je 0x42f97b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret 8
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret 8

Function at 0x42f9f0
Capabilities:
Get file attributes

Disassembly:
call fcn.0043ca60
test eax, eax
je 0x42fa11
mov eax, dword [esp + 8]
test eax, eax
je 0x42fa11
cmp word [eax], 0
je 0x42fa11
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
ret 8
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8
Function at 0x42fa20
Capabilities:
Set file attributes

Disassembly:
call fcn.0043ca60
test eax, eax
je 0x42fa4b
mov eax, dword [esp + 8]
test eax, eax
je 0x42fa4b
cmp word [eax], 0
je 0x42fa4b
mov ecx, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret 0xc
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret 0xc

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

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
mov eax, edi
lea edx, [eax + 1]
jmp 0x42fbd0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fbd0
sub eax, edx
mov ebx, eax
cmp ebx, 6
ja 0x42fbe7
pop edi
xor eax, eax
pop ebx
ret 4
push ebp
push esi
call fcn.0049ed5d
mov ebp, eax
lea eax, [ebx + edi - 6]
xor esi, esi
mov dword [esp + 0x14], eax
lea ebx, [ebx + edi - 4]
mov edi, edi
mov edx, dword [esp + 0x14]
lea ecx, [esi + ebp]
push ecx
push str._06u
push edx
call fcn.0049deb5
add esp, 0xc
mov byte [ebx], 0x2e
call fcn.0043ca60
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42fc35
cmp esi, 0x3e8
je 0x42fc3e
inc esi
jmp 0x42fc00
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
ret 4
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
ret 4

Function at 0x42fc50
Capabilities:
Move file

Disassembly:
mov eax, 0x1004
call fcn.0049e430
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
mov ebp, dword [esp + 0x1018]
push esi
mov esi, dword [esp + 0x1018]
push edi
mov edi, dword [esp + 0x1024]
call fcn.0043ca60
test eax, eax
je 0x42fcca
test esi, esi
je 0x42fc9b
cmp word [esi], 0
jne 0x42fca5
test edi, edi
je 0x42fcca
cmp word [edi], 0
je 0x42fcca
lea eax, [esp + 0x10]
push eax
push edi
push ebp
call fcn.0044daf0
push eax
lea ecx, [esp + 0x814]
push ecx
push esi
push ebx
call fcn.0044daf0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x42fcd2
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
test eax, eax
pop ebp
setne al
pop ebx
xor ecx, esp
call fcn.0049dea6
add esp, 0x1004
ret 0x10
Function at 0x42fed0
Capabilities:
Delete file

Disassembly:
sub esp, 0xc2c
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0xc28], eax
push esi
mov esi, dword [esp + 0xc38]
push edi
mov edi, dword [esp + 0xc38]
call fcn.0043ca60
test eax, eax
je 0x42ff3b
test esi, esi
je 0x42ff3b
cmp word [esi], 0
je 0x42ff3b
lea eax, [esp + 0x42c]
push eax
push esi
call fcn.0042fb00
lea ecx, [esp + 0x42c]
push ecx
call fcn.0046dac0
xor edx, edx
mov word [esp + eax*2 + 0x42e], dx
lea eax, [esp + 0x42c]
push eax
call fcn.0042fe50
jmp 0x42ffaa
lea ecx, [esp + 0x28]
push ecx
push edi
call fcn.0042fa70
lea eax, [esp + 0x28]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42ff50
sub eax, edx
mov byte [esp + eax + 0x29], cl
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 8], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
lea ecx, [esp + 8]
mov edx, 0x54
lea eax, [esp + 0x28]
push ecx
mov dword [esp + 0x10], 3
mov word [esp + 0x1c], dx
mov dword [esp + 0x14], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0xc30]
pop edi
pop esi
xor ecx, esp
call fcn.0049dea6
add esp, 0xc2c
ret 8

Function at 0x430040
Capabilities:
Delete directory

Disassembly:
sub esp, 0xc24
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0xc20], eax
push ebx
push ebp
mov ebp, dword [esp + 0xc30]
push esi
push edi
mov edi, dword [esp + 0xc3c]
push ebp
lea ebx, [esp + 0x420]
lea esi, [esp + 0x14]
call fcn.0042ffd0
test al, al
je 0x4300a1
call fcn.0043ca60
test eax, eax
je 0x43009a
cmp word [esp + 0x41c], 0
je 0x43009a
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4300c4
lea ecx, [esp + 0x10]
push ecx
jmp 0x4300be
call fcn.0043ca60
test eax, eax
je 0x4300bd
test edi, edi
je 0x4300bd
cmp word [edi], 0
je 0x4300bd
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4300c4
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0xc30]
pop edi
pop esi
test eax, eax
pop ebp
setne al
pop ebx
xor ecx, esp
call fcn.0049dea6
add esp, 0xc24
ret 8

Function at 0x4301e0
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
push edi
call fcn.0043ca60
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x430208
test esi, esi
je 0x430208
cmp word [esi], 0
je 0x430208
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x430211
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x43022f
cmp byte [esp + 0x14], 0
je 0x430228
mov eax, dword [esp + 0x18]
push eax
push esi
push edi
call fcn.0042fa20
pop edi
xor eax, eax
pop esi
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x430244
cmp eax, 3
mov eax, 1
jne 0x430249
mov eax, 2
pop edi
pop esi
ret 0x10