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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
test byte [ebp + 8], 0x1f
je 0x411983
mov eax, dword [esi + 0x248]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x4118f0
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x4118f0
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
and eax, 1
mov dword [ebp - 0xc], eax
mov edi, 0x101
je 0x4117e6
test byte [ebp + 8], 8
jne 0x4117e6
test byte [ebp + 9], 8
jne 0x4117e6
movzx eax, byte [esi + 0x24d]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x4117fd
test eax, eax
je 0x411805
movzx eax, byte [esi + 0x24d]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push edi
push dword [esi + 0x248]
call ebx
mov eax, dword [ebp + 8]
and eax, 8
mov dword [ebp - 4], eax
je 0x41182b
movzx eax, byte [esi + 0x24c]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push edi
push dword [esi + 0x248]
call ebx
mov eax, dword [ebp + 8]
and eax, 2
mov dword [ebp - 8], eax
je 0x411851
movzx eax, byte [esi + 0x24e]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push edi
push dword [esi + 0x248]
call ebx
mov eax, dword [ebp + 8]
and eax, 4
mov dword [ebp - 0x10], eax
je 0x411877
movzx eax, byte [esi + 0x24f]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push edi
push dword [esi + 0x248]
call ebx
mov eax, dword [ebp + 8]
and eax, 0x10
mov dword [ebp + 8], eax
je 0x41189d
movzx eax, byte [esi + 0x250]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push edi
push dword [esi + 0x248]
call ebx
xor ecx, ecx
cmp dword [ebp + 8], ecx
mov al, 0x80
je 0x4118ac
xor byte [ebp - 0xb5], al
cmp dword [ebp - 8], ecx
je 0x4118ba
xor byte [ebp - 0x100], al
xor byte [ebp - 0x70], al
cmp dword [ebp - 0x10], ecx
je 0x4118c8
xor byte [ebp - 0x100], al
xor byte [ebp - 0x6f], al
cmp dword [ebp - 4], ecx
je 0x4118d3
xor byte [ebp - 0xff], al
cmp dword [ebp - 0xc], ecx
je 0x4118de
xor byte [ebp - 0xfe], al
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x411979
test byte [ebp + 8], 1
push 2
pop ebx
je 0x41190c
xor eax, eax
mov al, byte [esi + 0x24d]
push edi
push eax
push 0x12
mov eax, esi
call fcn.00410e88
test byte [ebp + 8], 8
je 0x411925
xor eax, eax
mov al, byte [esi + 0x24c]
push edi
push eax
push 0x11
mov eax, esi
call fcn.00410e88
test byte [ebp + 8], bl
je 0x411944
xor eax, eax
mov al, byte [esi + 0x24e]
push edi
push eax
xor eax, eax
mov al, byte [esi + 0x254]
push eax
mov eax, esi
call fcn.00410e88
test byte [ebp + 8], 4
je 0x411960
xor eax, eax
mov al, byte [esi + 0x24f]
push edi
push eax
push 0xa1
mov eax, esi
call fcn.00410e88
test byte [ebp + 8], 0x10
je 0x411979
xor eax, eax
mov al, byte [esi + 0x250]
push edi
push eax
push 0x5b
mov eax, esi
call fcn.00410e88
mov edi, dword [esi]
push esi
call fcn.00412048
pop edi
pop ebx
leave
ret 4
Function at 0x4119aa
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 edx, edx
cmp dword [edi + 0x248], edx
mov esi, eax
je 0x411a76
cmp ebx, 0x14
je 0x411a76
cmp ebx, 0x90
je 0x411a76
cmp ebx, 0x91
je 0x411a76
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]
xor ecx, ecx
shl esi, 0x10
inc ecx
or esi, ecx
cmp byte [ebp + 8], cl
je 0x411a2e
mov eax, ebx
call fcn.0041142d
cmp al, cl
jne 0x411a34
or esi, 0x1000000
mov edx, dword [edi + 0x244]
test cl, dl
mov eax, 0x100
jne 0x411a4c
test eax, edx
jne 0x411a4c
cmp ebx, 0x12
jne 0x411a71
test dl, 8
jne 0x411a71
test dh, 8
jne 0x411a71
or esi, 0x20000000
push esi
push ebx
push 0x104
push dword [edi + 0x248]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x411a9c
push esi
push ebx
push eax
jmp 0x411a63
xor ecx, ecx
inc ecx
cmp byte [ebp + 8], cl
je 0x411a90
mov eax, ebx
call fcn.0041142d
cmp al, cl
je 0x411a90
push edx
push esi
push ebx
xor ebx, ebx
jmp 0x411a95
push edx
push esi
push ebx
mov ebx, ecx
mov eax, edi
call fcn.00410e88
push edi
mov edi, dword [edi + 4]
call fcn.00412048
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x411aac
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 0x411b7b
cmp ebx, 0x14
je 0x411b7b
cmp ebx, 0x90
je 0x411b7b
cmp ebx, 0x91
je 0x411b7b
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 0x411b1d
mov eax, ebx
call fcn.0041142d
cmp al, 1
jne 0x411b23
or esi, 0x1000000
mov eax, dword [edi + 0x244]
test al, 1
jne 0x411b37
test ah, 1
jne 0x411b37
cmp ebx, 0x12
jne 0x411b4f
test al, 8
jne 0x411b4f
test ah, 8
jne 0x411b4f
or esi, 0x20000000
push esi
push ebx
push 0x105
jmp 0x411b56
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 0x411ba0
cmp byte [ebp + 8], 1
je 0x411b93
mov eax, ebx
call fcn.0041142d
cmp al, 1
je 0x411b93
push ecx
push esi
push ebx
push 2
jmp 0x411b98
push ecx
push esi
push ebx
push 3
mov eax, edi
pop ebx
call fcn.00410e88
push edi
mov edi, dword [edi]
call fcn.00412048
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x412048
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
test edi, edi
jl 0x4120e8
jne 0x412065
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x4120e8
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 0x4120e0
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x4120e0
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 [0x462070]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.00458664
cmp eax, edi
jb 0x412097
jmp 0x4120e7
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
leave
ret 4
Function at 0x4120ec
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 0x41210b
xor al, al
jmp 0x412229
push eax
or eax, 0xffffffff
call fcn.00416a25
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.00449fa0
inc eax
push eax
call fcn.00449614
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + ebx]
cmp al, 0x2b
je 0x412152
cmp al, 0x5e
je 0x41214e
cmp al, 0x21
je 0x41214e
cmp al, 0x23
jne 0x412176
cmp al, 0x2b
jne 0x41215a
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x412173
cmp al, 0x5e
jne 0x412163
mov byte [esi], 1
jmp 0x412173
cmp al, 0x21
jne 0x41216c
mov eax, dword [ebp + 0x14]
jmp 0x412155
cmp al, 0x23
jne 0x412173
mov byte [edi], 1
inc ebx
jmp 0x412138
mov al, byte [ecx + ebx]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], ebx
jne 0x4121da
mov ebx, dword [ebp - 8]
lea edx, [ebp - 0x14]
mov esi, ecx
add al, 2
call fcn.0041200b
test eax, eax
jne 0x4121c6
push dword [ebp - 8]
mov esi, dword [ebp - 0xc]
push dword [esi*4 + 0x466518]
call fcn.004564ce
test eax, eax
pop ecx
pop ecx
je 0x4121b8
inc esi
cmp esi, 0x62
mov dword [ebp - 0xc], esi
jl 0x412197
cmp esi, 0x62
je 0x4121c6
cmp byte [esi + 0x4666a0], 0
je 0x4121cc
mov byte [ebp - 1], 0
jmp 0x41220b
mov eax, dword [esi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x41220b
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 0x4121f3
mov byte [esi], 1
test byte [ecx + 1], 4
je 0x4121ff
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
test byte [ecx + 1], 1
je 0x41220b
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x10]
and dword [eax], 0xff
call fcn.0044951c
push dword [ebp - 8]
call fcn.0044951c
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 0x10
Function at 0x412348
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 0x412365
xor eax, eax
inc eax
jmp 0x412461
push ebp
xor ebp, ebp
cmp esi, ebp
jne 0x41237a
push ebp
push 0x45cdd8
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x41238e
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebp
jne 0x412460
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 0x412446
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 0x41252f
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 0x412548
inc edi
add eax, 8
cmp edi, 0x10
jl 0x41253b
cmp edi, 0x10
jne 0x412551
xor eax, eax
jmp 0x4125bb
cmp byte [esi + 0x18], 1
jne 0x412592
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.00412651
call eax
jmp 0x4125b9
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 0x414192
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x4141c0
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 0x4141e5
and dword [edi], eax
push 1
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x4141e1
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.0044ae2f
mov dword [edi], eax
mov eax, dword [esi + 4]
add esp, 0x10
test byte [eax + 0xc], 0x20
je 0x4141e5
and dword [edi], 0
xor al, al
jmp 0x4141e7
mov al, 1
pop ebx
ret 4

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

