joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fea2b
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.00512b28
push eax
call fcn.005153ee
push dword [0x6c31dc]
mov dword [esp + 0x24], eax
call fcn.0052d3e4
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 0x4fea9f
inc ebx
push 0x12
call esi
test di, ax
je 0x4feaab
or ebx, 2
push 0x11
call esi
test di, ax
je 0x4feab7
or ebx, 4
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.004fe2ea
push 0x4feb0c
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.005177b2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x4ff45b
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x6c7ea4]
call fcn.0052d8bb
mov ebx, eax
test ebx, ebx
je 0x4ff4bf
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x4ff484
push dword [esp + 0xc]
push ebx
call eax
jmp 0x4ff4bf
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.0052dec0
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.0052df90
pop edi
pop esi
pop ebx
ret 8

Function at 0x501b88
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 0x501bfa
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp ebx, 0xffffffff
jne 0x501bb1
mov ebx, eax
push dword [ebp]
call fcn.0050130a
push ebx
push dword [ebp]
mov edi, eax
call fcn.005012e1
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.00501c1a
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x502839
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
push edi
push dword [0x6c7ea8]
call fcn.0052d287
cmp dword [0x6c36e0], 0
mov edi, eax
mov esi, 0x50010000
jne 0x5029a1
mov ebx, 0xa4
push ebx
push 0
push 0x6c36e8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x6c36e8], 0x1b
mov dword [0x6c36ec], ebx
mov dword [0x6c36f0], 0x5021a9
mov dword [0x6c36f4], 0x5024ee
mov dword [0x6c370c], 0x501f26
mov dword [0x6c371c], 0x5024e4
mov dword [0x6c3714], 0x50248f
mov dword [0x6c3710], 0x502b20
mov dword [0x6c36fc], 0x503007
mov dword [0x6c36f8], 0x502735
mov dword [0x6c3700], 0x50277f
mov dword [0x6c3704], 0x503038
mov dword [0x6c3728], 0x5026ac
mov dword [0x6c372c], 0x502fc0
mov dword [0x6c3720], 0x50261b
mov dword [0x6c3724], 0x502e6d
mov dword [0x6c3760], 0x502cba
mov dword [0x6c3764], 0x502533
mov dword [0x6c3768], 0x502d0d
mov dword [0x6c376c], 0x5025bf
mov dword [0x6c3770], 0x502d7f
mov dword [0x6c3774], 0x5025f9
mov dword [0x6c3758], 0x50258e
mov dword [0x6c3788], 0x502da1
call fcn.00512989
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x502997
cmp dword [esp + 0x24], 2
jne 0x502997
cmp dword [esp + 0x18], 6
jb 0x502997
mov eax, dword [0x6c31c8]
mov dword [0x6c36e4], eax
mov dword [0x6c36e0], 1
test byte [esp + 0x140], 2
jne 0x5029b0
mov esi, 0x50010002
test byte [esp + 0x140], 1
jne 0x5029bd
or esi, 5
test byte [esp + 0x140], 0x20
je 0x5029ca
or esi, 0x20
push 0x1f4
push 0
push dword [0x6c2520]
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.00518488
test ebp, ebp
je 0x502b0d
push 0
push dword [0x6c2524]
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 0x502b11
push dword [esp + 0x12c]
push dword [0x6c7ea4]
call fcn.0052d8e3
push 0x503081
push 0xfffffffffffffffc
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 4
push 4
push 0x112c
push ebx
mov dword [0x6c378c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x6c36e8
push ebx
push edi
push dword [esp + 0x138]
mov dword [edi + 0x14], ebp
mov dword [edi + 0x18], 0x19
call fcn.00512b57
mov ebx, eax
mov eax, 0x100
test dword [esp + 0x140], eax
je 0x502b11
or esi, eax
push esi
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test dword [esp + 0x140], 0x10000
je 0x502b11
call fcn.005150cf
cmp eax, 0x3c
jg 0x502ae0
push edi
call fcn.005023cb
pop ecx
push 0
push 2
push 0x1108
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x502afd
push eax
push dword [edi]
call fcn.0051340c
push edi
push str.PB_3State
push dword [edi]
call dword [sym.imp.USER32.dll_SetPropW]
jmp 0x502b11
mov ebx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x118
ret 0x18
Function at 0x504415
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x6c7ea8]
call fcn.0052d287
xor ebp, ebp
mov esi, eax
cmp dword [0x6c38f0], ebp
jne 0x5044f1
xor ebx, ebx
inc ebx
mov dword [0x6c38f0], ebx
call fcn.00512989
mov edi, 0xa4
push edi
push ebp
push 0x6c38f8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x6c38f8], 0x13
lea eax, [esp + 0x10]
mov dword [0x6c38fc], edi
mov dword [0x6c3908], 0x504360
mov dword [0x6c390c], 0x5046ab
push eax
mov dword [0x6c3960], 0x50433b
mov dword [0x6c3964], 0x5045f6
mov dword [0x6c3904], 0x504316
mov dword [0x6c3988], 0x50437b
mov dword [0x6c399c], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x5044f1
cmp dword [esp + 0x20], ebx
je 0x5044d9
cmp dword [esp + 0x20], 2
jne 0x5044f1
cmp dword [esp + 0x14], 5
jae 0x5044e1
mov dword [0x6c399c], ebp
jmp 0x5044f1
jne 0x5044f1
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x6c399c], 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.00518488
mov eax, dword [esp + 0x140]
push ebp
push dword [0x6c2524]
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 0x5045c7
push dword [esp + 0x128]
push dword [0x6c7ea4]
call fcn.0052d8e3
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x504596
push edi
call fcn.0052421d
test eax, eax
je 0x504596
push ebp
push ebp
push edi
call fcn.00523e67
mov dword [esi + 0x18], eax
jmp 0x504599
mov dword [esi + 0x18], ebp
push 0x504065
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x6c38f8
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x6c38f4], eax
call fcn.00512b57
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x50689d
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x6c7ea8]
call fcn.0052d287
xor ebx, ebx
mov ebp, eax
cmp dword [0x6c3bd0], ebx
jne 0x506931
mov esi, 0xa4
push esi
push ebx
push 0x6c3bd8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x6c3bdc], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x6c3bd8], 0xa
mov dword [0x6c3be0], 0x506432
push 0x7f89
push ebx
mov dword [0x6c3c50], 0x512e5b
mov dword [0x6c3c54], 0x512e35
mov dword [0x6c3be4], 0x506451
mov dword [0x6c3c68], 0x506471
call esi
mov dword [0x6c3bd0], eax
test eax, eax
jne 0x506931
push 0x7f00
push ebx
call esi
mov dword [0x6c3bd0], 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.00518488
push ebx
push dword [0x6c2524]
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 0x5069fd
push edi
push dword [esp + 0x14]
push dword [0x6c7ea4]
call fcn.0052d8e3
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 [0x6c2520]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x6c3bd8
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.00512b57
push 0x506557
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 0x50b18a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
push esi
mov esi, dword [sym.imp.USER32.dll_GetParent]
push edi
push dword [ebp + 8]
call esi
push eax
call esi
push eax
call fcn.00512eb6
mov esi, eax
lea eax, [ebp - 0x208]
push eax
push 0x104
push 0xd
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_wcslen
pop ecx
cmp word [ebp + eax*2 - 0x20a], 0x5c
jne 0x50b1e4
xor ecx, ecx
mov word [ebp + eax*2 - 0x20a], cx
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x50b227
test byte [ebp - 0x458], 0x10
je 0x50b21e
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.0050b581
push 0
push dword [esi]
call fcn.00512c17
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x50b245
push dword [esi + 0x14]
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.0050b581
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_wcslen
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_wcslen
pop ecx
push eax
push 0xb1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x513d7e
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 0x513dc3
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x513e3f
cmp dword [0x6c6e20], 1
je 0x513e3f
push ebx
mov ebx, 0x6c6e28
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x6c6e44]
and dword [0x6c6e4c], 0
mov dword [0x6c6e48], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x6c6e40]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x6c6e44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x513e37
push 0
push dword [0x6c6e24]
mov dword [0x6c6e20], 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 0x514100
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x6c6948], 0
jne 0x5141d1
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x6c7fd8
mov dword [0x6c6948], 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 [0x6c2520]
mov dword [0x6c6e0c], eax
mov dword [0x6c694c], 0x1f4
call esi
mov dword [0x6c6e1c], eax
mov eax, dword [0x6c694c]
add eax, eax
push eax
push 8
push dword [0x6c2520]
call esi
xor ebx, ebx
mov dword [0x6c6e18], eax
push 0x6c6e28
mov dword [0x6c6e10], ebx
mov dword [0x6c6e14], 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 [0x6c6e40], eax
call esi
mov dword [0x6c6e44], eax
cmp dword [0x6c6e40], ebx
je 0x5141c8
test eax, eax
je 0x5141c8
lea eax, [esp + 0xc]
mov dword [0x6c6e20], ebx
push eax
push ebx
push ebx
push 0x513b83
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x6c6e24], eax
jmp 0x5141ce
mov dword [0x6c6e20], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x51424e
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x5142f3
cmp dword [esp + 0xc], 0
je 0x5142f3
cmp dword [0x6c6e20], 1
je 0x5142f3
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x5142f2
push ebp
mov ebp, 0x6c6e28
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x6c6e44]
mov dword [0x6c6e48], esi
mov dword [0x6c6e4c], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x6c6e40]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x6c6e44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x5142ea
push 0
push dword [0x6c6e24]
mov dword [0x6c6e20], 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 0x514707
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 0x51484f
xor ecx, ecx
cmp word [eax], cx
je 0x51484f
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 0x514760
cmp eax, 3
jne 0x51479a
cmp word [esp + 0xa], 0x3a
jne 0x51479a
cmp eax, 2
jne 0x51477e
lea eax, [esp + 8]
push 0x5ddea0
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 0x51484f
push 0xfffffffffffffffe
pop edi
jmp 0x51484f
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x5147af
cmp ax, bx
jne 0x5147b9
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x5147a2
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x5147f8
test byte [esp + 0x21c], 0x10
je 0x5147df
push 0xfffffffffffffffe
pop edi
jmp 0x5147ef
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x51484d
cmp word [esp + 0x10], bp
jne 0x514806
cmp word [esp + 0x12], bp
je 0x514825
cmp word [esp + 0x10], bx
jne 0x514814
cmp word [esp + 0x12], bx
je 0x514825
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x51484d
cmp word [esp + 0x12], ax
jne 0x51484d
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x51483a
test al, 0x10
je 0x51484d
jmp 0x51484a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x51484d
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 0x5149a0
Capabilities:
Delete file
Set file attributes

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

