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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [esi + 0xc]
test al, 0xf
je 0x40e4f9
push ebx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
push edi
jne 0x40e41a
test al, 8
mov edi, dword [sym.imp.USER32.dll_keybd_event]
je 0x40e3dd
xor eax, eax
mov al, byte [esi + 0x20]
push ebx
push ebx
push eax
push 0x5b
call edi
test byte [esi + 0xc], 2
je 0x40e3ef
xor eax, eax
mov al, byte [esi + 0x1c]
push ebx
push ebx
push eax
push 0x10
call edi
test byte [esi + 0xc], 4
je 0x40e401
xor eax, eax
mov al, byte [esi + 0x14]
push ebx
push ebx
push eax
push 0x11
call edi
test byte [esi + 0xc], 1
je 0x40e4ef
xor eax, eax
mov al, byte [esi + 0x18]
push ebx
push ebx
push eax
push 0x12
jmp 0x40e4ed
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0xc]
test al, 8
je 0x40e435
or byte [ebp - 0xa5], 0x80
test al, 2
je 0x40e440
or byte [ebp - 0xf0], 0x80
test al, 4
je 0x40e44b
or byte [ebp - 0xef], 0x80
test al, 1
je 0x40e456
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, 0x100
je 0x40e486
mov eax, dword [esi + 0x20]
shl eax, 0x10
or eax, 1
push eax
push 0x5b
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 2
je 0x40e49e
mov eax, dword [esi + 0x1c]
shl eax, 0x10
or eax, 1
push eax
push 0x10
push ebx
push dword [esi + 0x10]
call edi
test byte [esi + 0xc], 4
je 0x40e4b6
mov eax, dword [esi + 0x14]
shl eax, 0x10
or eax, 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 0x40e4d9
test al, 0x44
jne 0x40e4d9
mov eax, dword [esi + 0x18]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x40e4ea
test ecx, ecx
je 0x40e4ef
mov eax, dword [esi + 0x18]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push ebx
push dword [esi + 0x10]
call edi
mov edi, dword [esi + 4]
call fcn.00412662
pop edi
pop ebx
leave
ret
Function at 0x40e4fb
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [esi + 0xc]
test al, 0xf
je 0x40e657
push ebx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
push edi
jne 0x40e571
test al, 1
mov edi, dword [sym.imp.USER32.dll_keybd_event]
je 0x40e52f
xor eax, eax
mov al, byte [esi + 0x18]
push ebx
push 2
push eax
push 0x12
call edi
test byte [esi + 0xc], 4
je 0x40e542
xor eax, eax
mov al, byte [esi + 0x14]
push ebx
push 2
push eax
push 0x11
call edi
test byte [esi + 0xc], 2
je 0x40e555
xor eax, eax
mov al, byte [esi + 0x1c]
push ebx
push 2
push eax
push 0x10
call edi
test byte [esi + 0xc], 8
je 0x40e64e
xor eax, eax
mov al, byte [esi + 0x20]
push ebx
push 2
push eax
push 0x5b
call edi
jmp 0x40e64e
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
and ecx, 1
mov ebx, 0x101
je 0x40e5ac
test al, 0x44
jne 0x40e5ac
mov eax, dword [esi + 0x18]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x40e5bf
test ecx, ecx
je 0x40e5c4
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 0x40e5de
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 0x40e5f8
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 0x40e612
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 0x40e620
xor byte [ebp - 0xa5], 0x80
test al, 2
je 0x40e62b
xor byte [ebp - 0xf0], 0x80
test al, 4
je 0x40e636
xor byte [ebp - 0xef], 0x80
test al, 1
je 0x40e641
xor byte [ebp - 0xee], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
mov edi, dword [esi]
call fcn.00412662
pop edi
pop ebx
leave
ret
Function at 0x40e67a
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push edi
mov edi, eax
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
xor ecx, ecx
cmp dword [ebx + 0x10], ecx
mov esi, eax
je 0x40e726
cmp edi, 0x14
je 0x40e726
cmp edi, 0x90
je 0x40e726
cmp edi, 0x91
je 0x40e726
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
or byte [ebp + edi - 0x100], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
shl esi, 0x10
or esi, 1
cmp byte [ebp + 8], 1
je 0x40e6ef
mov eax, edi
call fcn.0040e289
cmp al, 1
jne 0x40e6f5
or esi, 0x1000000
mov eax, dword [ebx + 0xc]
test al, 0x11
jne 0x40e701
cmp edi, 0x12
jne 0x40e71d
test al, 0x44
jne 0x40e71d
or esi, 0x20000000
push esi
push edi
push 0x104
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40e746
push esi
push edi
push 0x100
jmp 0x40e712
cmp byte [ebp + 8], 1
je 0x40e73b
mov eax, edi
call fcn.0040e289
cmp al, 1
je 0x40e73b
push ecx
push ecx
jmp 0x40e73e
push ecx
push 1
push esi
push edi
call dword [sym.imp.USER32.dll_keybd_event]
mov edi, dword [ebx + 4]
call fcn.00412662
pop edi
pop esi
leave
ret 4