Function at 0x414715
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 0x414775
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 0x414e01
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 0x414e21
xor al, al
jmp 0x414fb9
push ebx
push edi
push esi
call fcn.00449614
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.0044985c
lea eax, [eax + eax + 0x34]
push eax
call fcn.00449614
mov esi, 0x45c9ac
mov edi, eax
push esi
push edi
call fcn.004495f8
push esi
push ebx
call fcn.00449703
add esp, 0x18
test eax, eax
je 0x414eef
push str.StringFileInfo_
push edi
call fcn.004495ce
push esi
push ebx
call fcn.004499ac
add esp, 0x10
test eax, eax
jne 0x414ee6
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 0x414ec6
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.00416666
mov eax, dword [ebp - 0x10]
shr eax, 0x10
lea ebx, [edi + 0x28]
push eax
call fcn.00416666
mov ebx, dword [ebp + 0x10]
jmp 0x414ed1
push str.04090000
push edi
call fcn.004495ce
pop ecx
pop ecx
push esi
push edi
call fcn.004495ce
push ebx
push edi
call fcn.004495ce
add esp, 0x10
jmp 0x414eef
push ebx
push edi
call fcn.004495ce
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.00449521
test eax, eax
pop ecx
pop ecx
jne 0x414f2c
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x20]
push eax
push esi
call fcn.00449c77
push dword [ebp - 4]
and word [esi + 0x10], 0
call fcn.0044951c
push edi
call fcn.0044951c
add esp, 0x14
mov al, 1
jmp 0x414fb7
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 0x414fa5
push esi
push ebx
call fcn.00449703
test eax, eax
pop ecx
pop ecx
jne 0x414f80
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.00449872
add esp, 0x18
jmp 0x414f93
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.00449c77
add esp, 0xc
push dword [ebp - 4]
call fcn.0044951c
push edi
call fcn.0044951c
mov al, 1
jmp 0x414fb5
push dword [ebp - 4]
call fcn.0044951c
push edi
call fcn.0044951c
xor al, al
pop ecx
pop ecx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x414fd1
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 0x41500e
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x415001
or eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [ebp - 0x250]
leave
ret
Function at 0x415010
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x4151b5
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.00415029
lea eax, [ebp - 0x210]
push eax
call fcn.00415010
test al, al
pop ecx
pop ecx
je 0x4151f5
lea eax, [ebp - 0x210]
push 0x45d108
push eax
call fcn.004495ce
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.0044a246
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 0x4152b8
cmp bl, 1
jne 0x4152b8
test byte [ebp - 0x460], 0x10
jne 0x41529e
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x210]
push eax
mov byte [ebp - 1], bl
call fcn.004495f8
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004495ce
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004495ce
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
jne 0x4152b4
lea eax, [ebp - 0x460]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x41523f
xor bl, bl
jmp 0x41523f
xor bl, bl
jmp 0x4152bb
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 0x4152c8
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12b8
call fcn.0044c510
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x62c]
xor bl, bl
call fcn.00415029
push dword [ebp + 0xc]
lea eax, [ebp - 0x838]
call fcn.00415029
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.00415110
mov byte [ebp - 2], al
lea eax, [ebp - 0x62c]
push eax
call fcn.00415010
add esp, 0x14
test al, al
mov esi, 0x45d108
je 0x415333
lea eax, [ebp - 0x62c]
push esi
push eax
call fcn.004495ce
pop ecx
pop ecx
lea eax, [ebp - 0x838]
push eax
call fcn.00415010
test al, al
pop ecx
je 0x415353
lea eax, [ebp - 0x838]
push esi
push eax
call fcn.004495ce
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.0044a246
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 0x4154ca
mov edi, dword [sym.imp.KERNEL32.DLL_CopyFileW]
cmp byte [ebp - 1], 1
jne 0x4154ca
test byte [ebp - 0xa88], 0x10
jne 0x41547b
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.004154da
lea eax, [ebp - 0x10ac]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.004495f8
lea eax, [ebp - 0xea0]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.004495ce
lea eax, [ebp - 0xa5c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.004495ce
mov eax, esi
push eax
call fcn.00414fbc
add esp, 0x2c
test al, al
je 0x415455
cmp byte [ebp + 0x10], 0
je 0x4154c8
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 0x415468
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp + 0x14], 1
lea eax, [ebp - 0x420]
jne 0x4154ba
cmp byte [ebp - 2], 0
jne 0x41549b
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
je 0x4154c8
mov bl, 1
lea eax, [ebp - 0xa88]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4153a8
mov byte [ebp - 1], al
jmp 0x4153a8
push 0
push eax
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
je 0x4154c8
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x415475
push 0
push eax
lea eax, [ebp - 0x214]
push eax
call edi
jmp 0x415475
xor bl, bl
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret