joyce8/EMBER2024-capa huggingface dataset:
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 0x425789
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
mov esi, dword [0x46a4f8]
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
push ebx
push ebx
push dword [ebp + 8]
call fcn.00415b93
add esp, 0x14
cmp al, bl
mov byte [ebp - 4], al
jne 0x425806
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00422c60
add esp, 0xc
cmp eax, ebx
jne 0x4257da
push 1
push ebx
push 0xffffffffffffffff
push 0x45a5d8
jmp 0x425848
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x14], ecx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
push eax
call fcn.0041ef28
fstp st(0)
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00401b93
jmp 0x42584f
mov eax, dword [ebp + 0xc]
movsx eax, byte [eax]
push eax
call fcn.00442990
cmp eax, 0x50
pop ecx
je 0x425826
cmp eax, 0x54
je 0x425821
xor eax, eax
jmp 0x425829
push 2
pop eax
jmp 0x425829
xor eax, eax
inc eax
push eax
push dword [ebp - 4]
call fcn.0041f2fa
pop ecx
test al, al
pop ecx
mov eax, 0x45f2d0
jne 0x425842
mov eax, 0x45f2cc
push 1
push ebx
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.0040184e
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 0x42ba88
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
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
call fcn.0040184e
mov ecx, dword [0x46a4f8]
push esi
push ebx
push 0xffffffffffffffff
push ebx
call fcn.0040184e
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x42bb89
cmp byte [edi], bl
je 0x42bb89
lea eax, [ebp - 8]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x42bb89
push eax
call fcn.0043f68a
pop ecx
mov esi, eax
push esi
push dword [ebp + 8]
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x45cae8
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x42bb1c
push esi
call fcn.0043ec47
xor eax, eax
pop ecx
inc eax
jmp 0x42bb8b
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov edi, ecx
mov edx, 0xffff
and edi, edx
push edi
shr ecx, 0x10
push ecx
mov ecx, eax
and ecx, edx
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
lea eax, [ebp - 0x8c]
push 0x80
push eax
call fcn.0040a6d3
push esi
call fcn.0043ec47
mov ecx, dword [0x467b78]
add esp, 0x20
push 1
push ebx
push 0xffffffffffffffff
push 0x45a734
call fcn.0040184e
mov ecx, dword [0x46a4f8]
push 1
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x8c]
push eax
call fcn.0040184e
jmp 0x42bb8b
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42bb92
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x42bc11
cmp byte [eax], bl
je 0x42bc11
lea ecx, [ebp - 0x128]
push ecx
push eax
call fcn.0042c23f
lea eax, [ebp - 0x128]
push eax
call fcn.00457cb0
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x128]
mov dword [ebp - 0x18], eax
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 3
mov word [ebp - 0x10], 0x54
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
mov eax, 0x45bf4c
jne 0x42bc09
mov eax, 0x45a734
push 1
push ebx
push 0xffffffffffffffff
push eax
jmp 0x42bc1b
push 1
push ebx
push 0xffffffffffffffff
push 0x45bf4c
mov ecx, dword [0x467b78]
call fcn.0040184e
pop ebx
leave
ret 4
Function at 0x42c284
Capabilities:
Copy file

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
je 0x42c2e6
lea eax, [ebp - 0x230]
push eax
call fcn.0042c8de
test al, al
pop ecx
je 0x42c2d5
cmp byte [ebp + 0x10], 0
jmp 0x42c2e4
lea eax, [ebp - 0x230]
push eax
call fcn.0042c582
pop ecx
test al, al
jne 0x42c2ea
xor al, al
leave
ret
push edi
lea eax, [ebp - 0x128]
push str..
push eax
call fcn.00457a90
lea eax, [ebp - 0x128]
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
add esp, 0x10
mov byte [ebp + eax - 0x22f], 0
push 6
xor eax, eax
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
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 2
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop edi
leave
ret
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
Function at 0x42caa7
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp byte [0x468398], bl
je 0x42cb0c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42cb08
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42cb0c
xor al, al
jmp 0x42cb39
cmp byte [0x468399], bl
je 0x42cb2a
test byte [ebp + 8], 4
je 0x42cb2a
xor dword [ebp + 8], 4
push ebx
push 0x42cb3c
call dword [sym.imp.USER32.dll_EnumWindows]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
pop ebx
leave
ret

Function at 0x42cb5b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x1f4
push 2
xor esi, esi
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x42cbb4
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, esi
je 0x42cb9e
push eax
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
jmp 0x42cba0
xor edi, edi
cmp edi, esi
je 0x42cbb3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x42f269
Capabilities:
Hide graphical window

Disassembly:
cmp dword [ecx + 0x1c], 0
jne 0x42f274
jmp fcn.0042f256
push 0
push 0x2af80006
push 0x414
push dword [ecx]
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
inc eax
ret