joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415d7e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x467c8c]
test eax, eax
je 0x415e8c
mov ecx, dword [0x467c90]
mov dl, byte [ebp + 8]
imul ecx, ecx, 0x70
mov byte [ecx + eax + 5], dl
mov eax, dword [0x467c90]
mov ecx, dword [0x467c8c]
imul eax, eax, 0x70
mov dl, byte [ebp + 0xc]
mov byte [eax + ecx], dl
mov eax, dword [0x467c90]
mov ecx, dword [0x467c8c]
imul eax, eax, 0x70
mov dx, word [ebp + 0x10]
mov word [eax + ecx + 2], dx
mov eax, dword [0x467c90]
mov ecx, dword [0x467c8c]
imul eax, eax, 0x70
push esi
mov byte [eax + ecx + 4], 0x69
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x467c94], eax
sub eax, dword [0x4683b4]
test eax, eax
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jge 0x415dff
fadd dword [0x45babc]
mov eax, dword [0x467c90]
fmul dword [0x45bab8]
mov ecx, dword [0x467c8c]
imul eax, eax, 0x70
fstp dword [eax + ecx + 8]
mov eax, dword [0x467c94]
mov dword [0x4683b4], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x467c8c]
mov esi, eax
mov eax, dword [0x467c90]
imul eax, eax, 0x70
test esi, esi
je 0x415e5a
cmp esi, dword [0x467c98]
je 0x415e53
push 0x64
lea eax, [eax + ecx + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x415e6b
mov byte [eax + ecx + 0xc], 0
jmp 0x415e6b
lea eax, [eax + ecx + 0xc]
push 0x45bab4
push eax
call fcn.00457a80
pop ecx
pop ecx
inc dword [0x467c90]
mov eax, dword [0x467c90]
cmp eax, dword [0x465070]
mov dword [0x467c98], esi
pop esi
jl 0x415e8c
and dword [0x467c90], 0
leave
ret

Function at 0x415edb
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x466208]
jne 0x415ee8
call fcn.00450529
mov eax, dword [0x469498]
mov ecx, dword [eax]
add dword [0x469498], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x415f1f
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x466208]
jne 0x415f2c
call fcn.00450529
mov eax, dword [0x469498]
mov ecx, dword [eax]
add dword [0x469498], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