Function at 0x514a4f
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x514a6f
cmp dword [esp + 8], 0
je 0x514a6f
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x514a71
xor eax, eax
ret 8
Function at 0x514c06
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x6c6e54]
push esi
test eax, eax
jne 0x514c2b
push fcn.00514d33
push 0x10
push 0x258
call fcn.0052d964
mov dword [0x6c6e54], eax
push dword [esp + 0xc]
push eax
call fcn.0052d8e3
mov esi, eax
test esi, esi
je 0x514d2c
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x514c4d
mov edi, 0x5c8008
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x514c5d
xor eax, eax
cmp word [ebx], ax
jne 0x514c62
mov ebx, 0x5ddfdc
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 [0x6c2520]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x514d13
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x514cc3
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x514cc7
push 0x5ddea0
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x514cc7
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 0x514ceb
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x514d01
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x514cff
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x6c2520]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x514d2a
cmp dword [esp + 0x14], 0xffffffff
je 0x514d1e
mov esi, dword [esp + 0x14]
push esi
push dword [0x6c6e54]
call fcn.0052d881
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x514e4d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x514ec5
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 0x514ea6
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x514ea3
cmp ecx, 0x5c
je 0x514ea3
cmp ecx, 0x2f
jne 0x514eb0
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x514e90
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x514ec7
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x5150cf
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 0x515245
mov eax, dword [esp + 0x24]
dec eax
je 0x515228
dec eax
jne 0x515245
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00515088
pop ecx
test eax, eax
je 0x515186
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x515149
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x515224
dec ebx
je 0x515220
dec ebx
je 0x5151ff
dec ebx
je 0x5151b9
sub ebx, 4
jne 0x515245
test edi, edi
jne 0x515245
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x515245
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 0x515149
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x515144
sub edi, 0
je 0x5151f1
dec edi
je 0x5151e3
dec edi
je 0x5151d5
dec edi
jne 0x515245
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x515245
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x515245
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x515245
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x515245
sub edi, 0
je 0x51521c
dec edi
je 0x515218
dec edi
jne 0x515245
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x515245
push 0x3c
jmp 0x515244
push 0x32
jmp 0x515244
push 0x14
jmp 0x515244
push 5
jmp 0x515244
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x515242
cmp eax, 0xa
je 0x51523e
cmp eax, 0x5a
jne 0x515245
push 0x28
jmp 0x515244
push 0x1e
jmp 0x515244
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret

Function at 0x516123
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor esi, esi
push dword [0x6c7eac]
call fcn.0052d8bb
mov edi, eax
test edi, edi
je 0x516146
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
push dword [esp + 0x10]
push esi
call fcn.0052dec0
test esi, esi
je 0x516163
lea ecx, [esi + 1]
push ecx
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x516168
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
ret 8
Function at 0x516320
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x6c7eac]
call fcn.0052d8bb
mov esi, eax
test esi, esi
je 0x5163fa
cmp dword [ebp + 0xc], 0
je 0x51636c
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x51635d
cmp dword [esi + 0x1c], 0
jne 0x51635d
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x5163fa
test byte [ebp + 0x10], 3
je 0x516387
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.005171be
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x5163ac
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 0x5163c0
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 0x5163dd
test ebx, ebx
je 0x5163d1
push 8
jmp 0x5163e3
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x5163f0
test ebx, ebx
je 0x5163e6
push 3
pop ecx
jmp 0x5163f0
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