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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
mov ebx, eax
push 0
push ebx
mov edi, ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ecx, ecx
cmp dword [edi + 0x248], ecx
mov esi, eax
je 0x4118e1
cmp ebx, 0x14
je 0x4118e1
cmp ebx, 0x90
je 0x4118e1
cmp ebx, 0x91
je 0x4118e1
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
or byte [ebp + ebx - 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 0x41189d
mov eax, ebx
call fcn.004112ab
cmp al, 1
jne 0x4118a3
or esi, 0x1000000
mov ecx, dword [edi + 0x244]
test cl, 0x21
mov eax, 0x100
jne 0x4118b8
cmp ebx, 0x12
jne 0x4118dc
test cl, 8
jne 0x4118dc
test eax, ecx
jne 0x4118dc
or esi, 0x20000000
push esi
push ebx
push 0x104
push dword [edi + 0x248]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x411906
push esi
push ebx
push eax
jmp 0x4118ce
cmp byte [ebp + 8], 1
je 0x4118f9
mov eax, ebx
call fcn.004112ab
cmp al, 1
je 0x4118f9
push ecx
push esi
push ebx
xor ebx, ebx
jmp 0x4118ff
push ecx
push esi
push ebx
xor ebx, ebx
inc ebx
mov eax, edi
call fcn.00410d27
push edi
mov edi, dword [edi + 4]
call fcn.00411e91
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
mov ebx, eax
push 0
push ebx
mov edi, ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ecx, ecx
cmp dword [edi + 0x248], ecx
mov esi, eax
je 0x4119e0
cmp ebx, 0x14
je 0x4119e0
cmp ebx, 0x90
je 0x4119e0
cmp ebx, 0x91
je 0x4119e0
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 0x411987
mov eax, ebx
call fcn.004112ab
cmp al, 1
jne 0x41198d
or esi, 0x1000000
mov eax, dword [edi + 0x244]
test al, 0x21
jne 0x41199c
cmp ebx, 0x12
jne 0x4119b4
test al, 8
jne 0x4119b4
test ah, 1
jne 0x4119b4
or esi, 0x20000000
push esi
push ebx
push 0x105
jmp 0x4119bb
push esi
push ebx
push 0x101
push dword [edi + 0x248]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp + ebx - 0x100]
xor byte [eax], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x411a05
cmp byte [ebp + 8], 1
je 0x4119f8
mov eax, ebx
call fcn.004112ab
cmp al, 1
je 0x4119f8
push ecx
push esi
push ebx
push 2
jmp 0x4119fd
push ecx
push esi
push ebx
push 3
mov eax, edi
pop ebx
call fcn.00410d27
push edi
mov edi, dword [edi]
call fcn.00411e91
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x411e91
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
test edi, edi
jl 0x411f31
jne 0x411eae
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x411f31
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x219]
neg al
push esi
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x411f29
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x411f29
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
call esi
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
sbb ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
fild qword [ebp - 0x18]
fstp qword [ebp - 0x28]
fild qword [ebp - 0x20]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x28]
fdiv qword [ebp - 0x30]
fmul qword [0x462760]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.004581c4
cmp eax, edi
jb 0x411ee0
jmp 0x411f30
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
leave
ret 4
Function at 0x411f35
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp word [eax], bx
push esi
mov esi, ecx
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ebx
jne 0x411f54
xor al, al
jmp 0x412072
push eax
or eax, 0xffffffff
call fcn.004168a2
mov ecx, dword [ebp + 0x14]
mov byte [edi], bl
mov byte [ecx], bl
mov ecx, dword [ebp + 0x10]
mov byte [esi], bl
push eax
mov dword [ebp - 0x10], eax
mov byte [ecx], bl
call fcn.00449b00
inc eax
push eax
call fcn.00449170
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + ebx]
cmp al, 0x2b
je 0x411f9b
cmp al, 0x5e
je 0x411f97
cmp al, 0x21
je 0x411f97
cmp al, 0x23
jne 0x411fbf
cmp al, 0x2b
jne 0x411fa3
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x411fbc
cmp al, 0x5e
jne 0x411fac
mov byte [esi], 1
jmp 0x411fbc
cmp al, 0x21
jne 0x411fb5
mov eax, dword [ebp + 0x14]
jmp 0x411f9e
cmp al, 0x23
jne 0x411fbc
mov byte [edi], 1
inc ebx
jmp 0x411f81
mov al, byte [ecx + ebx]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], ebx
jne 0x412023
mov ebx, dword [ebp - 8]
lea edx, [ebp - 0x14]
mov esi, ecx
add al, 2
call fcn.00411e54
test eax, eax
jne 0x41200f
push dword [ebp - 8]
mov esi, dword [ebp - 0xc]
push dword [esi*4 + 0x466518]
call fcn.0045602e
test eax, eax
pop ecx
pop ecx
je 0x412001
inc esi
cmp esi, 0x62
mov dword [ebp - 0xc], esi
jl 0x411fe0
cmp esi, 0x62
je 0x41200f
cmp byte [esi + 0x4666a0], 0
je 0x412015
mov byte [ebp - 1], 0
jmp 0x412054
mov eax, dword [esi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x412054
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov ecx, dword [ebp + 0xc]
movsx eax, ax
test ah, 2
mov dword [ecx], eax
je 0x41203c
mov byte [esi], 1
test byte [ecx + 1], 4
je 0x412048
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
test byte [ecx + 1], 1
je 0x412054
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x10]
and dword [eax], 0xff
call fcn.00449078
push dword [ebp - 8]
call fcn.00449078
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 0x10
Function at 0x412196
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x10
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [esp + 0x1c]
mov esi, eax
cmp edi, esi
jne 0x4121b3
xor eax, eax
inc eax
jmp 0x4122af
push ebp
xor ebp, ebp
cmp esi, ebp
jne 0x4121c8
push ebp
push 0x45d4c8
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4121dc
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebp
jne 0x4122ae
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebp
push dword [esp + 0x28]
mov ebx, eax
mov dword [esp + 0x24], 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 + 0x24]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebp
mov dword [esp + 0x14], eax
jne 0x412294
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
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 + 0x24]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
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
mov eax, dword [esp + 0x14]
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x41237d
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 0x412396
inc edi
add eax, 8
cmp edi, 0x10
jl 0x412389
cmp edi, 0x10
jne 0x41239f
xor eax, eax
jmp 0x412409
cmp byte [esi + 0x18], 1
jne 0x4123e0
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.0041249f
call eax
jmp 0x412407
push ebx
push dword [ebp + 8]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
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 0x413fe0
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x41400e
mov ebx, dword [edi]
push 0
push edi
push ebx
push dword [esp + 0x14]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414033
and dword [edi], eax
push 1
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x41402f
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.0044a98f
mov dword [edi], eax
mov eax, dword [esi + 4]
add esp, 0x10
test byte [eax + 0xc], 0x20
je 0x414033
and dword [edi], 0
xor al, al
jmp 0x414035
mov al, 1
pop ebx
ret 4

