joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41180f
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 0x4118d2
cmp ebx, 0x14
je 0x4118d2
cmp ebx, 0x90
je 0x4118d2
cmp ebx, 0x91
je 0x4118d2
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 0x41188e
mov eax, ebx
call fcn.0041129c
cmp al, 1
jne 0x411894
or esi, 0x1000000
mov ecx, dword [edi + 0x244]
test cl, 0x21
mov eax, 0x100
jne 0x4118a9
cmp ebx, 0x12
jne 0x4118cd
test cl, 8
jne 0x4118cd
test eax, ecx
jne 0x4118cd
or esi, 0x20000000
push esi
push ebx
push 0x104
push dword [edi + 0x248]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4118f7
push esi
push ebx
push eax
jmp 0x4118bf
cmp byte [ebp + 8], 1
je 0x4118ea
mov eax, ebx
call fcn.0041129c
cmp al, 1
je 0x4118ea
push ecx
push esi
push ebx
xor ebx, ebx
jmp 0x4118f0
push ecx
push esi
push ebx
xor ebx, ebx
inc ebx
mov eax, edi
call fcn.00410d18
push edi
mov edi, dword [edi + 4]
call fcn.00411e82
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x411907
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 0x4119d1
cmp ebx, 0x14
je 0x4119d1
cmp ebx, 0x90
je 0x4119d1
cmp ebx, 0x91
je 0x4119d1
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 0x411978
mov eax, ebx
call fcn.0041129c
cmp al, 1
jne 0x41197e
or esi, 0x1000000
mov eax, dword [edi + 0x244]
test al, 0x21
jne 0x41198d
cmp ebx, 0x12
jne 0x4119a5
test al, 8
jne 0x4119a5
test ah, 1
jne 0x4119a5
or esi, 0x20000000
push esi
push ebx
push 0x105
jmp 0x4119ac
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 0x4119f6
cmp byte [ebp + 8], 1
je 0x4119e9
mov eax, ebx
call fcn.0041129c
cmp al, 1
je 0x4119e9
push ecx
push esi
push ebx
push 2
jmp 0x4119ee
push ecx
push esi
push ebx
push 3
mov eax, edi
pop ebx
call fcn.00410d18
push edi
mov edi, dword [edi]
call fcn.00411e82
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x411e82
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
test edi, edi
jl 0x411f22
jne 0x411e9f
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x411f22
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 0x411f1a
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x411f1a
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 [0x4616e0]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.00457ac4
cmp eax, edi
jb 0x411ed1
jmp 0x411f21
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
leave
ret 4
Function at 0x411f26
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 0x411f45
xor al, al
jmp 0x412061
push ebx
push eax
call fcn.004166c7
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.00449350
inc eax
push eax
call fcn.004489c4
add esp, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + ebx]
cmp al, 0x2b
je 0x411f8a
cmp al, 0x5e
je 0x411f86
cmp al, 0x21
je 0x411f86
cmp al, 0x23
jne 0x411fae
cmp al, 0x2b
jne 0x411f92
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x411fab
cmp al, 0x5e
jne 0x411f9b
mov byte [esi], 1
jmp 0x411fab
cmp al, 0x21
jne 0x411fa4
mov eax, dword [ebp + 0x14]
jmp 0x411f8d
cmp al, 0x23
jne 0x411fab
mov byte [edi], 1
inc ebx
jmp 0x411f70
mov al, byte [ecx + ebx]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], ebx
jne 0x412012
mov ebx, dword [ebp - 8]
lea edx, [ebp - 0x14]
mov esi, ecx
add al, 2
call fcn.00411e45
test eax, eax
jne 0x411ffe
push dword [ebp - 8]
mov esi, dword [ebp - 0xc]
push dword [esi*4 + 0x465528]
call fcn.00455dee
test eax, eax
pop ecx
pop ecx
je 0x411ff0
inc esi
cmp esi, 0x62
mov dword [ebp - 0xc], esi
jl 0x411fcf
cmp esi, 0x62
je 0x411ffe
cmp byte [esi + 0x4656b0], 0
je 0x412004
mov byte [ebp - 1], 0
jmp 0x412043
mov eax, dword [esi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x412043
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 0x41202b
mov byte [esi], 1
test byte [ecx + 1], 4
je 0x412037
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
test byte [ecx + 1], 1
je 0x412043
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x10]
and dword [eax], 0xff
call fcn.004488cc
push dword [ebp - 8]
call fcn.004488cc
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 0x10
Function at 0x412180
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 0x41219d
xor eax, eax
inc eax
jmp 0x412299
push ebp
xor ebp, ebp
cmp esi, ebp
jne 0x4121b2
push ebp
push 0x45c4c8
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4121c6
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebp
jne 0x412298
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 0x41227e
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 0x412367
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 0x412380
inc edi
add eax, 8
cmp edi, 0x10
jl 0x412373
cmp edi, 0x10
jne 0x412389
xor eax, eax
jmp 0x4123f3
cmp byte [esi + 0x18], 1
jne 0x4123ca
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.00412489
call eax
jmp 0x4123f1
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 0x413f84
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x413fb2
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 0x413fd7
and dword [edi], eax
push 1
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x413fd3
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.0044a1df
mov dword [edi], eax
mov eax, dword [esi + 4]
add esp, 0x10
test byte [eax + 0xc], 0x20
je 0x413fd7
and dword [edi], 0
xor al, al
jmp 0x413fd9
mov al, 1
pop ebx
ret 4

