joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b303f
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
push edi
push dword [0x5452b4]
call fcn.004d4d57
cmp dword [0x542790], 0
mov edi, eax
mov esi, 0x50010000
jne 0x4b31a7
mov ebx, 0xa4
push ebx
push 0
push 0x542798
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x542798], 0x1b
mov dword [0x54279c], ebx
mov dword [0x5427a0], 0x4b29dc
mov dword [0x5427a4], 0x4b2cf4
mov dword [0x5427bc], 0x4b2759
mov dword [0x5427cc], 0x4b2cea
mov dword [0x5427c4], 0x4b2c95
mov dword [0x5427c0], 0x4b331c
mov dword [0x5427ac], 0x4b3803
mov dword [0x5427a8], 0x4b2f3b
mov dword [0x5427b0], 0x4b2f85
mov dword [0x5427b4], 0x4b3834
mov dword [0x5427d8], 0x4b2eb2
mov dword [0x5427dc], 0x4b37bc
mov dword [0x5427d0], 0x4b2e21
mov dword [0x5427d4], 0x4b3669
mov dword [0x542810], 0x4b34b6
mov dword [0x542814], 0x4b2d39
mov dword [0x542818], 0x4b3509
mov dword [0x54281c], 0x4b2dc5
mov dword [0x542820], 0x4b357b
mov dword [0x542824], 0x4b2dff
mov dword [0x542808], 0x4b2d94
mov dword [0x542838], 0x4b359d
call fcn.004bcf6c
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4b319d
cmp dword [esp + 0x24], 2
jne 0x4b319d
cmp dword [esp + 0x18], 6
jb 0x4b319d
mov eax, dword [0x54207c]
mov dword [0x542794], eax
mov dword [0x542790], 1
test byte [esp + 0x140], 2
jne 0x4b31b6
mov esi, 0x50010002
test byte [esp + 0x140], 1
jne 0x4b31c3
or esi, 5
test byte [esp + 0x140], 0x20
je 0x4b31d0
or esi, 0x20
push 0x1f4
push 0
push dword [0x540d84]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x13c]
push eax
call fcn.004c4096
test ebp, ebp
je 0x4b3309
push 0
push dword [0x540d88]
push 0xffffffffffffffff
push dword [edi]
push dword [esp + 0x14c]
push dword [esp + 0x14c]
push dword [esp + 0x14c]
push dword [esp + 0x14c]
push esi
push 0
push str.SysTreeView32
push 0x200
call dword [sym.imp.USER32.DLL_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x4b330d
push dword [esp + 0x12c]
push dword [0x5452d0]
call fcn.004d53d6
push 0x4b387d
push 0xfffffffffffffffc
push ebx
mov edi, eax
call dword [sym.imp.USER32.DLL_SetWindowLongW]
push 4
push 4
push 0x112c
push ebx
mov dword [0x54283c], eax
call dword [sym.imp.USER32.DLL_SendMessageW]
push 0x542798
push ebx
push edi
push dword [esp + 0x138]
mov dword [edi + 0x14], ebp
mov dword [edi + 0x18], 0x19
call fcn.004bd272
mov ebx, eax
mov eax, 0x100
test dword [esp + 0x140], eax
je 0x4b330d
or esi, eax
push esi
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.DLL_SetWindowLongW]
test dword [esp + 0x140], 0x10000
je 0x4b330d
push edi
call fcn.004b2bd1
pop ecx
push 0
push 2
push 0x1108
push dword [edi]
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, eax
je 0x4b32f9
push eax
push dword [edi]
call fcn.004bd89a
push edi
push str.PB_3State
push dword [edi]
call dword [sym.imp.USER32.DLL_SetPropW]
jmp 0x4b330d
mov ebx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x118
ret 0x18
Function at 0x4b4516
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x5452d0]
call fcn.004d5397
mov ebx, eax
test ebx, ebx
je 0x4b457a
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x4b453f
push dword [esp + 0xc]
push ebx
call eax
jmp 0x4b457a
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.004d5d20
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.004d5e00
pop edi
pop esi
pop ebx
ret 8