Function at 0x40e754
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push edi
mov edi, eax
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
xor ecx, ecx
cmp dword [ebx + 0x10], ecx
mov esi, eax
je 0x40e805
cmp edi, 0x14
je 0x40e805
cmp edi, 0x90
je 0x40e805
cmp edi, 0x91
je 0x40e805
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
shl esi, 0x10
or esi, 0xc0000001
cmp byte [ebp + 8], 1
je 0x40e7b7
mov eax, edi
call fcn.0040e289
cmp al, 1
jne 0x40e7bd
or esi, 0x1000000
mov eax, dword [ebx + 0xc]
test al, 0x11
jne 0x40e7c9
cmp edi, 0x12
jne 0x40e7dc
test al, 0x44
jne 0x40e7dc
or esi, 0x20000000
push esi
push edi
push 0x105
jmp 0x40e7e3
push esi
push edi
push 0x101
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp + edi - 0x100]
xor byte [eax], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40e826
cmp byte [ebp + 8], 1
je 0x40e81b
mov eax, edi
call fcn.0040e289
cmp al, 1
je 0x40e81b
push ecx
push 2
jmp 0x40e81e
push ecx
push 3
push esi
push edi
call dword [sym.imp.USER32.dll_keybd_event]
mov edi, dword [ebx]
call fcn.00412662
pop edi
pop esi
leave
ret 4
Function at 0x40ec7c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
xor eax, eax
xor ebx, ebx
cmp byte [esi], al
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], eax
jne 0x40ec9c
xor al, al
jmp 0x40eda2
mov ecx, dword [ebp + 0x18]
mov byte [ecx], al
mov ecx, dword [ebp + 0x14]
mov byte [ecx], al
mov ecx, dword [ebp + 0x10]
mov byte [edi], al
push esi
mov byte [ecx], al
call fcn.00446710
inc eax
push eax
call fcn.00446688
pop ecx
pop ecx
mov dword [ebp - 8], eax
mov al, byte [ebx + esi]
cmp al, 0x2b
je 0x40ecd6
cmp al, 0x5e
je 0x40ecd2
cmp al, 0x21
je 0x40ecd2
cmp al, 0x23
jne 0x40ecfa
cmp al, 0x2b
jne 0x40ecdb
mov eax, dword [ebp + 0x10]
jmp 0x40ecf4
cmp al, 0x5e
jne 0x40ece4
mov byte [edi], 1
jmp 0x40ecf7
cmp al, 0x21
jne 0x40eced
mov eax, dword [ebp + 0x14]
jmp 0x40ecf4
cmp al, 0x23
jne 0x40ecf7
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
inc ebx
jmp 0x40ecbf
mov al, byte [ebx + esi]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x10], al
mov dword [ebp + 0x18], ebx
jne 0x40ed5c
mov ebx, dword [ebp - 8]
lea edx, [ebp + 0x18]
add al, 2
call fcn.0040ec3f
test eax, eax
jne 0x40ed48
push dword [ebp - 8]
mov esi, dword [ebp - 0xc]
push dword [esi*4 + 0x462570]
call fcn.004485be
test eax, eax
pop ecx
pop ecx
je 0x40ed3a
inc esi
cmp esi, 0x5d
mov dword [ebp - 0xc], esi
jl 0x40ed19
cmp esi, 0x5d
je 0x40ed48
cmp byte [esi + 0x4626e8], 0
je 0x40ed4e
mov byte [ebp - 1], 0
jmp 0x40ed8d
mov eax, dword [esi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x40ed8d
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov ecx, dword [ebp + 0xc]
movsx eax, ax
test ah, 2
mov dword [ecx], eax
je 0x40ed75
mov byte [edi], 1
test byte [ecx + 1], 4
je 0x40ed81
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
test byte [ecx + 1], 1
je 0x40ed8d
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov eax, dword [ebp + 0xc]
push dword [ebp - 8]
and dword [eax], 0xff
call fcn.0044627e
mov al, byte [ebp - 1]
pop ecx
pop esi
pop ebx
leave
ret 0x14
Function at 0x40ee1a
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 0x40ee3c
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 0x40ef22
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40ee5c
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x40ef22
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
push dword [esp + 0x24]
mov ebx, eax
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 0x40ef0c
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 0x40f00e
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esi + 0x20]
cmp dword [eax], ebx
je 0x40f027
inc edi
add eax, 8
cmp edi, 0x10
jl 0x40f01a
cmp edi, 0x10
jne 0x40f030
xor eax, eax
jmp 0x40f09a
cmp byte [esi + 0x18], 1
jne 0x40f071
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 + 0x1c], eax
push ebx
push eax
mov eax, esi
lea edi, [esi + edi*8 + 0x20]
call fcn.0040f18b
call eax
jmp 0x40f098
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 + 0x1c], eax
push eax
lea edi, [esi + edi*8 + 0x20]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [edi], eax
pop edi
pop ebx
pop ebp
ret 8
Function at 0x410bc8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push dword [ebp + 0xc]
mov byte [esi], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410c05
lea eax, [ebp + 0x14]
push eax
push esi
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x410c07
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x410c67
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
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 0x4112fa
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x41131a
xor al, al
jmp 0x4114ad
push ebx
push edi
push esi
call fcn.00446688
pop ecx
push eax
push esi
push 0
push dword [ebp + 8]
mov dword [ebp - 4], eax
call sub.VERSION.dll_GetFileVersionInfoA
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.00446710
add eax, 0x1a
push eax
call fcn.00446688
mov esi, 0x4598b8
mov edi, eax
push esi
push edi
call fcn.00446290
push esi
push ebx
call fcn.004464e0
add esp, 0x18
test eax, eax
je 0x4113e4
push str.StringFileInfo_
push edi
call fcn.004462a0
push esi
push ebx
call fcn.00447a90
add esp, 0x10
test eax, eax
jne 0x4113db
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4113bb
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
push ebx
push 4
lea edx, [edi + 0x10]
pop ecx
call fcn.0041230e
shr ebx, 0x10
lea edx, [edi + 0x14]
push ebx
call fcn.0041230e
mov ebx, dword [ebp + 0x10]
add esp, 8
jmp 0x4113c8
push str.04090000
push edi
call fcn.004462a0
pop ecx
pop ecx
push esi
push edi
call fcn.004462a0
push ebx
push edi
call fcn.004462a0
add esp, 0x10
jmp 0x4113e4
push ebx
push edi
call fcn.004462a0
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.004485be
test eax, eax
pop ecx
pop ecx
jne 0x411420
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x10]
push eax
push esi
call fcn.00446820
push dword [ebp - 4]
mov byte [esi + 8], 0
call fcn.0044627e
push edi
call fcn.0044627e
add esp, 0x14
mov al, 1
jmp 0x4114ab
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x411499
push esi
push ebx
call fcn.004464e0
test eax, eax
pop ecx
pop ecx
jne 0x411474
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov esi, ecx
mov edx, 0xffff
and esi, edx
push esi
shr ecx, 0x10
push ecx
mov ecx, eax
and ecx, edx
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
push dword [ebp + 0xc]
call fcn.00447369
add esp, 0x18
jmp 0x411487
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.00446820
add esp, 0xc
push dword [ebp - 4]
call fcn.0044627e
push edi
call fcn.0044627e
mov al, 1
jmp 0x4114a9
push dword [ebp - 4]
call fcn.0044627e
push edi
call fcn.0044627e
xor al, al
pop ecx
pop ecx
pop edi
pop ebx
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4114e7
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4114e0
xor al, al
leave
ret
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, 1
leave
ret
Function at 0x4114eb
Capabilities:
Check if file exists
Get file attributes

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
mov byte [ebp - 1], 0
call fcn.00411504
lea eax, [ebp - 0x10c]
push eax
call fcn.004114eb
test al, al
pop ecx
pop ecx
je 0x4116d3
lea eax, [ebp - 0x10c]
push str..
push eax
call fcn.004462a0
pop ecx
pop ecx
push ebx
push esi
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x564]
push eax
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00446e79
add esp, 0x14
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov bl, 1
je 0x411796
cmp bl, 1
jne 0x411796
test byte [ebp - 0x24c], 0x10
jne 0x41177c
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp - 1], bl
call fcn.00446290
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004462a0
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004462a0
add esp, 0x18
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp eax, 1
jne 0x411792
lea eax, [ebp - 0x24c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x41171d
xor bl, bl
jmp 0x41171d
xor bl, bl
jmp 0x411799
mov bl, byte [ebp - 1]
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x4117a6
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x988
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x320]
mov byte [ebp - 2], 0
call fcn.00411504
push dword [ebp + 0xc]
lea eax, [ebp - 0x428]
call fcn.00411504
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.004115f0
mov byte [ebp - 3], al
lea eax, [ebp - 0x320]
push eax
call fcn.004114eb
add esp, 0x14
test al, al
mov esi, str..
je 0x41180f
lea eax, [ebp - 0x320]
push esi
push eax
call fcn.004462a0
pop ecx
pop ecx
lea eax, [ebp - 0x428]
push eax
call fcn.004114eb
test al, al
pop ecx
je 0x41182f
lea eax, [ebp - 0x428]
push esi
push eax
call fcn.004462a0
pop ecx
pop ecx
lea eax, [ebp - 0x988]
push eax
lea eax, [ebp - 0x880]
push eax
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x778]
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.00446e79
add esp, 0x14
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
mov byte [ebp - 1], 1
je 0x41199b
mov ebx, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.DLL_CopyFileA]
cmp byte [ebp - 1], 1
jne 0x41199b
test byte [ebp - 0x568], 0x10
mov byte [ebp - 2], 1
jne 0x411977
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x53c]
push eax
lea esi, [ebp - 0x218]
call fcn.004119ae
lea eax, [ebp - 0x778]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00446290
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.004462a0
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.004462a0
mov eax, esi
push eax
call fcn.004114b0
add esp, 0x24
test al, al
je 0x41192a
cmp byte [ebp + 0x10], 0
je 0x411997
mov eax, esi
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.004464e0
test eax, eax
pop ecx
pop ecx
je 0x411977
mov eax, esi
push eax
call ebx
cmp byte [ebp + 0x14], 1
lea eax, [ebp - 0x218]
jne 0x411967
cmp byte [ebp - 3], 0
jne 0x41194c
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
jmp 0x411973
push 0
push eax
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
je 0x411997
lea eax, [ebp - 0x110]
push eax
call ebx
jmp 0x411973
push 0
push eax
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
je 0x411997
lea eax, [ebp - 0x568]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x41188a
mov byte [ebp - 1], al
jmp 0x41188a
xor bl, bl
jmp 0x41199e
mov bl, byte [ebp - 2]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x411b80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.00446710
dec eax
add eax, esi
cmp byte [eax], 0x5c
pop ecx
jne 0x411b99
mov byte [eax], 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x411c11
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
jne 0x411bc1
push 0
push esi
call ebp
test eax, eax
je 0x411bc6
jmp 0x411c15
cmp eax, 3
jne 0x411be4
push esi
call fcn.00412749
mov edi, eax
push 0x5c
push edi
call fcn.00447bf0
add esp, 0xc
test eax, eax
jne 0x411bea
push edi
call fcn.0044627e
pop ecx
xor al, al
pop edi
pop esi
pop ebp
ret
push ebx
push edi
mov byte [eax], 0
call fcn.00411b80
push edi
mov bl, al
call fcn.0044627e
pop ecx
pop ecx
test bl, bl
je 0x411c0c
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x411be6
test al, 0x10
je 0x411be4
mov al, 1
jmp 0x411be6