Function at 0x414343
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 0x414390
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 0x414387
shr dword [ebp + 0x14], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret

Function at 0x414393
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 0x4143f3
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 0x414a76
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 0x414a96
xor al, al
jmp 0x414c2e
push ebx
push edi
push esi
call fcn.004489c4
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.00448c0c
lea eax, [eax + eax + 0x34]
push eax
call fcn.004489c4
mov esi, 0x45c09c
mov edi, eax
push esi
push edi
call fcn.004489a8
push esi
push ebx
call fcn.00448ab3
add esp, 0x18
test eax, eax
je 0x414b64
push str.StringFileInfo_
push edi
call fcn.0044897e
push esi
push ebx
call fcn.00448d5c
add esp, 0x10
test eax, eax
jne 0x414b5b
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 0x414b3b
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.0041630f
mov eax, dword [ebp - 0x10]
shr eax, 0x10
lea ebx, [edi + 0x28]
push eax
call fcn.0041630f
mov ebx, dword [ebp + 0x10]
jmp 0x414b46
push str.04090000
push edi
call fcn.0044897e
pop ecx
pop ecx
push esi
push edi
call fcn.0044897e
push ebx
push edi
call fcn.0044897e
add esp, 0x10
jmp 0x414b64
push ebx
push edi
call fcn.0044897e
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.004488d1
test eax, eax
pop ecx
pop ecx
jne 0x414ba1
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x20]
push eax
push esi
call fcn.00449027
push dword [ebp - 4]
and word [esi + 0x10], 0
call fcn.004488cc
push edi
call fcn.004488cc
add esp, 0x14
mov al, 1
jmp 0x414c2c
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 0x414c1a
push esi
push ebx
call fcn.00448ab3
test eax, eax
pop ecx
pop ecx
jne 0x414bf5
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.00448c22
add esp, 0x18
jmp 0x414c08
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.00449027
add esp, 0xc
push dword [ebp - 4]
call fcn.004488cc
push edi
call fcn.004488cc
mov al, 1
jmp 0x414c2a
push dword [ebp - 4]
call fcn.004488cc
push edi
call fcn.004488cc
xor al, al
pop ecx
pop ecx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x414c46
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 0x414c83
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x414c76
or eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x250]
leave
ret
Function at 0x414c85
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x414e2a
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.00414c9e
lea eax, [ebp - 0x210]
push eax
call fcn.00414c85
test al, al
pop ecx
pop ecx
je 0x414e6a
lea eax, [ebp - 0x210]
push 0x45c7f8
push eax
call fcn.0044897e
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.004495f6
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 0x414f2d
cmp bl, 1
jne 0x414f2d
test byte [ebp - 0x460], 0x10
jne 0x414f13
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x210]
push eax
mov byte [ebp - 1], bl
call fcn.004489a8
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0044897e
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0044897e
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x414f29
lea eax, [ebp - 0x460]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x414eb4
xor bl, bl
jmp 0x414eb4
xor bl, bl
jmp 0x414f30
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 0x414f3d
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12b8
call fcn.0044b8a0
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x62c]
mov byte [ebp - 2], 0
call fcn.00414c9e
push dword [ebp + 0xc]
lea eax, [ebp - 0x838]
call fcn.00414c9e
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.00414d85
mov byte [ebp - 3], al
lea eax, [ebp - 0x62c]
push eax
call fcn.00414c85
add esp, 0x14
test al, al
mov esi, 0x45c7f8
je 0x414faa
lea eax, [ebp - 0x62c]
push esi
push eax
call fcn.0044897e
pop ecx
pop ecx
lea eax, [ebp - 0x838]
push eax
call fcn.00414c85
test al, al
pop ecx
je 0x414fca
lea eax, [ebp - 0x838]
push esi
push eax
call fcn.0044897e
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.004495f6
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 0x415143
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp byte [ebp - 1], 1
jne 0x415143
test byte [ebp - 0xa88], 0x10
mov byte [ebp - 2], 1
jne 0x4150f6
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.00415156
lea eax, [ebp - 0x10ac]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.004489a8
lea eax, [ebp - 0xea0]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0044897e
lea eax, [ebp - 0xa5c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0044897e
mov eax, esi
push eax
call fcn.00414c31
add esp, 0x2c
test al, al
je 0x4150d2
cmp byte [ebp + 0x10], 0
je 0x41513f
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 0x4150e5
call ebx
cmp byte [ebp + 0x14], 1
lea eax, [ebp - 0x420]
jne 0x415131
cmp byte [ebp - 3], 0
jne 0x415116
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x41513f
lea eax, [ebp - 0xa88]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x415025
mov byte [ebp - 1], al
jmp 0x415025
push 0
push eax
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
je 0x41513f
lea eax, [ebp - 0x214]
push eax
call ebx
jmp 0x4150f2
push 0
push eax
lea eax, [ebp - 0x214]
push eax
call edi
jmp 0x4150f2
xor bl, bl
jmp 0x415146
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 0x41536b
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.00448c0c
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
pop ecx
jne 0x415387
and word [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x415400
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jne 0x4153af
push 0
push esi
call ebp
test eax, eax
je 0x4153b4
jmp 0x415404
cmp eax, 3
jne 0x4153d2
push esi
call fcn.00415e61
mov edi, eax
push 0x5c
push edi
call fcn.0044a987
add esp, 0xc
test eax, eax
jne 0x4153d8
push edi
call fcn.004488cc
pop ecx
xor al, al
pop edi
pop esi
pop ebp
ret
and word [eax], 0
push ebx
push edi
call fcn.0041536b
push edi
mov bl, al
call fcn.004488cc
pop ecx
pop ecx
test bl, bl
je 0x4153fb
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x4153d4
test al, 0x10
je 0x4153d2
mov al, 1
jmp 0x4153d4

Function at 0x415408
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push dword [ebp + 8]
lea eax, [ebp - 0x438]
call fcn.00414c9e
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
call fcn.00414c9e
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 0x415481
cmp byte [ebp + 0x10], al
je 0x41547d
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.00448ab3
test eax, eax
pop ecx
pop ecx
je 0x415479
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.00414c85
test al, al
pop ecx
je 0x41547d
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.00414c85
xor ebx, ebx
test al, al
pop ecx
je 0x4154b2
cmp byte [ebp + 0x10], bl
jne 0x4154d4
xor al, al
jmp 0x41554b
lea eax, [ebp - 0x22c]
push eax
call fcn.0041536b
test al, al
pop ecx
je 0x4154ab
lea eax, [ebp - 0x22c]
push eax
call fcn.00414c85
pop ecx
test al, al
jmp 0x4154a9
lea eax, [ebp - 0x438]
push 0x45c7f8
push eax
call fcn.0044897e
lea eax, [ebp - 0x438]
push eax
call fcn.00448c0c
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
push eax
call fcn.00448c0c
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 0x41554e
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
call fcn.00414c9e
push dword [ebp + 0xc]
lea eax, [ebp - 0x438]
call fcn.00414c9e
lea eax, [ebp - 0x22c]
push eax
call fcn.00414c85
add esp, 0xc
test al, al
jne 0x415588
leave
ret
lea eax, [ebp - 0x438]
push ebx
push eax
call fcn.00414c85
xor ebx, ebx
test al, al
pop ecx
je 0x4155f7
cmp byte [ebp + 0x10], bl
jne 0x4155a8
xor al, al
jmp 0x4156a9
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4155f7
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00448ab3
test eax, eax
pop ecx
pop ecx
je 0x4155f7
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 0x4156a9
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00414d85
test al, al
pop ecx
pop ecx
je 0x415644
push 1
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00415408
add esp, 0xc
test al, al
je 0x4155a1
lea eax, [ebp - 0x22c]
push 1
push eax
call fcn.004156ac
pop ecx
pop ecx
test al, al
jmp 0x4155ef
lea eax, [ebp - 0x22c]
push eax
call fcn.00448c0c
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x438]
push eax
call fcn.00448c0c
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 0x4156ac
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
call fcn.00414c9e
lea eax, [ebp - 0x22c]
push eax
call fcn.00414c85
test al, al
pop ecx
pop ecx
jne 0x4156d7
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x22c]
push eax
jne 0x4156f3
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x415736
call fcn.00448c0c
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