Function at 0x4b48e1
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.DLL_GetKeyState]
xor esi, esi
push 1
call edi
mov ebx, 0x8000
test bx, ax
je 0x4b48fb
inc esi
push 2
call edi
test bx, ax
je 0x4b4907
or esi, 2
push 4
call edi
test bx, ax
je 0x4b4913
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4b4ef5
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.DLL_GetClientRect]
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x4b4f2d
push dword [edi]
call dword [sym.imp.USER32.DLL_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
test byte [edi + 0x14], 8
je 0x4b5012
call dword [sym.imp.USER32.DLL_GetFocus]
cmp dword [edi], eax
jne 0x4b5012
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
sub ebp, dword [esp + 0x18]
mov dword [esp + 0x28], eax
test eax, eax
jle 0x4b5040
test ebp, ebp
jle 0x4b5040
push esi
call dword [sym.imp.GDI32.DLL_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x4b5040
push ebp
push dword [esp + 0x2c]
push esi
call dword [sym.imp.GDI32.DLL_CreateCompatibleBitmap]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4b5009
push eax
push ebx
call dword [sym.imp.GDI32.DLL_SelectObject]
cmp dword [edi + 0x10], 0
je 0x4b4fb3
push 4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x10]
push eax
push eax
push ebx
call dword [sym.imp.USER32.DLL_DrawStateW]
jmp 0x4b4fc8
push 0
call dword [sym.imp.GDI32.DLL_GetStockObject]
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.DLL_FillRect]
push 2
pop eax
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
sub dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.USER32.DLL_DrawFocusRect]
push 0xcc0020
xor eax, eax
push eax
push eax
push ebx
push ebp
push dword [esp + 0x3c]
push eax
push eax
push esi
call dword [sym.imp.GDI32.DLL_BitBlt]
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.DLL_DeleteObject]
push ebx
call dword [sym.imp.GDI32.DLL_DeleteDC]
jmp 0x4b5040
cmp dword [edi + 0x10], ebx
je 0x4b502c
push 4
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x10]
push ebx
push ebx
push esi
call dword [sym.imp.USER32.DLL_DrawStateW]
jmp 0x4b5040
push ebx
call dword [sym.imp.GDI32.DLL_GetStockObject]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.DLL_FillRect]
cmp dword [esp + 0x10], 0
je 0x4b5050
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4b5058
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor ebx, ebx
call dword [sym.imp.USER32.DLL_GetMessagePos]
mov edi, dword [esp + 0x20]
mov esi, eax
push 0xfffffffffffffff4
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowLongW]
push dword [edi]
mov dword [esp + 0x14], eax
call fcn.004bd243
push eax
call fcn.004bee89
push dword [0x5428fc]
mov dword [esp + 0x24], eax
call fcn.004d4ea7
mov ebp, eax
movsx ecx, si
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
push dword [edi]
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.DLL_ScreenToClient]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
push 0x10
call esi
mov edi, 0x8000
test di, ax
je 0x4b50cc
inc ebx
push 0x12
call esi
test di, ax
je 0x4b50d8
or ebx, 2
push 0x11
call esi
test di, ax
je 0x4b50e4
or ebx, 4
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.004b48e1
push 0x4b5139
push ebp
push dword [esp + 0x2c]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x34]
push dword [esp + 0x2c]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x3c]
push dword [esp + 0x20]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x44]
movzx eax, ax
push 0x332c
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], eax
call fcn.004c329a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4be13a
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp + 8]
or eax, 0x4000
push eax
push 0x2b4
lea eax, [ebp - 0x4bc]
push eax
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.DLL_SHGetFileInfoW]
mov esp, ebp
pop ebp
ret 4

