joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010ac
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov ebx, eax
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
mov ecx, ebx
call fcn.00401309
lea edi, [ebx + 0x10]
cmp dword [edi], 0
jne 0x4010ee
push 0xffffffffffffffff
push dword [ebx + 0x14]
mov esi, 0x46b600
push 1
call fcn.0040e281
jmp 0x40112b
push edi
lea esi, [ebx + 0x20]
push 0x46b600
call fcn.0040e6bb
test al, al
jne 0x40110f
mov dword [0x45ca2c], 1
jmp 0x401192
lea eax, [ebx + 0xc]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
mov esi, 0x46b600
call fcn.0040e68a
push dword [edi]
lea eax, [ebx + 0x20]
push eax
mov edi, 0x4670d8
call fcn.0041d7dc
test eax, eax
je 0x401162
call fcn.0040e431
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov dword [0x45ca2c], 1
jmp 0x40119f
call fcn.004011a4
call fcn.00401298
cmp byte [0x45ca15], 1
jne 0x40117f
mov ebx, 0x46a340
call fcn.004107af
push 1
mov ecx, edi
call fcn.0041d93d
mov esi, 0x46b600
call fcn.0040e431
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403651
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, dword [esi]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 8]
mov dword [esi + 0x4120], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x4124], eax
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
lea eax, [esi + 0x4128]
cmp ecx, dword [eax]
jne 0x403698
cmp edx, dword [esi + 0x412c]
je 0x4036b3
cmp byte [ebp + 0xc], 0
mov dword [eax], ecx
mov dword [esi + 0x412c], edx
je 0x4036b3
push edx
push ecx
mov ecx, dword [ebp + 8]
push esi
push 0xfffffffffffffff5
call fcn.004020cc
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push ebx
push 1
call edi
xor ebx, ebx
test ax, ax
push 2
setl bl
call edi
xor ecx, ecx
test ax, ax
setl cl
cmp ebx, dword [esi + 0x4130]
mov edi, ecx
je 0x403731
cmp byte [ebp + 0xc], 0
je 0x403731
test ebx, ebx
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
push dword [ebp - 8]
push esi
je 0x4036f4
push 0xfffffffffffffff9
jmp 0x403725
push 0xfffffffffffffff8
call fcn.004020cc
cmp byte [esi + 0x4138], 0
je 0x40372a
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x1000000
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
push dword [ebp - 8]
push esi
je 0x403723
push 0xfffffffffffffffa
jmp 0x403725
push 0xfffffffffffffff4
call fcn.004020cc
mov byte [esi + 0x4138], 0
cmp edi, dword [esi + 0x4134]
mov dword [esi + 0x4130], ebx
pop ebx
je 0x40375f
cmp byte [ebp + 0xc], 0
je 0x40375f
test edi, edi
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
push dword [ebp - 8]
push esi
je 0x403758
push 0xfffffffffffffff7
jmp 0x40375a
push 0xfffffffffffffff6
call fcn.004020cc
mov dword [esi + 0x4134], edi
pop edi
leave
ret 8
Function at 0x408375
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
cmp byte [eax], bl
push esi
push edi
mov dword [ebp - 8], ebx
je 0x40847c
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x408417
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push ebx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0xc]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 8]
push eax
push 0x4506f0
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 8]
cmp eax, ebx
jne 0x40841e
xor eax, eax
jmp 0x4084a9
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0xc]
lea eax, [ebp - 0x2c]
push eax
push 0x18
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
cmp edx, ebx
mov eax, dword [ebp + 0x14]
jne 0x408453
cmp dword [eax], ebx
jne 0x408453
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
jmp 0x40845b
mov dword [ebp - 0x28], edx
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
push 0x2000
push dword [eax]
push dword [ecx]
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40847f
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x408490
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 4]
push eax
push ebx
push 0x172
push dword [ebp + 0xc]
mov dword [esi + 0x44], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40e041
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10324
call fcn.00448b10
push ebx
xor ebx, ebx
push edi
push 0x400
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x210], ebx
mov dword [esi + 0x218], ebx
call fcn.0043f7a8
pop ecx
mov dword [esi + 0x214], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0044018d
push edi
lea eax, [ebp - 0x21c]
push str.Include
push eax
call fcn.004402e0
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00440415
push 0x105
call fcn.0043f7a8
mov ecx, dword [esi + 0x218]
mov edx, dword [esi + 0x214]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x218]
mov ecx, dword [esi + 0x214]
mov ecx, dword [ecx + eax*4]
inc eax
mov dword [esi + 0x218], eax
lea eax, [ebp - 0x118]
push eax
push ecx
call fcn.0043f3b0
add esp, 0x40
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.SoftwareAutoIt_v3AutoIt
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e24a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10324]
push eax
push ebx
push ebx
push str.Include
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0xffff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e241
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x10324], bl
mov byte [ebp + eax - 0x10323], bl
lea eax, [ebp - 0x10324]
mov byte [ebp - 0x118], bl
mov dword [ebp - 8], eax
mov cl, byte [eax]
cmp cl, bl
mov byte [ebp - 4], cl
mov byte [ebp - 3], bl
je 0x40e1ab
cmp cl, 0x3b
je 0x40e1ab
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0043f3c0
pop ecx
pop ecx
jmp 0x40e236
lea eax, [ebp - 0x118]
push eax
call fcn.0043f830
test eax, eax
pop ecx
je 0x40e1e9
lea eax, [ebp - 0x118]
push eax
call fcn.0043f830
pop ecx
lea ecx, [ebp - 0x118]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x40e1e9
lea eax, [ebp - 0x118]
push 0x4523c4
push eax
call fcn.0043f3c0
pop ecx
pop ecx
push 0x105
call fcn.0043f7a8
mov ecx, dword [esi + 0x218]
mov edx, dword [esi + 0x214]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x218]
mov ecx, dword [esi + 0x214]
mov ecx, dword [ecx + eax*4]
inc eax
mov dword [esi + 0x218], eax
push edi
lea eax, [ebp - 0x118]
push eax
push ecx
call fcn.0043f940
mov eax, dword [ebp - 8]
add esp, 0x10
cmp byte [eax], bl
mov byte [ebp - 0x118], bl
je 0x40e241
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
jmp 0x40e183
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
leave
ret
Function at 0x40f367
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
test ah, 2
je 0x40f376
or dword [esi + 0xc], 4
test ah, 4
je 0x40f37f
or dword [esi + 0xc], 1
test ah, 1
je 0x40f388
or dword [esi + 0xc], 2
mov eax, dword [esi + 0xc]
test al, 4
je 0x40f399
test al, 0x40
je 0x40f399
xor eax, 4
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test al, 1
je 0x40f3aa
test al, 0x10
je 0x40f3aa
xor eax, 1
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test al, 2
je 0x40f3bb
test al, 0x20
je 0x40f3bb
xor eax, 2
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test al, 8
je 0x40f3cc
test al, al
jns 0x40f3cc
xor eax, 8
mov dword [esi + 0xc], eax
push ebx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
je 0x40f412
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [esi + 0xc]
test al, 0x40
jne 0x40f3ea
mov byte [esp + 0x15], bl
test al, 0x10
jne 0x40f3f2
mov byte [esp + 0x16], bl
test al, 0x20
jne 0x40f3fa
mov byte [esp + 0x14], bl
test al, al
js 0x40f402
mov byte [esp + 0x5f], bl
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x40f4c7
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call edi
movsx eax, ax
mov ebp, SysReAllocString
test ebp, eax
jne 0x40f436
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x40f449
test byte [esi + 0xc], 0x40
jne 0x40f449
push ebx
push 0x11
pop eax
mov ebx, esi
call fcn.0040f99a
xor ebx, ebx
push 0x12
call edi
movsx eax, ax
test ebp, eax
jne 0x40f460
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x40f473
test byte [esi + 0xc], 0x10
jne 0x40f473
push ebx
push 0x12
pop eax
mov ebx, esi
call fcn.0040f99a
xor ebx, ebx
push 0x10
call edi
movsx eax, ax
test ebp, eax
jne 0x40f48a
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x40f49d
test byte [esi + 0xc], 0x20
jne 0x40f49d
push ebx
push 0x10
pop eax
mov ebx, esi
call fcn.0040f99a
xor ebx, ebx
push 0x5b
call edi
movsx eax, ax
pop edi
test ebp, eax
pop ebp
jne 0x40f4b6
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x40f4c7
test byte [esi + 0xc], 0x80
jne 0x40f4c7
push ebx
push 0x5b
pop eax
mov ebx, esi
call fcn.0040f99a
pop ebx
add esp, 0x100
ret
Function at 0x410062
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 0x410084
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 0x41016a
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4100a4
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x41016a
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 0x410154
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 0x410241
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esi + 0x10]
cmp dword [eax], ebx
je 0x41025a
inc edi
add eax, 8
cmp edi, 0x10
jl 0x41024d
cmp edi, 0x10
jne 0x410263
xor eax, eax
jmp 0x4102c6
cmp byte [esi + 8], 1
jne 0x41029d
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
push ebx
push eax
lea edi, [esi + edi*8 + 0x10]
call dword [esi]
jmp 0x4102c4
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 ebx
pop ebp
ret 8
Function at 0x411c9e
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 0x411cdb
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 0x411cdd
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 0x411d3d
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 0x41225c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x4122e2
push edi
push esi
call fcn.0043f7a8
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 0x4523c4
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4122d6
mov ecx, dword [ebp - 4]
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.0043ffcb
add esp, 0x18
mov bl, 1
push edi
call fcn.0043f3aa
pop ecx
mov al, bl
pop edi
jmp 0x4122e4
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x4122e8
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 0x41231f
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x412318
xor al, al
leave
ret
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, 1
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x412339
test al, 0x10
je 0x412339
mov al, 1
ret
xor al, al
ret
Function at 0x4124cb
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.0041233c
lea eax, [ebp - 0x10c]
push eax
call fcn.00412323
test al, al
pop ecx
pop ecx
je 0x41250b
lea eax, [ebp - 0x10c]
push str..
push eax
call fcn.0043f3c0
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.0044018d
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 0x4125ce
cmp bl, 1
jne 0x4125ce
test byte [ebp - 0x24c], 0x10
jne 0x4125b4
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp - 1], bl
call fcn.0043f3b0
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0043f3c0
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0043f3c0
add esp, 0x18
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp eax, 1
jne 0x4125ca
lea eax, [ebp - 0x24c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x412555
xor bl, bl
jmp 0x412555
xor bl, bl
jmp 0x4125d1
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 0x4125de
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.0041233c
push dword [ebp + 0xc]
lea eax, [ebp - 0x428]
call fcn.0041233c
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.00412428
mov byte [ebp - 3], al
lea eax, [ebp - 0x320]
push eax
call fcn.00412323
add esp, 0x14
test al, al
mov esi, str..
je 0x412647
lea eax, [ebp - 0x320]
push esi
push eax
call fcn.0043f3c0
pop ecx
pop ecx
lea eax, [ebp - 0x428]
push eax
call fcn.00412323
test al, al
pop ecx
je 0x412667
lea eax, [ebp - 0x428]
push esi
push eax
call fcn.0043f3c0
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.0044018d
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 0x4127d3
mov ebx, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.DLL_CopyFileA]
cmp byte [ebp - 1], 1
jne 0x4127d3
test byte [ebp - 0x568], 0x10
mov byte [ebp - 2], 1
jne 0x4127af
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x53c]
push eax
lea esi, [ebp - 0x218]
call fcn.004127e6
lea eax, [ebp - 0x778]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0043f3b0
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0043f3c0
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0043f3c0
mov eax, esi
push eax
call fcn.004122e8
add esp, 0x24
test al, al
je 0x412762
cmp byte [ebp + 0x10], 0
je 0x4127cf
mov eax, esi
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0043f600
test eax, eax
pop ecx
pop ecx
je 0x4127af
mov eax, esi
push eax
call ebx
cmp byte [ebp + 0x14], 1
lea eax, [ebp - 0x218]
jne 0x41279f
cmp byte [ebp - 3], 0
jne 0x412784
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
jmp 0x4127ab
push 0
push eax
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
je 0x4127cf
lea eax, [ebp - 0x110]
push eax
call ebx
jmp 0x4127ab
push 0
push eax
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
je 0x4127cf
lea eax, [ebp - 0x568]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4126c2
mov byte [ebp - 1], al
jmp 0x4126c2
xor bl, bl
jmp 0x4127d6
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 0x4129b8
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.0043f830
dec eax
add eax, esi
cmp byte [eax], 0x5c
pop ecx
jne 0x4129d1
mov byte [eax], 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x412a49
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
jne 0x4129f9
push 0
push esi
call ebp
test eax, eax
je 0x4129fe
jmp 0x412a4d
cmp eax, 3
jne 0x412a1c
push esi
call fcn.0041355a
mov edi, eax
push 0x5c
push edi
call fcn.00440f90
add esp, 0xc
test eax, eax
jne 0x412a22
push edi
call fcn.0043f3aa
pop ecx
xor al, al
pop edi
pop esi
pop ebp
ret
push ebx
push edi
mov byte [eax], 0
call fcn.004129b8
push edi
mov bl, al
call fcn.0043f3aa
pop ecx
pop ecx
test bl, bl
je 0x412a44
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x412a1e
test al, 0x10
je 0x412a1c
mov al, 1
jmp 0x412a1e

Function at 0x412a51
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push dword [ebp + 8]
lea eax, [ebp - 0x128]
call fcn.0041233c
push dword [ebp + 0xc]
lea eax, [ebp - 0x230]
call fcn.0041233c
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0043f600
add esp, 0x10
test eax, eax
jne 0x412a98
cmp byte [ebp + 0x10], al
setne al
leave
ret
lea eax, [ebp - 0x128]
push eax
call fcn.00412323
test al, al
pop ecx
jne 0x412aab
leave
ret
lea eax, [ebp - 0x230]
push ebx
push eax
call fcn.00412323
xor ebx, ebx
test al, al
pop ecx
je 0x412acb
cmp byte [ebp + 0x10], bl
jne 0x412adc
xor al, al
jmp 0x412b51
lea eax, [ebp - 0x230]
push eax
call fcn.004129b8
pop ecx
test al, al
jmp 0x412ac2
lea eax, [ebp - 0x128]
push str..
push eax
call fcn.0043f3c0
lea eax, [ebp - 0x128]
push eax
call fcn.0043f830
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x230]
push eax
call fcn.0043f830
mov byte [ebp + eax - 0x22f], bl
lea eax, [ebp - 0x128]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x230]
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