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

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x6a3804]
call fcn.004851e2
xor ebp, ebp
mov esi, eax
cmp dword [0x6a1f70], ebp
jne 0x4682c3
xor ebx, ebx
inc ebx
mov dword [0x6a1f70], ebx
call fcn.0046c72f
mov edi, 0xa4
push edi
push ebp
push 0x6a1f78
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x6a1f78], 0x13
lea eax, [esp + 0x10]
mov dword [0x6a1f7c], edi
mov dword [0x6a1f88], 0x468132
mov dword [0x6a1f8c], 0x46847d
push eax
mov dword [0x6a1fe0], 0x46810d
mov dword [0x6a1fe4], 0x4683c8
mov dword [0x6a1f84], 0x4680e8
mov dword [0x6a2008], 0x46814d
mov dword [0x6a201c], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4682c3
cmp dword [esp + 0x20], ebx
je 0x4682ab
cmp dword [esp + 0x20], 2
jne 0x4682c3
cmp dword [esp + 0x14], 5
jae 0x4682b3
mov dword [0x6a201c], ebp
jmp 0x4682c3
jne 0x4682c3
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x6a201c], eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.0047117d
mov eax, dword [esp + 0x140]
push ebp
push dword [0x628de8]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x468399
push dword [esp + 0x128]
push dword [0x6a3820]
call fcn.00485861
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x468368
push edi
call fcn.00480245
test eax, eax
je 0x468368
push ebp
push ebp
push edi
call fcn.0047feb4
mov dword [esi + 0x18], eax
jmp 0x46836b
mov dword [esi + 0x18], ebp
push 0x467e37
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x6a1f78
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x6a1f74], eax
call fcn.0046caf0
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x469f01
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push 0
push 0
push 0x1304
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x469f73
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp ebx, 0xffffffff
jne 0x469f2a
mov ebx, eax
push dword [ebp]
call fcn.00469683
push ebx
push dword [ebp]
mov edi, eax
call fcn.0046965a
add esp, 0xc
mov esi, eax
push 0
push ebx
push 0x130c
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
push dword [ebp]
call fcn.00469f93
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x46aa81
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 0x46aa9b
inc esi
push 2
call edi
test bx, ax
je 0x46aaa7
or esi, 2
push 4
call edi
test bx, ax
je 0x46aab3
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x46b049
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x46b081
push dword [edi]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
push dword [edi]
push esi
call fcn.0046c8ed
test byte [edi + 0x14], 8
mov dword [esp + 0x14], eax
je 0x46b172
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x46b172
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
sub ebp, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x46b1a0
test ebp, ebp
jle 0x46b1a0
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x46b1a0
push ebp
push dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x30], eax
test eax, eax
je 0x46b169
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x46b113
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 0x46b128
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 2
pop eax
add dword [esp + 0x18], eax
add dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
sub dword [esp + 0x24], eax
lea eax, [esp + 0x18]
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 + 0x40]
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x46b1a0
cmp dword [edi + 0x10], ebx
je 0x46b18c
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 0x46b1a0
push ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
push dword [esp + 0x14]
push esi
call fcn.0046c8cb
cmp dword [esp + 0x10], 0
je 0x46b1ba
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x46b1c2
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.0046cac1
push eax
call fcn.0046d698
push dword [0x6a23c4]
mov dword [esp + 0x24], eax
call fcn.00485332
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 0x46b236
inc ebx
push 0x12
call esi
test di, ax
je 0x46b242
or ebx, 2
push 0x11
call esi
test di, ax
je 0x46b24e
or ebx, 4
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.0046aa81
push 0x46b2a3
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.00470418
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x46c063
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x6a3804]
call fcn.004851e2
xor ebx, ebx
mov ebp, eax
cmp dword [0x6a24a0], ebx
jne 0x46c0f7
mov esi, 0xa4
push esi
push ebx
push 0x6a24a8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x6a24ac], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x6a24a8], 0xa
mov dword [0x6a24b0], 0x46bbf8
push 0x7f89
push ebx
mov dword [0x6a2520], 0x46ccda
mov dword [0x6a2524], 0x46ccb4
mov dword [0x6a24b4], 0x46bc17
mov dword [0x6a2538], 0x46bc37
call esi
mov dword [0x6a24a0], eax
test eax, eax
jne 0x46c0f7
push 0x7f00
push ebx
call esi
mov dword [0x6a24a0], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0047117d
push ebx
push dword [0x628de8]
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x40000000
push dword [esp + 0x48]
push str.STATIC
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x46c1c3
push edi
push dword [esp + 0x14]
push dword [0x6a3820]
call fcn.00485861
mov edi, eax
push 8
or dword [edi + 0x10], 0xffffffff
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
push 0
mov dword [edi + 0x14], eax
push dword [0x628de4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x6a24a8
push ebx
push edi
push dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], 0
mov dword [edi + 0x1c], esi
call fcn.0046caf0
push 0x46bd1d
push 0xfffffffffffffffc
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x20
Function at 0x46d27d
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
lea eax, [ebp - 0x40]
push 0x40
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 8], 6
jne 0x46d2ae
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x60]
jmp 0x46d330
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x46d30a
mov eax, dword [ebp + 8]
sub eax, 0
je 0x46d302
dec eax
je 0x46d2fa
dec eax
je 0x46d2f2
dec eax
je 0x46d2ea
dec eax
je 0x46d2e2
dec eax
jne 0x46d30a
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
jmp 0x46d332
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
jmp 0x46d332
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x46d332
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
jmp 0x46d332
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
jmp 0x46d332
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
jmp 0x46d332
cmp dword [ebp + 8], 7
jne 0x46d32e
push 0x2c
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetProcessMemoryInfo
test eax, eax
je 0x46d32e
mov eax, dword [ebp - 0x68]
jmp 0x46d330
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret 4
Function at 0x46d420
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x46d596
mov eax, dword [esp + 0x24]
dec eax
je 0x46d579
dec eax
jne 0x46d596
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0046d3d9
pop ecx
test eax, eax
je 0x46d4d7
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x46d49a
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x46d575
dec ebx
je 0x46d571
dec ebx
je 0x46d550
dec ebx
je 0x46d50a
sub ebx, 4
jne 0x46d596
test edi, edi
jne 0x46d596
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x46d596
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x46d49a
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x46d495
sub edi, 0
je 0x46d542
dec edi
je 0x46d534
dec edi
je 0x46d526
dec edi
jne 0x46d596
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x46d596
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x46d596
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x46d596
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x46d596
sub edi, 0
je 0x46d56d
dec edi
je 0x46d569
dec edi
jne 0x46d596
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x46d596
push 0x3c
jmp 0x46d595
push 0x32
jmp 0x46d595
push 0x14
jmp 0x46d595
push 5
jmp 0x46d595
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x46d593
cmp eax, 0xa
je 0x46d58f
cmp eax, 0x5a
jne 0x46d596
push 0x28
jmp 0x46d595
push 0x1e
jmp 0x46d595
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x46dc34
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x6a3830]
call fcn.00485822
mov esi, eax
test esi, esi
je 0x46dd0e
cmp dword [ebp + 0xc], 0
je 0x46dc80
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x46dc71
cmp dword [esi + 0x1c], 0
jne 0x46dc71
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x46dd0e
test byte [ebp + 0x10], 3
je 0x46dc9b
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0046e78e
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x46dcc0
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 0x46dcd4
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 0x46dcf1
test ebx, ebx
je 0x46dce5
push 8
jmp 0x46dcf7
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x46dd04
test ebx, ebx
je 0x46dcfa
push 3
pop ecx
jmp 0x46dd04
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 0x46e921
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x46e9b9
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x46e9b6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x46e9b6
lea eax, [esi - 1]
push eax
push dword [0x6a3830]
call fcn.00485822
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x46e9b8
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x46e9ad
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x46eaa0
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x46e993
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x46ea5f
push eax
call esi
test al, al
jns 0x46ea5f
push 0x11
call esi
test al, al
js 0x46ea5f
push 0x10
call esi
test al, al
js 0x46ea5f
push 0x12
call esi
test al, al
js 0x46ea5f
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x46ea5f
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x46ea33
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x46ea4a
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x46eaaa
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x46eaaa
test ebp, ebp
je 0x46ea83
push 0x11
call esi
test al, al
js 0x46ea7b
push 0x10
call esi
test al, al
js 0x46ea7b
push 0x12
call esi
test al, al
jns 0x46ea83
push 1
push ebp
call fcn.0046eab6
test ebx, ebx
je 0x46ea97
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x46eaaa
test edi, edi
je 0x46eaaa
mov eax, dword [edi + 8]
jmp 0x46eaac
and dword [esp + 0x14], 0
jmp 0x46e9b8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x46ec95
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 0x46eddd
xor ecx, ecx
cmp word [eax], cx
je 0x46eddd
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 0x46ecee
cmp eax, 3
jne 0x46ed28
cmp word [esp + 0xa], 0x3a
jne 0x46ed28
cmp eax, 2
jne 0x46ed0c
lea eax, [esp + 8]
push 0x524e18
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 0x46eddd
push 0xfffffffffffffffe
pop edi
jmp 0x46eddd
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x46ed3d
cmp ax, bx
jne 0x46ed47
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x46ed30
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x46ed86
test byte [esp + 0x21c], 0x10
je 0x46ed6d
push 0xfffffffffffffffe
pop edi
jmp 0x46ed7d
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x46eddb
cmp word [esp + 0x10], bp
jne 0x46ed94
cmp word [esp + 0x12], bp
je 0x46edb3
cmp word [esp + 0x10], bx
jne 0x46eda2
cmp word [esp + 0x12], bx
je 0x46edb3
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x46eddb
cmp word [esp + 0x12], ax
jne 0x46eddb
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x46edc8
test al, 0x10
je 0x46eddb
jmp 0x46edd8
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x46eddb
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 0x46edfc
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x46ee25
test byte [esp + 8], 2
je 0x46ee19
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 0x46ee27
xor eax, eax
ret 8