Function at 0x4be17f
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4be1fb
cmp dword [0x544b90], 1
je 0x4be1fb
push ebx
mov ebx, 0x544b98
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x544bb4]
and dword [0x544bbc], 0
mov dword [0x544bb8], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x544bb0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x544bb4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4be1f3
push 0
push dword [0x544b94]
mov dword [0x544b90], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop esi
ret 4
Function at 0x4be4bc
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x5446b8], 0
jne 0x4be58d
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x5452dc
mov dword [0x5446b8], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x640
push eax
push 8
push dword [0x540d84]
mov dword [0x544b7c], eax
mov dword [0x5446bc], 0x1f4
call esi
mov dword [0x544b8c], eax
mov eax, dword [0x5446bc]
add eax, eax
push eax
push 8
push dword [0x540d84]
call esi
xor ebx, ebx
mov dword [0x544b88], eax
push 0x544b98
mov dword [0x544b80], ebx
mov dword [0x544b84], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebp
push ebx
call esi
push ebx
push ebx
push ebp
push ebx
mov dword [0x544bb0], eax
call esi
mov dword [0x544bb4], eax
cmp dword [0x544bb0], ebx
je 0x4be584
test eax, eax
je 0x4be584
lea eax, [esp + 0xc]
mov dword [0x544b90], ebx
push eax
push ebx
push ebx
push 0x4bdf3f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x544b94], eax
jmp 0x4be58a
mov dword [0x544b90], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4be58f
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4be634
cmp dword [esp + 0xc], 0
je 0x4be634
cmp dword [0x544b90], 1
je 0x4be634
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4be633
push ebp
mov ebp, 0x544b98
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x544bb4]
mov dword [0x544bb8], esi
mov dword [0x544bbc], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x544bb0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x544bb4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4be62b
push 0
push dword [0x544b94]
mov dword [0x544b90], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop edi
pop esi
ret 8
Function at 0x4bec0e
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
mov esi, 0xc8
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4bed66
mov eax, dword [esp + 0x20]
dec eax
je 0x4bed49
dec eax
jne 0x4bed66
lea eax, [esp + 0x124]
xor ebp, ebp
push eax
call fcn.004bebc7
pop ecx
test eax, eax
je 0x4bec7a
mov ebx, dword [esp + 0x128]
mov edi, dword [esp + 0x12c]
cmp byte [esp + 0x23e], 1
jmp 0x4beca7
lea eax, [esp + 0x240]
mov dword [esp + 0x240], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4becac
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x35a], 1
jne 0x4becac
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x4bed45
dec ebx
je 0x4bed41
dec ebx
je 0x4bed20
dec ebx
je 0x4becda
sub ebx, 4
jne 0x4bed66
test edi, edi
jne 0x4bed66
push 0x6e
jmp 0x4bed65
sub edi, 0
je 0x4bed12
dec edi
je 0x4bed04
dec edi
je 0x4becf6
dec edi
jne 0x4bed66
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x4bed66
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x4bed66
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x4bed66
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x4bed66
sub edi, 0
je 0x4bed3d
dec edi
je 0x4bed39
dec edi
jne 0x4bed66
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x4bed66
push 0x3c
jmp 0x4bed65
push 0x32
jmp 0x4bed65
push 0x14
jmp 0x4bed65
push 5
jmp 0x4bed65
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4bed63
cmp eax, 0xa
je 0x4bed5f
cmp eax, 0x5a
jne 0x4bed66
push 0x28
jmp 0x4bed65
push 0x1e
jmp 0x4bed65
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
Function at 0x4bfc6e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x5452f8]
call fcn.004d5397
mov esi, eax
test esi, esi
je 0x4bfd48
cmp dword [ebp + 0xc], 0
je 0x4bfcba
push 4
push dword [esi]
call dword [sym.imp.USER32.DLL_GetWindow]
test eax, eax
je 0x4bfcab
cmp dword [esi + 0x1c], 0
jne 0x4bfcab
push eax
call dword [sym.imp.USER32.DLL_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.DLL_ShowWindow]
jmp 0x4bfd48
test byte [ebp + 0x10], 3
je 0x4bfcd5
push 4
push dword [esi]
call dword [sym.imp.USER32.DLL_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.004c06cf
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x4bfcfa
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x4bfd0e
push dword [esi]
call dword [sym.imp.USER32.DLL_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.DLL_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x4bfd2b
test ebx, ebx
je 0x4bfd1f
push 8
jmp 0x4bfd31
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x4bfd3e
test ebx, ebx
je 0x4bfd34
push 3
pop ecx
jmp 0x4bfd3e
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.DLL_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x4c0862
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x4c08f5
push 9
call esi
test al, al
jns 0x4c08f5
push 0x11
call esi
test al, al
js 0x4c08f5
push 0x10
call esi
test al, al
js 0x4c08f5
push 0x12
call esi
test al, al
js 0x4c08f5
push 0x10
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 5
lea eax, [ebp - 0x24]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x4c08d7
push 4
lea eax, [ebp - 0x24]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x4c08f5
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x4c08f5
xor eax, eax
jmp 0x4c0976
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4c091d
push 0x11
call esi
test al, al
js 0x4c0915
push 0x10
call esi
test al, al
js 0x4c0915
push 0x12
call esi
test al, al
jns 0x4c091d
push 1
push edi
call fcn.004c097e
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x4c0933
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x4c0973
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x4c0973
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x4c0973
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x4c0973
lea eax, [esi - 1]
push eax
push dword [0x5452f8]
call fcn.004d5397
test eax, eax
je 0x4c0973
mov eax, dword [eax + 8]
jmp 0x4c0975
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c0c8e
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x4c0dd6
xor ecx, ecx
cmp word [eax], cx
je 0x4c0dd6
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x4c0ce7
cmp eax, 3
jne 0x4c0d21
cmp word [esp + 0xa], 0x3a
jne 0x4c0d21
cmp eax, 2
jne 0x4c0d05
lea eax, [esp + 8]
push 0x5094b4
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4c0dd6
push 0xfffffffffffffffe
pop edi
jmp 0x4c0dd6
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x4c0d36
cmp ax, bx
jne 0x4c0d40
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x4c0d29
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4c0d7f
test byte [esp + 0x21c], 0x10
je 0x4c0d66
push 0xfffffffffffffffe
pop edi
jmp 0x4c0d76
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4c0dd4
cmp word [esp + 0x10], bp
jne 0x4c0d8d
cmp word [esp + 0x12], bp
je 0x4c0dac
cmp word [esp + 0x10], bx
jne 0x4c0d9b
cmp word [esp + 0x12], bx
je 0x4c0dac
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4c0dd4
cmp word [esp + 0x12], ax
jne 0x4c0dd4
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4c0dc1
test al, 0x10
je 0x4c0dd4
jmp 0x4c0dd1
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4c0dd4
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4
Function at 0x4c0f42
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x544bec]
push esi
test eax, eax
jne 0x4c0f67
push fcn.004c106f
push 0x10
push 0x258
call fcn.004d546a
mov dword [0x544bec], eax
push dword [esp + 0xc]
push eax
call fcn.004d53d6
mov esi, eax
test esi, esi
je 0x4c1068
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x4c0f89
mov edi, 0x4f4bf4
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4c0f99
xor eax, eax
cmp word [ebx], ax
jne 0x4c0f9e
mov ebx, 0x509498
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x540d84]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4c104f
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x4c0fff
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x4c1003
push 0x5094b4
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x4c1003
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4c1027
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x4c103d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4c103b
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x540d84]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x4c1066
cmp dword [esp + 0x14], 0xffffffff
je 0x4c105a
mov esi, dword [esp + 0x14]
push esi
push dword [0x544bec]
call fcn.004d5348
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x4c10fe
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4c1127
test byte [esp + 8], 2
je 0x4c111b
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4c1129
xor eax, eax
ret 8

