joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424fd6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x10], ebx
jne 0x425038
test byte [esi + 0xc], 8
mov edi, dword [sym.imp.USER32.dll_keybd_event]
je 0x425001
mov al, byte [esi + 0x20]
push ebx
push ebx
push eax
push 0x5b
call edi
test byte [esi + 0xc], 2
je 0x425011
mov al, byte [esi + 0x1c]
push ebx
push ebx
push eax
push 0x10
call edi
test byte [esi + 0xc], 4
je 0x425021
mov al, byte [esi + 0x14]
push ebx
push ebx
push eax
push 0x11
call edi
test byte [esi + 0xc], 1
je 0x425109
mov al, byte [esi + 0x18]
push ebx
push ebx
push eax
push 0x12
jmp 0x425107
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0xc]
test al, 8
je 0x425053
or byte [ebp - 0xa5], 0x80
test al, 2
je 0x42505e
or byte [ebp - 0xf0], 0x80
test al, 4
je 0x425069
or byte [ebp - 0xef], 0x80
test al, 1
je 0x425074
or byte [ebp - 0xee], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
test byte [esi + 0xc], 8
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
mov ebx, pe_nt_image_headers32
je 0x4250a3
mov eax, dword [esi + 0x20]
shl eax, 0x10
or al, 1
push eax
push 0x5b
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 2
je 0x4250ba
mov eax, dword [esi + 0x1c]
shl eax, 0x10
or al, 1
push eax
push 0x10
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 4
je 0x4250d1
mov eax, dword [esi + 0x14]
shl eax, 0x10
or al, 1
push eax
push 0x11
push ebx
push dword [esi + 0x10]
call edi
mov eax, dword [esi + 0xc]
mov ecx, eax
and ecx, 1
je 0x4250f4
test al, 4
jne 0x4250f4
mov eax, dword [esi + 0x18]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x425104
test ecx, ecx
je 0x425109
mov eax, dword [esi + 0x18]
shl eax, 0x10
or al, 1
push eax
push 0x12
push ebx
push dword [esi + 0x10]
call edi
push dword [esi + 4]
call fcn.0042786e
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x425117
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x10], ebx
jne 0x42517f
test byte [esi + 0xc], 1
mov edi, dword [sym.imp.USER32.dll_keybd_event]
je 0x425143
mov al, byte [esi + 0x18]
push ebx
push 2
push eax
push 0x12
call edi
test byte [esi + 0xc], 4
je 0x425154
mov al, byte [esi + 0x14]
push ebx
push 2
push eax
push 0x11
call edi
test byte [esi + 0xc], 2
je 0x425165
mov al, byte [esi + 0x1c]
push ebx
push 2
push eax
push 0x10
call edi
test byte [esi + 0xc], 8
je 0x42525c
mov al, byte [esi + 0x20]
push ebx
push 2
push eax
push 0x5b
call edi
jmp 0x42525c
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, eax
mov ebx, 0x101
and ecx, 1
je 0x4251ba
test al, 4
jne 0x4251ba
mov eax, dword [esi + 0x18]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x4251cd
test ecx, ecx
je 0x4251d2
mov eax, dword [esi + 0x18]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 4
je 0x4251ec
mov eax, dword [esi + 0x14]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 2
je 0x425206
mov eax, dword [esi + 0x1c]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 8
je 0x425220
mov eax, dword [esi + 0x20]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push ebx
push dword [esi + 0x10]
call edi
mov eax, dword [esi + 0xc]
test al, 8
je 0x42522e
xor byte [ebp - 0xa5], 0x80
test al, 2
je 0x425239
xor byte [ebp - 0xf0], 0x80
test al, 4
je 0x425244
xor byte [ebp - 0xef], 0x80
test al, 1
je 0x42524f
xor byte [ebp - 0xee], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
push dword [esi]
call fcn.0042786e
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42529d
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov esi, ecx
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp dword [esi + 0x10], 0
mov edi, eax
je 0x42531f
cmp ebx, 0x14
je 0x42531f
cmp ebx, 0x90
je 0x42531f
cmp ebx, 0x91
je 0x42531f
push 1
shl edi, 0x10
pop ebx
or edi, ebx
cmp byte [ebp + 0xc], bl
je 0x4252e9
push dword [ebp + 8]
mov ecx, esi
call fcn.00424eae
cmp al, bl
jne 0x4252ef
or edi, 0x1000000
mov eax, dword [esi + 0xc]
test bl, al
je 0x425314
test al, 4
jne 0x425314
or edi, 0x20000000
push edi
push dword [ebp + 8]
push 0x104
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x425348
push edi
push dword [ebp + 8]
push pe_nt_image_headers32
jmp 0x425309
push 1
pop ebx
cmp byte [ebp + 0xc], bl
je 0x42533b
push dword [ebp + 8]
mov ecx, esi
call fcn.00424eae
cmp al, bl
je 0x42533b
push 0
push 0
jmp 0x42533e
push 0
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_keybd_event]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42534f
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 0
mov esi, ecx
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp dword [esi + 0x10], 0
mov edi, eax
je 0x4253cc
cmp ebx, 0x14
je 0x4253cc
cmp ebx, 0x90
je 0x4253cc
cmp ebx, 0x91
je 0x4253cc
shl edi, 0x10
or edi, 0xc0000001
cmp byte [esp + 0x14], 1
je 0x42539a
push ebx
mov ecx, esi
call fcn.00424eae
cmp al, 1
jne 0x4253a0
or edi, 0x1000000
mov eax, dword [esi + 0xc]
test al, 1
je 0x4253c3
test al, 4
jne 0x4253c3
or edi, 0x20000000
push edi
push ebx
push 0x105
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4253f1
push edi
push ebx
push 0x101
jmp 0x4253b8
cmp byte [esp + 0x14], 1
je 0x4253e5
push ebx
mov ecx, esi
call fcn.00424eae
cmp al, 1
je 0x4253e5
push 0
push 2
jmp 0x4253e9
push 0
push 3
push edi
push ebx
call dword [sym.imp.USER32.dll_keybd_event]
pop edi
pop esi
pop ebx
ret 8
Function at 0x425840
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov byte [esi], bl
mov byte [eax], bl
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], ecx
push edi
mov byte [eax], bl
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], ebx
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ebx
mov byte [eax], bl
call fcn.00428ea0
inc eax
push eax
call fcn.00428d9a
pop ecx
mov dword [ebp + 0x1c], eax
pop ecx
mov eax, dword [ebp - 8]
mov al, byte [eax + edi]
cmp al, 0x2b
je 0x42589b
cmp al, 0x5e
je 0x425897
cmp al, 0x21
je 0x425897
cmp al, 0x23
jne 0x4258c1
cmp al, 0x2b
jne 0x4258a3
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x4258bc
cmp al, 0x5e
jne 0x4258ac
mov eax, dword [ebp + 0x14]
jmp 0x42589e
cmp al, 0x21
jne 0x4258b5
mov eax, dword [ebp + 0x18]
jmp 0x42589e
cmp al, 0x23
jne 0x4258bc
mov byte [esi], 1
inc dword [ebp - 8]
jmp 0x425881
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
mov al, byte [eax + edi]
inc dword [ebp - 8]
cmp al, 0x7b
mov byte [ebp + 8], al
jne 0x42592d
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp + 0x1c]
push edi
push 0x7d
call fcn.004257ea
test eax, eax
jne 0x42591d
mov edi, 0x436840
push dword [ebp + 0x1c]
push dword [edi]
call fcn.00432c00
pop ecx
test eax, eax
pop ecx
je 0x42590d
inc dword [ebp - 0xc]
add edi, 4
cmp edi, 0x4369b4
jl 0x4258ef
mov eax, dword [ebp - 0xc]
cmp eax, 0x5d
je 0x42591d
cmp byte [eax + 0x4369b4], bl
je 0x425922
mov byte [ebp - 1], bl
jmp 0x42595e
mov eax, dword [eax*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov dword [esi], eax
jmp 0x42595e
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_VkKeyScanA]
movsx eax, ax
test ah, 2
mov dword [esi], eax
je 0x425946
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
test byte [esi + 1], 4
je 0x425952
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
test byte [esi + 1], 1
je 0x42595e
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
push dword [ebp + 0x1c]
and dword [esi], 0xff
call fcn.00428f1b
mov al, byte [ebp - 1]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x4259ed
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x425a0f
push ebp
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
mov edi, dword [esp + 0x1c]
cmp edi, esi
je 0x425af5
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x425a2f
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x425af5
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebp
mov ebx, eax
push dword [esp + 0x24]
mov dword [esp + 0x20], ebx
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push ebx
mov dword [esp + 0x1c], eax
call esi
push 1
push edi
push ebx
call esi
push 1
push dword [esp + 0x14]
push edi
call esi
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x425adf
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push ebp
push ebp
push ebp
push 0x12
call edi
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push ebp
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push ebp
push dword [esp + 0x14]
push ebx
call esi
push ebp
push edi
push ebx
call esi
push ebp
push dword [esp + 0x14]
push edi
call esi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4