Function at 0x46ee38
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x46eeb0
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 0x46ee91
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x46ee8e
cmp ecx, 0x5c
je 0x46ee8e
cmp ecx, 0x2f
jne 0x46ee9b
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x46ee7b
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x46eeb2
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x46ef58
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x6a2638]
push esi
test eax, eax
jne 0x46ef7d
push fcn.0046f085
push 0x10
push 0x258
call fcn.004858f5
mov dword [0x6a2638], eax
push dword [esp + 0xc]
push eax
call fcn.00485861
mov esi, eax
test esi, esi
je 0x46f07e
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x46ef9f
mov edi, 0x521be0
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x46efaf
xor eax, eax
cmp word [ebx], ax
jne 0x46efb4
mov ebx, 0x524e1c
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 [0x628de4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x46f065
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x46f015
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x46f019
push 0x524e18
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x46f019
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 0x46f03d
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x46f053
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x46f051
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x628de4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x46f07c
cmp dword [esp + 0x14], 0xffffffff
je 0x46f070
mov esi, dword [esp + 0x14]
push esi
push dword [0x6a2638]
call fcn.004857d3
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x46f4bf
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x46f594
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 0x46f593
push esi
mov esi, dword [ebp + 0x10]
push esi
call fcn.00471677
push esi
mov word [ebp - 0x20], ax
call fcn.0047169d
push esi
mov word [ebp - 0x1e], ax
call fcn.004716bf
push esi
mov word [ebp - 0x1c], ax
call fcn.004716e0
push esi
mov word [ebp - 0x1a], ax
call fcn.00471701
push esi
mov word [ebp - 0x18], ax
call fcn.00471722
push esi
mov word [ebp - 0x16], ax
call fcn.00471743
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 0x46f572
lea eax, [ebp - 8]
jmp 0x46f580
cmp dword [ebp + 0xc], 2
jne 0x46f57d
lea ecx, [ebp - 8]
jmp 0x46f580
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 0x46f840
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 0x46f87c
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

Function at 0x4717de
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
push esi
mov ebx, esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x47181f
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x471817
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x471817
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
mov ebx, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x471822
mov edi, dword [ebp + 8]
push dword [ebp + 8]
push ebx
call fcn.00486010
test esi, esi
je 0x47184a
lea ecx, [ebx*2 + 2]
push ecx
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x47184f
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
pop ebx
pop ebp
ret 4