Function at 0x4c113a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4c11b2
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x4c1193
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4c1190
cmp ecx, 0x5c
je 0x4c1190
cmp ecx, 0x2f
jne 0x4c119d
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x4c117d
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4c11b4
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4c14a1
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x4c14c1
cmp dword [esp + 8], 0
je 0x4c14c1
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4c14c3
xor eax, eax
ret 8

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

Disassembly:
cmp dword [esp + 4], 0
je 0x4c14ec
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4c14ef
or eax, 0xffffffff
ret 4

Function at 0x4c1575
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x4c1583
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x4c162a
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4c16ff
push ebx
push edi
push pe_nt_image_headers32
push 3
push edi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4c16fe
push esi
mov esi, dword [ebp + 0x10]
push esi
call fcn.004c4626
push esi
mov word [ebp - 0x20], ax
call fcn.004c464c
push esi
mov word [ebp - 0x1e], ax
call fcn.004c46d0
push esi
mov word [ebp - 0x1c], ax
call fcn.004c466e
push esi
mov word [ebp - 0x1a], ax
call fcn.004c438f
push esi
mov word [ebp - 0x18], ax
call fcn.004c468f
push esi
mov word [ebp - 0x16], ax
call fcn.004c46b0
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp dword [ebp + 0xc], 1
mov eax, edi
mov ecx, edi
pop esi
jne 0x4c16dd
lea eax, [ebp - 8]
jmp 0x4c16eb
cmp dword [ebp + 0xc], 2
jne 0x4c16e8
lea ecx, [ebp - 8]
jmp 0x4c16eb
lea edi, [ebp - 8]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4c17e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x4c181c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4