Function at 0x425bd1
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esi + 0x10]
cmp dword [eax], ebx
je 0x425bed
inc edi
add eax, 8
cmp edi, 0x10
jl 0x425be0
cmp edi, 0x10
jne 0x425bf6
xor eax, eax
jmp 0x425c59
cmp byte [esi + 8], 1
jne 0x425c30
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp + 0xc]
push ebx
push 0x438
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
push 0x1000
push dword [ebp + 8]
mov dword [esi + edi*8 + 0xc], eax
lea edi, [esi + edi*8 + 0x10]
push ebx
push eax
call dword [esi]
jmp 0x425c57
push ebx
push dword [ebp + 8]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push ebx
push ebx
push ebx
push 0xf001f
mov dword [esi + edi*8 + 0xc], eax
push eax
lea edi, [esi + edi*8 + 0x10]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi], eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x425ff9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x18]
push eax
push 1
push 0
push dword [ebp + 0xc]
and byte [esi], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x426039
lea eax, [ebp + 0x14]
push eax
push esi
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret

Function at 0x42603c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x42608f
lea eax, [ebp + 8]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp + 8]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
leave
ret

Function at 0x42637f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
xor ebx, ebx
xor esi, esi
cmp edi, ebx
mov byte [0x449640], bl
je 0x4263c5
mov byte [0x449641], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 8], eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 8]
push ebx
push eax
push 0x426408
push ebx
push ebx
mov dword [ebp - 4], edi
call fcn.0042ac2b
add esp, 0x18
mov esi, eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, ebx
mov edi, eax
je 0x4263f3
push 0xffffffffffffffff
push esi
mov byte [0x449641], bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x449640], 1
jne 0x426401
or eax, 0xffffffff
jmp 0x426403
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4265c7
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 8]
push esi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x42664d
push edi
push esi
call fcn.00428d9a
pop ecx
mov edi, eax
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x43539c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x426641
mov ecx, dword [ebp - 4]
mov edx, 0xffff
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov esi, ecx
and esi, edx
shr ecx, 0x10
push esi
push ecx
mov ecx, eax
and ecx, edx
shr eax, 0x10
push ecx
push eax
push str._u._u._u._u
push dword [ebp + 0xc]
call fcn.00429357
add esp, 0x18
mov bl, 1
push edi
call fcn.00428f1b
pop ecx
mov al, bl
pop edi
jmp 0x42664f
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x426653
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.0042a560
pop ecx
test eax, eax
pop ecx
jne 0x42668b
push 0x3f
push esi
call fcn.0042a560
pop ecx
test eax, eax
pop ecx
jne 0x42668b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
jmp 0x4266ab
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4266a2
xor al, al
jmp 0x4266ab
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop esi
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4266c4
test al, 0x10
je 0x4266c4
mov al, 1
ret
xor al, al
ret