Function at 0x415f61
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x466208]
jne 0x415f6f
call fcn.00450529
mov eax, dword [0x469498]
mov eax, dword [eax]
add dword [0x469498], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
test ecx, ecx
mov dword [esp], ecx
fild dword [esp]
jge 0x415fb5
fadd qword [0x45c0c0]
fmul qword [0x45c0b8]
pop ecx
ret
Function at 0x422077
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push esi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x467b78]
push 0x45bf4c
call fcn.0040184e
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0043b175
mov esi, eax
test esi, esi
je 0x422169
push dword [ebp + 8]
push esi
call fcn.0043b25e
test eax, eax
pop ecx
pop ecx
mov dword [ebp + 0x14], eax
je 0x422169
push ebx
push edi
push 0
push esi
mov byte [ebp + 0x1b], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov ebx, eax
test ebx, ebx
je 0x422105
cmp ebx, dword [0x467c9c]
je 0x422105
push esi
call fcn.0043c146
test al, al
pop ecx
jne 0x422105
push 1
push ebx
push dword [0x467c9c]
call edi
test eax, eax
setne byte [ebp + 0x1b]
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x422156
mov ecx, dword [0x467b78]
push 1
push 0
push 0xffffffffffffffff
push 0x45a734
call fcn.0040184e
mov eax, dword [0x465108]
mov eax, dword [eax + 0x58]
cmp eax, 0xffffffff
jle 0x422156
cmp eax, 0x19
jge 0x42214c
cmp byte [0x468399], 0
je 0x42214c
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x422156
push 1
push eax
call fcn.0040de6e
pop ecx
pop ecx
cmp byte [ebp + 0x1b], 0
je 0x422167
push 0
push ebx
push dword [0x467c9c]
call edi
pop edi
pop ebx
xor eax, eax
inc eax
pop esi
pop ebp
ret 0x14
Function at 0x4235ef
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov ecx, dword [0x467b78]
push ebx
push esi
push edi
xor edi, edi
inc edi
push edi
xor ebx, ebx
push ebx
push 0xffffffffffffffff
push 0x45bf4c
call fcn.0040184e
mov ecx, dword [0x46a4f8]
push edi
push ebx
push 0xffffffffffffffff
push ebx
call fcn.0040184e
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x423750
cmp byte [eax], bl
je 0x423750
mov esi, 0x105
push esi
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00439851
lea eax, [ebp - 0x120]
push eax
call fcn.00457cb0
add esp, 0x10
cmp byte [ebp + eax - 0x121], 0x5c
je 0x42367d
lea ecx, [eax + 1]
cmp ecx, esi
jae 0x423750
mov byte [ebp + eax - 0x120], 0x5c
mov byte [ebp + eax - 0x11f], bl
push edi
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
test byte [0x46b3bc], 1
jne 0x4236af
or dword [0x46b3bc], edi
push str.GetDiskFreeSpaceExA
push str.kernel32
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x46b3b8], eax
mov eax, dword [0x46b3b8]
cmp eax, ebx
je 0x4236f1
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x120]
push ecx
call eax
test eax, eax
je 0x423750
cmp byte [ebp + 0xc], bl
je 0x4236de
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
jmp 0x4236e4
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
shrd ecx, eax, 0x14
shr eax, 0x14
mov esi, ecx
mov edi, eax
jmp 0x42372c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceA]
test eax, eax
je 0x423750
cmp byte [ebp + 0xc], bl
mov eax, dword [ebp + 8]
jne 0x42371d
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 4]
imul eax, dword [ebp - 0xc]
shr eax, 0x14
mov esi, eax
xor edi, edi
mov ecx, dword [0x467b78]
push 1
push ebx
push 0xffffffffffffffff
push 0x45a734
call fcn.0040184e
mov ecx, dword [0x46a4f8]
push edi
push esi
call fcn.00401d5e
jmp 0x423752
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4239ea
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
xor edi, edi
inc edi
push edi
push 0
push 0xffffffffffffffff
mov dword [ebp - 4], ecx
mov ecx, dword [0x467b78]
mov ebx, 0x45bf4c
push ebx
call fcn.0040184e
mov esi, dword [ebp + 8]
test esi, esi
je 0x423a43
cmp byte [esi], 0
je 0x423a43
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x423a4c
test al, 0x10
je 0x423a43
mov ecx, dword [0x467b78]
push edi
push 0
push 0xffffffffffffffff
push 0x45a734
call fcn.0040184e
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
push 0x5c
push esi
call fcn.00458440
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jbe 0x423aac
push esi
call fcn.00457cb0
cmp eax, 0x104
pop ecx
jae 0x423aa7
mov eax, edi
sub eax, esi
inc eax
push eax
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00439851
mov ecx, dword [ebp - 4]
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call fcn.004239ea
cmp byte [edi + 1], 0
je 0x423aa7
mov ecx, dword [0x467b78]
push 1
call fcn.00401e61
cmp byte [eax], 0x31
jne 0x423aac
xor eax, eax
inc eax
jmp 0x423a45
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
je 0x423abe
mov ebx, 0x45a734
mov ecx, dword [0x467b78]
push 1
push 0
push 0xffffffffffffffff
push ebx
call fcn.0040184e
jmp 0x423a45
Function at 0x423ad5
Capabilities:
Check for time delay via gettickcount
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push ebx
push esi
mov esi, dword [0x46a4a8]
push edi
push 1
xor ebx, ebx
push ebx
push 0xffffffffffffffff
mov edi, ecx
mov ecx, dword [0x467b78]
push 0x45bf4c
call fcn.0040184e
cmp byte [esi], bl
je 0x423c77
push 0x45f510
push esi
call fcn.00439b0d
test eax, eax
pop ecx
pop ecx
jne 0x423b42
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
je 0x423c77
mov ecx, dword [0x467b78]
push 1
push ebx
push 0xffffffffffffffff
push 0x45a734
call fcn.0040184e
jmp 0x423c77
push ebx
mov ecx, edi
call fcn.0040c597
cmp eax, 0x104
jae 0x423c77
lea eax, [ebp - 0x26c]
push eax
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x423b77
push 0x18
push ebx
push ebx
jmp 0x423c6c
lea eax, [ebp - 0x12c]
push esi
push eax
call fcn.00457a80
lea eax, [ebp - 0x12c]
push 0x5c
push eax
call fcn.00458440
add esp, 0x10
cmp eax, ebx
je 0x423bab
mov byte [eax + 1], bl
lea eax, [ebp - 0x12c]
push eax
call fcn.00457cb0
pop ecx
jmp 0x423bb3
mov byte [ebp - 0x12c], bl
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
lea ecx, [ebp + eax - 0x12c]
mov esi, 0x103
mov dword [ebp - 0xc], ecx
sub esi, eax
call edi
sub eax, dword [0x4681ac]
mov ecx, dword [0x465108]
cmp eax, dword [ecx + 0xb0]
jbe 0x423c04
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x423bfd
push 1
push 0xffffffffffffffff
call fcn.0040de6e
pop ecx
pop ecx
call edi
mov dword [0x4681ac], eax
test byte [ebp - 0x26c], 0x10
jne 0x423c43
lea eax, [ebp - 0x240]
push eax
call fcn.00457cb0
cmp eax, esi
pop ecx
ja 0x423c40
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0xc]
call fcn.00457a80
pop ecx
pop ecx
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x423c43
inc dword [ebp - 4]
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x423bca
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [ebp - 4]
cdq
push 0x18
push edx
push eax
mov ecx, dword [0x467b78]
call fcn.00401c1f
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x423c7f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov ecx, dword [0x467b78]
push ebx
push edi
xor edi, edi
inc edi
push edi
xor ebx, ebx
push ebx
push 0xffffffffffffffff
push 0x45bf4c
call fcn.0040184e
mov ecx, dword [0x46a4f8]
push edi
push ebx
push 0xffffffffffffffff
push ebx
call fcn.0040184e
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x423d01
cmp byte [eax], bl
je 0x423d01
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x423d01
mov ecx, dword [0x467b78]
push edi
push ebx
push 0xffffffffffffffff
push 0x45a734
call fcn.0040184e
push edi
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
lea eax, [ebp - 0x80]
push eax
call fcn.0043a06a
pop ecx
pop ecx
mov ecx, dword [0x46a4f8]
push eax
call fcn.0040184e
jmp 0x423d03
mov eax, edi
pop edi
pop ebx
leave
ret 4
Function at 0x42425c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10030
call fcn.00458250
mov eax, dword [0x46a4f8]
mov ecx, dword [0x467b78]
push ebx
push esi
push edi
xor esi, esi
inc esi
push esi
xor ebx, ebx
push ebx
push 0xffffffffffffffff
push 0x45bf4c
mov dword [ebp - 0xc], eax
call fcn.0040184e
push dword [ebp + 0xc]
call fcn.00401f02
mov edi, edx
cmp edi, ebx
pop ecx
mov dword [ebp - 0x14], eax
jg 0x4242ad
jl 0x42438d
cmp eax, esi
jb 0x42438d
push 0x45d08c
push dword [ebp + 8]
call fcn.0043eb88
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
je 0x42438d
cmp edi, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
jl 0x42434d
jg 0x4242d8
cmp dword [ebp - 0x14], ebx
jbe 0x42434d
push dword [ebp + 0xc]
lea eax, [ebp - 0x10030]
push 0xffff
push eax
call fcn.0043eb07
add esp, 0xc
test eax, eax
je 0x424384
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x4681ac]
mov ecx, dword [0x465108]
cmp eax, dword [ecx + 0xb0]
jbe 0x424338
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x42432d
push esi
push 0xffffffffffffffff
call fcn.0040de6e
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x4681ac], eax
add dword [ebp - 8], esi
adc dword [ebp - 4], ebx
cmp dword [ebp - 4], edi
jl 0x4242d8
jg 0x42434d
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 8], eax
jb 0x4242d8
push dword [ebp + 0xc]
call fcn.0043ea10
lea eax, [ebp - 0x10030]
push eax
call fcn.00457cb0
cmp eax, ebx
pop ecx
pop ecx
je 0x42437d
cmp byte [ebp + eax - 0x10031], 0xa
jne 0x424379
dec eax
mov byte [ebp + eax - 0x10030], bl
cmp eax, ebx
jne 0x424391
push esi
push ebx
push 0xffffffffffffffff
push ebx
jmp 0x42439b
push dword [ebp + 0xc]
call fcn.0043ea10
pop ecx
mov eax, esi
jmp 0x4243bb
push esi
push ebx
push eax
lea eax, [ebp - 0x10030]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.0040184e
test eax, eax
je 0x4243bb
mov ecx, dword [0x467b78]
push esi
push ebx
push 0xffffffffffffffff
push 0x45a734
call fcn.0040184e
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42b61c
Capabilities:
Create shortcut via ishelllink
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov ecx, dword [0x467b78]
push ebx
push edi
xor edi, edi
inc edi
push edi
xor ebx, ebx
push ebx
push 0xffffffffffffffff
push 0x45bf4c
call fcn.0040184e
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push 0x46090c
push edi
push ebx
push 0x46091c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x42b780
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp + 0x10]
cmp byte [eax], bl
je 0x42b682
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x24]
mov ecx, dword [ebp + 0x14]
cmp byte [ecx], bl
je 0x42b693
mov eax, dword [ebp - 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x2c]
mov ecx, dword [ebp + 0x18]
cmp byte [ecx], bl
je 0x42b6a4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x1c]
push esi
mov esi, dword [ebp + 0x1c]
cmp byte [esi], bl
je 0x42b6ca
mov eax, dword [ebp + 0x24]
cmp byte [eax], bl
je 0x42b6bd
push eax
call fcn.0040137d
pop ecx
dec eax
jmp 0x42b6bf
xor eax, eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push eax
push esi
push ecx
call dword [edx + 0x44]
mov esi, dword [ebp + 0x20]
cmp byte [esi], bl
je 0x42b6fc
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push edi
push ebx
push ebx
push esi
call fcn.00415b93
add esp, 0x14
cmp al, bl
je 0x42b6fc
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
movzx ax, al
or eax, 0x600
push eax
push ecx
call dword [edx + 0x34]
mov eax, dword [ebp + 0x28]
cmp byte [eax], bl
je 0x42b716
mov ecx, dword [ebp - 4]
mov esi, dword [ecx]
push eax
call fcn.0040137d
pop ecx
push eax
push dword [ebp - 4]
call dword [esi + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push 0x46093c
push eax
call dword [ecx]
test eax, eax
pop esi
jl 0x42b777
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push edi
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x42b76e
mov ecx, dword [0x467b78]
push edi
push ebx
push 0xffffffffffffffff
push 0x45a734
call fcn.0040184e
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
pop edi
pop ebx
leave
ret 0x24
Function at 0x42c368
Capabilities:
Check for time delay via gettickcount
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9a4
push esi
lea eax, [ebp - 0x234]
push eax
push dword [ebp + 8]
call fcn.0042c23f
lea eax, [ebp - 0x584]
push eax
push dword [ebp + 0xc]
call fcn.0042c23f
lea eax, [ebp - 0x234]
push eax
call fcn.0042c8de
add esp, 0x14
test al, al
mov esi, str..
je 0x42c3b7
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.00457a90
pop ecx
pop ecx
lea eax, [ebp - 0x584]
push eax
call fcn.0042c8de
test al, al
pop ecx
je 0x42c3d7
lea eax, [ebp - 0x584]
push esi
push eax
call fcn.00457a90
pop ecx
pop ecx
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x42c3fa
xor eax, eax
jmp 0x42c57f
push ebx
push edi
lea eax, [ebp - 0x9a4]
push eax
lea eax, [ebp - 0x89c]
push eax
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0x794]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00441cb7
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0x794]
push eax
push str._s_s
lea eax, [ebp - 0x12c]
push 0x105
push eax
call fcn.0040a6d3
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, 0x104
add esp, 0x28
sub esi, eax
and dword [ebp - 4], 0
lea ebx, [ebp + eax - 0x12c]
call edi
sub eax, dword [0x4681ac]
mov ecx, dword [0x465108]
cmp eax, dword [ecx + 0xb0]
jbe 0x42c49f
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x42c498
push 1
push 0xffffffffffffffff
call fcn.0040de6e
pop ecx
pop ecx
call edi
mov dword [0x4681ac], eax
test byte [ebp - 0x47c], 0x10
jne 0x42c559
lea eax, [ebp - 0x450]
push eax
call fcn.00457cb0
cmp eax, esi
pop ecx
ja 0x42c556
lea eax, [ebp - 0x450]
push eax
push ebx
call fcn.00457a80
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x584]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.0042c65e
add esp, 0x14
cmp byte [ebp + 0x14], 0
je 0x42c535
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
test eax, eax
jne 0x42c559
cmp byte [ebp + 0x10], al
je 0x42c556
lea eax, [ebp - 0x33c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
je 0x42c556
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
jmp 0x42c552
xor eax, eax
cmp byte [ebp + 0x10], al
sete al
push eax
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
jne 0x42c559
inc dword [ebp - 4]
lea eax, [ebp - 0x47c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x42c463
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x42c582
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42c5f2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
dec eax
dec eax
je 0x42c5e2
dec eax
jne 0x42c5fa
push edi
call fcn.00457cb0
cmp eax, 0x104
pop ecx
ja 0x42c5fa
add eax, 4
and eax, 0xfffffffc
call fcn.00458250
mov esi, esp
push edi
push esi
call fcn.00457a80
push 0x5c
push esi
call fcn.00458440
add esp, 0x10
test eax, eax
je 0x42c5fa
push esi
mov byte [eax], 0
call fcn.0042c582
test al, al
pop ecx
je 0x42c5fa
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
setne al
jmp 0x42c5fc
test al, 0x10
je 0x42c5fa
mov al, 1
jmp 0x42c5fc
xor al, al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push esi
mov esi, dword [ebp + 8]
push 0x2a
push esi
call fcn.00457de0
test eax, eax
pop ecx
pop ecx
jne 0x42c63b
push 0x3f
push esi
call fcn.00457de0
test eax, eax
pop ecx
pop ecx
jne 0x42c63b
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
jmp 0x42c65b
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x42c652
xor al, al
jmp 0x42c65b
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, 1
pop esi
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42c8f5
test al, 0x10
je 0x42c8f5
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x42c8f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 8]
call fcn.0042c23f
lea eax, [ebp - 0x230]
push eax
push dword [ebp + 0xc]
call fcn.0042c23f
lea eax, [ebp - 0x128]
push eax
call fcn.0042c8de
add esp, 0x14
test al, al
jne 0x42c934
leave
ret
push esi
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor esi, esi
inc esi
cmp eax, 0xffffffff
je 0x42c960
test al, 0x10
je 0x42c959
cmp dword [ebp + 0x10], esi
je 0x42c960
cmp dword [ebp + 0x10], 2
je 0x42c960
xor al, al
jmp 0x42ca17
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0042c844
test al, al
pop ecx
pop ecx
je 0x42c9a5
push esi
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0042c284
add esp, 0xc
test al, al
je 0x42c959
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0042ca1a
pop ecx
pop ecx
jmp 0x42ca17
lea eax, [ebp - 0x128]
push edi
push eax
call fcn.00457cb0
mov byte [ebp + eax - 0x127], 0
lea eax, [ebp - 0x230]
push eax
call fcn.00457cb0
and dword [ebp - 0x20], 0
pop ecx
pop ecx
mov byte [ebp + eax - 0x22f], 0
push 6
xor eax, eax
cmp dword [ebp + 0x10], 2
pop ecx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x10], 0x614
pop edi
jne 0x42ca08
mov word [ebp - 0x10], 0x615
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop esi
leave
ret

Function at 0x42ca1a
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 8]
call fcn.0042c23f
lea eax, [ebp - 0x128]
push eax
call fcn.0042c8de
add esp, 0xc
test al, al
jne 0x42ca47
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x128]
push eax
jne 0x42ca63
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
setne al
jmp 0x42caa4
call fcn.00457cb0
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x128]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 3
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop ebx
leave
ret