Function at 0x411c19
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push dword [ebp + 8]
lea eax, [ebp - 0x230]
call fcn.00411504
push dword [ebp + 0xc]
lea eax, [ebp - 0x128]
call fcn.00411504
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004464e0
add esp, 0x10
test eax, eax
jne 0x411c60
cmp byte [ebp + 0x10], al
setne al
leave
ret
lea eax, [ebp - 0x230]
push eax
call fcn.004114eb
test al, al
pop ecx
jne 0x411c73
leave
ret
lea eax, [ebp - 0x128]
push ebx
push eax
call fcn.004114eb
xor ebx, ebx
test al, al
pop ecx
je 0x411c93
cmp byte [ebp + 0x10], bl
jne 0x411cb5
xor al, al
jmp 0x411d2a
lea eax, [ebp - 0x128]
push eax
call fcn.00411b80
test al, al
pop ecx
je 0x411c8c
lea eax, [ebp - 0x128]
push eax
call fcn.004114eb
pop ecx
test al, al
jmp 0x411c8a
lea eax, [ebp - 0x230]
push str..
push eax
call fcn.004462a0
lea eax, [ebp - 0x230]
push eax
call fcn.00446710
mov byte [ebp + eax - 0x22f], bl
lea eax, [ebp - 0x128]
push eax
call fcn.00446710
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x230]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x14], eax
add esp, 0x10
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 - 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