Function at 0x414513
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push edi
add eax, eax
mov dword [ebp + 0x14], eax
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov word [esi], di
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414560
lea eax, [ebp + 0x14]
push eax
push esi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0x14], edi
je 0x414557
shr dword [ebp + 0x14], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret

Function at 0x414563
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_PostMessageW]
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_SendMessageTimeoutW]
test eax, eax
jne 0x4145c3
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 0x414c46
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x414c66
xor al, al
jmp 0x414dfe
push ebx
push edi
push esi
call fcn.00449170
pop ecx
push eax
push esi
push 0
push dword [ebp + 8]
mov dword [ebp - 4], eax
call sub.VERSION.dll_GetFileVersionInfoW
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.004493b8
lea eax, [eax + eax + 0x34]
push eax
call fcn.00449170
mov esi, 0x45d09c
mov edi, eax
push esi
push edi
call fcn.00449154
push esi
push ebx
call fcn.0044925f
add esp, 0x18
test eax, eax
je 0x414d34
push str.StringFileInfo_
push edi
call fcn.0044912a
push esi
push ebx
call fcn.00449508
add esp, 0x10
test eax, eax
jne 0x414d2b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x414d0b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
push 4
lea ebx, [edi + 0x20]
pop edx
mov dword [ebp - 0x10], eax
call fcn.004164e3
mov eax, dword [ebp - 0x10]
shr eax, 0x10
lea ebx, [edi + 0x28]
push eax
call fcn.004164e3
mov ebx, dword [ebp + 0x10]
jmp 0x414d16
push str.04090000
push edi
call fcn.0044912a
pop ecx
pop ecx
push esi
push edi
call fcn.0044912a
push ebx
push edi
call fcn.0044912a
add esp, 0x10
jmp 0x414d34
push ebx
push edi
call fcn.0044912a
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.0044907d
test eax, eax
pop ecx
pop ecx
jne 0x414d71
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x20]
push eax
push esi
call fcn.004497d7
push dword [ebp - 4]
and word [esi + 0x10], 0
call fcn.00449078
push edi
call fcn.00449078
add esp, 0x14
mov al, 1
jmp 0x414dfc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x414dea
push esi
push ebx
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
jne 0x414dc5
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.004493ce
add esp, 0x18
jmp 0x414dd8
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.004497d7
add esp, 0xc
push dword [ebp - 4]
call fcn.00449078
push edi
call fcn.00449078
mov al, 1
jmp 0x414dfa
push dword [ebp - 4]
call fcn.00449078
push edi
call fcn.00449078
xor al, al
pop ecx
pop ecx
pop edi
pop ebx
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x414e53
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x414e46
or eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x250]
leave
ret
Function at 0x414e55
Capabilities:
Check if file exists
Get file attributes

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc90
push dword [ebp + 8]
lea eax, [ebp - 0x210]
mov byte [ebp - 1], 0
call fcn.00414e6e
lea eax, [ebp - 0x210]
push eax
call fcn.00414e55
test al, al
pop ecx
pop ecx
je 0x41503a
lea eax, [ebp - 0x210]
push 0x45d7f8
push eax
call fcn.0044912a
pop ecx
pop ecx
push ebx
push esi
lea eax, [ebp - 0xc90]
push eax
lea eax, [ebp - 0xa84]
push eax
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00449da6
add esp, 0x14
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov bl, 1
je 0x4150fd
cmp bl, 1
jne 0x4150fd
test byte [ebp - 0x460], 0x10
jne 0x4150e3
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x210]
push eax
mov byte [ebp - 1], bl
call fcn.00449154
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0044912a
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0044912a
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x4150f9
lea eax, [ebp - 0x460]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x415084
xor bl, bl
jmp 0x415084
xor bl, bl
jmp 0x415100
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 0x41510d
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12b8
call fcn.0044c070
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x62c]
mov byte [ebp - 2], 0
call fcn.00414e6e
push dword [ebp + 0xc]
lea eax, [ebp - 0x838]
call fcn.00414e6e
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.00414f55
mov byte [ebp - 3], al
lea eax, [ebp - 0x62c]
push eax
call fcn.00414e55
add esp, 0x14
test al, al
mov esi, 0x45d7f8
je 0x41517a
lea eax, [ebp - 0x62c]
push esi
push eax
call fcn.0044912a
pop ecx
pop ecx
lea eax, [ebp - 0x838]
push eax
call fcn.00414e55
test al, al
pop ecx
je 0x41519a
lea eax, [ebp - 0x838]
push esi
push eax
call fcn.0044912a
pop ecx
pop ecx
lea eax, [ebp - 0x12b8]
push eax
lea eax, [ebp - 0xc94]
push eax
lea eax, [ebp - 0xea0]
push eax
lea eax, [ebp - 0x10ac]
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.00449da6
add esp, 0x14
lea eax, [ebp - 0xa88]
push eax
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
mov byte [ebp - 1], 1
je 0x415313
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp byte [ebp - 1], 1
jne 0x415313
test byte [ebp - 0xa88], 0x10
mov byte [ebp - 2], 1
jne 0x4152c6
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x12b8]
push eax
lea eax, [ebp - 0xc94]
push eax
lea eax, [ebp - 0xa5c]
push eax
lea esi, [ebp - 0x420]
call fcn.00415326
lea eax, [ebp - 0x10ac]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00449154
lea eax, [ebp - 0xea0]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0044912a
lea eax, [ebp - 0xa5c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0044912a
mov eax, esi
push eax
call fcn.00414e01
add esp, 0x2c
test al, al
je 0x4152a2
cmp byte [ebp + 0x10], 0
je 0x41530f
mov eax, esi
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
mov eax, esi
push eax
je 0x4152b5
call ebx
cmp byte [ebp + 0x14], 1
lea eax, [ebp - 0x420]
jne 0x415301
cmp byte [ebp - 3], 0
jne 0x4152e6
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x41530f
lea eax, [ebp - 0xa88]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4151f5
mov byte [ebp - 1], al
jmp 0x4151f5
push 0
push eax
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
je 0x41530f
lea eax, [ebp - 0x214]
push eax
call ebx
jmp 0x4152c2
push 0
push eax
lea eax, [ebp - 0x214]
push eax
call edi
jmp 0x4152c2
xor bl, bl
jmp 0x415316
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 0x41553b
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.004493b8
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
pop ecx
jne 0x415557
and word [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4155d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jne 0x41557f
push 0
push esi
call ebp
test eax, eax
je 0x415584
jmp 0x4155d4
cmp eax, 3
jne 0x4155a2
push esi
call fcn.00416034
mov edi, eax
push 0x5c
push edi
call fcn.0044b137
add esp, 0xc
test eax, eax
jne 0x4155a8
push edi
call fcn.00449078
pop ecx
xor al, al
pop edi
pop esi
pop ebp
ret
and word [eax], 0
push ebx
push edi
call fcn.0041553b
push edi
mov bl, al
call fcn.00449078
pop ecx
pop ecx
test bl, bl
je 0x4155cb
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x4155a4
test al, 0x10
je 0x4155a2
mov al, 1
jmp 0x4155a4

Function at 0x4155d8
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push dword [ebp + 8]
lea eax, [ebp - 0x438]
call fcn.00414e6e
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
call fcn.00414e6e
pop ecx
pop ecx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x415651
cmp byte [ebp + 0x10], al
je 0x41564d
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x415649
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
leave
ret
xor al, al
leave
ret
lea eax, [ebp - 0x438]
push eax
call fcn.00414e55
test al, al
pop ecx
je 0x41564d
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.00414e55
xor ebx, ebx
test al, al
pop ecx
je 0x415682
cmp byte [ebp + 0x10], bl
jne 0x4156a4
xor al, al
jmp 0x41571b
lea eax, [ebp - 0x22c]
push eax
call fcn.0041553b
test al, al
pop ecx
je 0x41567b
lea eax, [ebp - 0x22c]
push eax
call fcn.00414e55
pop ecx
test al, al
jmp 0x415679
lea eax, [ebp - 0x438]
push 0x45d7f8
push eax
call fcn.0044912a
lea eax, [ebp - 0x438]
push eax
call fcn.004493b8
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
push eax
call fcn.004493b8
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x438]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x22c]
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_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
leave
ret
Function at 0x41571e
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
call fcn.00414e6e
push dword [ebp + 0xc]
lea eax, [ebp - 0x438]
call fcn.00414e6e
lea eax, [ebp - 0x22c]
push eax
call fcn.00414e55
add esp, 0xc
test al, al
jne 0x415758
leave
ret
lea eax, [ebp - 0x438]
push ebx
push eax
call fcn.00414e55
xor ebx, ebx
test al, al
pop ecx
je 0x4157c7
cmp byte [ebp + 0x10], bl
jne 0x415778
xor al, al
jmp 0x415879
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4157c7
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x4157c7
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
jmp 0x415879
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00414f55
test al, al
pop ecx
pop ecx
je 0x415814
push 1
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.004155d8
add esp, 0xc
test al, al
je 0x415771
lea eax, [ebp - 0x22c]
push 1
push eax
call fcn.0041587c
pop ecx
pop ecx
test al, al
jmp 0x4157bf
lea eax, [ebp - 0x22c]
push eax
call fcn.004493b8
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x438]
push eax
call fcn.004493b8
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x438]
mov dword [ebp - 0x14], eax
pop ecx
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], 1
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
leave
ret

Function at 0x41587c
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
call fcn.00414e6e
lea eax, [ebp - 0x22c]
push eax
call fcn.00414e55
test al, al
pop ecx
pop ecx
jne 0x4158a7
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x22c]
push eax
jne 0x4158c3
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x415906
call fcn.004493b8
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x22c]
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_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
leave
ret