Function at 0x426859
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
and byte [ebp - 1], 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.004266c7
lea eax, [ebp - 0x108]
push eax
call fcn.004266ae
add esp, 0xc
test al, al
je 0x42689b
lea eax, [ebp - 0x108]
push str..
push eax
call fcn.00428dc0
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x668]
push esi
push eax
lea eax, [ebp - 0x560]
push eax
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0042980f
add esp, 0x14
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov bl, 1
cmp esi, 0xffffffff
je 0x426962
cmp bl, 1
jne 0x426962
mov eax, dword [ebp - 0x248]
and eax, 0x10
cmp al, 0x10
je 0x426948
lea eax, [ebp - 0x458]
mov byte [ebp - 1], bl
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00428db0
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00428dc0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00428dc0
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
jne 0x42695e
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4268e5
xor bl, bl
jmp 0x4268e5
xor bl, bl
jmp 0x426965
mov bl, byte [ebp - 1]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x426972
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x988
push ebx
push esi
lea eax, [ebp - 0x218]
push edi
push eax
xor ebx, ebx
push dword [ebp + 8]
mov byte [ebp - 1], bl
call fcn.004266c7
lea eax, [ebp - 0x428]
push eax
push dword [ebp + 0xc]
call fcn.004266c7
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004267b4
mov byte [ebp + 0xf], al
lea eax, [ebp - 0x218]
push eax
call fcn.004266ae
add esp, 0x1c
mov esi, str..
test al, al
je 0x4269de
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00428dc0
pop ecx
pop ecx
lea eax, [ebp - 0x428]
push eax
call fcn.004266ae
test al, al
pop ecx
je 0x4269fe
lea eax, [ebp - 0x428]
push esi
push eax
call fcn.00428dc0
pop ecx
pop ecx
lea eax, [ebp - 0x880]
push eax
lea eax, [ebp - 0x988]
push eax
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x778]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0042980f
add esp, 0x14
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
mov byte [ebp + 0xb], 1
je 0x426b66
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp byte [ebp + 0xb], 1
jne 0x426b66
mov eax, dword [ebp - 0x568]
mov byte [ebp - 1], 1
and eax, 0x10
cmp al, 0x10
je 0x426b46
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x53c]
push eax
call fcn.00426b79
lea eax, [ebp - 0x778]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00428db0
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00428dc0
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00428dc0
lea eax, [ebp - 0x320]
push eax
call fcn.00426653
add esp, 0x28
test al, al
je 0x426af0
cmp byte [ebp + 0x10], bl
je 0x426b69
lea eax, [ebp - 0x320]
push eax
call edi
cmp byte [ebp + 0x14], 1
jne 0x426b31
cmp byte [ebp + 0xf], bl
jne 0x426b11
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x426b42
lea eax, [ebp - 0x320]
push ebx
push eax
lea eax, [ebp - 0x110]
push eax
call esi
cmp eax, ebx
je 0x426b69
lea eax, [ebp - 0x110]
push eax
call edi
jmp 0x426b42
lea eax, [ebp - 0x320]
push ebx
push eax
lea eax, [ebp - 0x110]
push eax
call esi
cmp eax, ebx
je 0x426b69
lea eax, [ebp - 0x568]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x426a59
mov byte [ebp + 0xb], bl
jmp 0x426a59
mov bl, byte [ebp - 1]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x426d60
Capabilities:
Get file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
jne 0x426d76
mov al, 1
jmp 0x426da8
cmp eax, 0xffffffff
jne 0x426da6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 3
jne 0x426dd6
push edi
call fcn.0042791e
mov esi, eax
push 0x5c
push esi
call fcn.0042ad90
add esp, 0xc
test eax, eax
jne 0x426dab
push esi
call fcn.00428f1b
pop ecx
xor al, al
pop edi
pop esi
ret
and byte [eax], 0
push ebx
push esi
call fcn.00426d60
push esi
mov bl, al
call fcn.00428f1b
pop ecx
pop ecx
test bl, bl
je 0x426dd1
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x426da8
call esi
cmp eax, 2
jne 0x426da6
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
jmp 0x426da8

Function at 0x426ded
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
lea eax, [ebp - 0x128]
push ebx
push eax
push dword [ebp + 8]
call fcn.004266c7
lea eax, [ebp - 0x230]
push eax
push dword [ebp + 0xc]
call fcn.004266c7
lea eax, [ebp - 0x128]
push eax
call fcn.004266ae
add esp, 0x14
test al, al
jne 0x426e2f
xor al, al
jmp 0x426ecd
lea eax, [ebp - 0x230]
push eax
call fcn.004266ae
xor ebx, ebx
pop ecx
test al, al
je 0x426e47
cmp byte [ebp + 0x10], bl
jmp 0x426e56
lea eax, [ebp - 0x230]
push eax
call fcn.00426d60
pop ecx
test al, al
je 0x426e28
lea eax, [ebp - 0x128]
push str..
push eax
call fcn.00428dc0
lea eax, [ebp - 0x128]
push eax
call fcn.00428ea0
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x230]
push eax
call fcn.00428ea0
mov byte [ebp + eax - 0x22f], bl
lea eax, [ebp - 0x128]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x230]
add esp, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0xa], ebx
push eax
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 2
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb al, al
inc al
pop ebx
leave
ret