joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4320e0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x3cc
push ebx
mov ebx, dword [esp + 0x3d4]
push ebp
push esi
push edi
mov ebp, ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x432110
push 0x64
lea ecx, [esp + 0x114]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x43211a
xor eax, eax
mov word [esp + 0x110], ax
mov esi, dword [0x4eb794]
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x4321d8
nop
cmp byte [esi + 0x12], 0
je 0x432173
push 0
push 0x4e8e60
push 0x4e8e2c
push 0
push dword [esi]
call fcn.004b9317
add esp, 0x14
test eax, eax
je 0x432157
mov eax, dword [eax + 0x14]
jmp 0x43215e
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x20]
push eax
push 0x4db1e8
lea eax, [esp + 0x18]
push 0x7d
push eax
call fcn.004820c0
add esp, 0x10
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x432130
cmp word [esp + 0x10], si
je 0x4321d8
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x432190
sub ecx, edx
sar ecx, 1
cmp ecx, 0x7b
jbe 0x4321c9
mov esi, 0x7f
lea edi, [esp + 0x10]
sub esi, ecx
lea edi, [edi + ecx*2]
push esi
push 0x4d549c
push edi
call fcn.004ab924
add esp, 0xc
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x4321d8
cmp word [esp + ecx*2 + 0xe], 0x20
jne 0x4321d8
xor eax, eax
mov word [esp + ecx*2 + 0xe], ax
mov eax, dword [0x4e9e88]
cmp byte [eax + 0x50], 0
je 0x4321f3
cmp byte [0x4eb7dd], 0
jne 0x4321f3
mov esi, 1
jmp 0x4321f5
xor esi, esi
mov eax, dword [0x4e9e9c]
cmp eax, 1
jle 0x432204
lea edi, [eax - 1]
jmp 0x432206
xor edi, edi
mov cl, 1
call fcn.00418a00
lea edx, [esp + 0x1d8]
mov cl, al
call fcn.00418dc0
mov ecx, dword [0x4e9e9c]
mov edx, 0x4d1e48
push eax
push dword [0x4e9eb0]
mov eax, dword [0x4e9e8c]
push ecx
sub eax, esi
cmp ecx, 1
push eax
mov eax, str.__preempted:_they_will_resume_when_the_current_thread_finishes_
mov ecx, 0x4d4110
cmovle eax, edx
cmp dword [0x4ea0e8], 0
push eax
push edi
lea eax, [esp + 0x28]
mov edx, 0x4d4108
push eax
push dword [0x4eb79c]
mov eax, ecx
push dword [0x4eb7a0]
cmovne eax, edx
cmp dword [0x4ea0ec], 0
push eax
cmovne ecx, edx
lea eax, [esp + 0x138]
push ecx
push eax
push str.Window:__s_r_nKeybd_hook:__s_r_nMouse_hook:__s_r_nEnabled_Timers:__u_of__u___s__r_nInterrupted_threads:__d_s_r_nPaused_threads:__d_of__d___d_layers__r_nModifiers__GetKeyState___now____s_r_n
push 0xfffe
push ebx
call fcn.00482070
add eax, eax
mov edi, 0xfffe
add ebx, eax
add esp, 0x3c
sar eax, 1
mov edx, edi
sub edx, eax
mov ecx, ebx
call fcn.0040f600
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4322b0
sub ecx, edx
mov eax, str._r_nPress__F5__to_refresh.
sar ecx, 1
cmp dword [0x4e9ebc], 0
lea esi, [ebx + ecx*2]
mov ecx, str._r_nKey_History_has_been_disabled_via_KeyHistory_0_.
cmove eax, ecx
push eax
mov eax, esi
sub eax, ebp
sar eax, 1
sub edi, eax
push edi
push esi
call fcn.00482070
add esp, 0xc
lea eax, [esi + eax*2]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3cc
ret 8
Function at 0x434740
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x134
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov eax, dword [ebx]
cmp eax, 5
ja case.0x434757.1
jmp dword [eax*4 + 0x43492c]
mov eax, str.Timeout
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 8
mov eax, str.Match
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 8
mov edi, dword [esp + 0x148]
test edi, edi
je 0x4348e4
movzx eax, word [ebx + 0x48]
test ax, ax
je 0x4347b5
mov word [edi], ax
xor eax, eax
mov word [edi + 2], ax
mov eax, str.EndKey
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 8
cmp byte [ebx + 0x4b], 0
je 0x434864
push 0x100
lea eax, [esp + 0x44]
push 0
push eax
call fcn.0049daf0
add esp, 0xc
mov byte [esp + 0x50], 0x80
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test eax, eax
je 0x434817
mov ebp, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call ebp
mov esi, eax
mov dword [esp + 0x10], 0x30
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x434817
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x434817
push 0
push eax
call ebp
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov cl, byte [ebx + 0x45]
push eax
xor eax, eax
cmp dword [0x4e9e84], eax
setne al
xor dl, dl
push eax
push 2
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.004199a0
movzx eax, ax
push eax
movzx eax, byte [ebx + 0x45]
push eax
call dword [sym.imp.USER32.dll_ToUnicodeEx]
xor ecx, ecx
mov word [edi + eax*2], cx
mov eax, str.EndKey
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 8
mov ebp, dword [esp + 0x14c]
xor eax, eax
mov word [edi], ax
cmp byte [ebx + 0x4a], al
je 0x4348b1
movzx ecx, word [ebx + 0x46]
nop dword [eax]
cmp word [eax*8 + 0x4e59bc], cx
je 0x434892
inc eax
cmp eax, 0xd
jl 0x434880
jmp 0x4348b1
lea esi, [ebp - 1]
push esi
push dword [eax*8 + 0x4e59b8]
push edi
call fcn.004ab924
xor eax, eax
add esp, 0xc
mov word [edi + esi*2], ax
cmp word [edi], ax
jne 0x4348ca
cmp byte [ebx + 0x4a], 0
mov edx, edi
mov cl, byte [ebx + 0x45]
sete al
movzx eax, al
push eax
push ebp
call fcn.00419090
add esp, 8
cmp word [edi], 0
jne 0x4348e4
movzx eax, word [ebx + 0x46]
push eax
push str.sc_03X
push ebp
push edi
call fcn.00482070
add esp, 0x10
mov eax, str.EndKey
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 8
mov eax, 0x4d55dc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 8
mov eax, str.Stopped
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 8
pop edi
pop esi
pop ebp
mov eax, 0x4d1e48
pop ebx
add esp, 0x134
ret 8
Function at 0x439ca0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c6c
call fcn.004b8900
push ebx
push ebp
push esi
mov ebp, edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x1020], 0x4d1e48
xorps xmm0, xmm0
mov dword [esp + 0x1850], 0
mov dword [esp + 0x1854], 0
mov dword [esp + 0x1860], 0
mov dword [esp + 0x1864], 0
mov byte [esp + 0x183d], 1
push edi
mov edi, ecx
movups xmmword [esp + 0x1844], xmm0
cmp ebp, 6
jne 0x439d77
push 0x20
call fcn.0049be32
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
mov dword [esi + 4], 1
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0x4ebaa8
mov dword [esi + 8], 0
mov dword [esi], vtable.Array.0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov ebx, dword [0x4eb010]
test ebx, ebx
je 0x439d60
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x439d6d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0xc], ebx
mov dword [esp + 0x1864], esi
mov ecx, dword [esp + 0x11c80]
mov edx, dword [esp + 0x11c88]
mov esi, dword [esp + 0x11c84]
movzx eax, word [ecx]
mov ebx, eax
cmp eax, 0x41
mov eax, dword [esp + 0x11c8c]
je 0x439da6
cmp ebx, 0x61
jne 0x439e89
cmp word [ecx + 2], 0
jne 0x439e89
cmp word [esi], 0
jne 0x439e89
cmp word [edx], 0
jne 0x439e89
cmp word [eax], 0
jne 0x439e89
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x439e1a
mov ecx, dword [0x4e59a0]
cmp byte [ecx + 0x93], 0
jne 0x439e1a
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x439e18
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0xe
push esi
call dword [sym.imp.dwmapi.dll_DwmGetWindowAttribute]
test eax, eax
js 0x439e1a
cmp dword [esp + 0x10], 0
je 0x439e1a
xor esi, esi
cmp ebp, 5
jne 0x439e5b
test esi, esi
je 0x439e3a
mov eax, 1
xor ecx, ecx
mov dword [edi + 4], ecx
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c6c
ret
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov dword [edi + 4], ecx
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c6c
ret
test esi, esi
je 0x439eb8
mov ecx, dword [esp + 0x1864]
push 0
push esi
call fcn.00432fc0
mov eax, dword [esp + 0x1864]
mov dword [edi + 8], 5
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c6c
ret
push eax
mov eax, dword [0x4e59a0]
push edx
push esi
push ecx
add eax, 0x58
lea ecx, [esp + 0x28]
push eax
call fcn.00487a30
test eax, eax
je 0x439eb3
lea eax, [esp + 0x18]
push eax
push 0x486e80
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebp, 6
jne 0x439ed3
mov eax, dword [esp + 0x1864]
mov dword [edi + 8], 5
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c6c
ret
mov eax, dword [esp + 0x1844]
cdq
mov dword [edi + 4], edx
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c6c
ret
Function at 0x43d7d0
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
sub esp, 0x51c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebp
push esi
push edi
push dword [0x4eb7d0]
mov edi, ecx
mov byte [esp + 0x1b], dl
mov ebp, edi
mov esi, 0x4d1e48
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne cl
mov byte [esp + 0x16], cl
jne 0x43d8a3
xor esi, esi
lea eax, [esp + 0x118]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.00483990
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x43d85b
test esi, esi
jne 0x43d85b
mov esi, 0x100
lea eax, [esp + 0x118]
push esi
push ecx
push eax
push str.InstallDir
mov edx, str.SOFTWAREAutoHotkey
call fcn.00483990
mov edx, eax
add esp, 0x10
test edx, edx
je 0x43d830
xor ecx, ecx
nop dword [eax]
movzx eax, word [esp + ecx + 0x118]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x31e], ax
test ax, ax
jne 0x43d860
test edx, edx
je 0x43d93b
lea eax, [esp + 0x320]
push eax
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43d93b
mov cl, byte [esp + 0x16]
mov esi, 0x4d1e48
cmp byte [esp + 0x17], 0
je 0x43d8cd
test cl, cl
je 0x43d8cd
push edi
push str._script__s
lea eax, [esp + 0x20]
push 0x40
push eax
call fcn.00482070
mov ebp, dword [0x4eb7cc]
lea esi, [esp + 0x28]
add esp, 0x10
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push ebp
mov ecx, 0x4eb110
call fcn.00432300
test eax, eax
jne 0x43d923
push edi
push str.Could_not_launch__s
lea eax, [esp + 0xa0]
push 0x40
push eax
call fcn.00482070
add esp, 8
lea ecx, [esp + 0xa0]
xorps xmm0, xmm0
mov edx, 0x10
movsd qword [esp], xmm0
push 0
push 0
call fcn.00487690
add esp, 0x10
mov eax, dword [0x4e8b40]
mov ecx, 0x4d1e48
test eax, eax
je 0x43d938
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x51c
ret

Function at 0x443fc0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004b8900
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x443ff9
push ecx
lea esi, [esp + 8]
mov ecx, 0x4e8b3c
push esi
call fcn.00457a50
pop esi
add esp, 0x10000
ret
test esi, esi
je 0x444009
push ecx
push esi
mov ecx, 0x4e8b3c
call fcn.00457a50
pop esi
add esp, 0x10000
ret

Function at 0x444020
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004b8900
lea eax, [esp]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x444050
lea eax, [esp]
push eax
call fcn.004aa633
add esp, 4
add esp, 0x10000
ret
xor eax, eax
add esp, 0x10000
ret
Function at 0x444be0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x444cb4
cmp word [ebx], 0
je 0x444cb4
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x444c29
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
shr eax, 4
and al, 1
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c
push ebx
call fcn.0049d21e
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
cmp esi, ebx
jbe 0x444c9c
cmp word [esi - 2], 0x3a
je 0x444c9c
test edi, edi
je 0x444c60
xor eax, eax
mov edx, ebx
mov ecx, ebx
mov word [esi], ax
call fcn.00444be0
mov ecx, 0x5c
mov word [esi], cx
jmp 0x444c91
mov edi, esi
sub edi, ebx
sar edi, 1
lea eax, [edi*2 + 2]
call fcn.004b87f0
mov esi, esp
push edi
push ebx
push esi
call fcn.004ab924
add esp, 0xc
xor eax, eax
mov edx, esi
mov word [esi + edi*2], ax
mov ecx, esi
call fcn.00444be0
mov esi, dword [ebp - 4]
cmp word [esi + 2], 0
je 0x444cbe
test al, al
je 0x444cbe
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4459a0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, 0x10008
call fcn.004b8900
movzx eax, byte [esp + 0x10014]
push esi
push 0
push 0
inc eax
push eax
push 0
push 0
push 0x40000000
push dword [esp + 0x1002c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4459e2
xor al, al
pop esi
add esp, 0x10008
ret 0xc
mov edx, dword [esp + 0x10010]
mov eax, edx
push ebx
push edi
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4459f0
sub eax, edi
mov ecx, 0x7fff
sar eax, 1
cmp eax, 0x8000
cmovae eax, ecx
lea eax, [eax*2 + 2]
push eax
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0049ef90
lea eax, [esp + 0x20]
push eax
call fcn.004aac8d
add esp, 0x10
mov byte [esp + 0xf], 0
lea eax, [esp + 0x14]
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x445a80
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x445a80
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x445a80
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne byte [esp + 0xf]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0xf]
pop edi
pop ebx
pop esi
add esp, 0x10008
ret 0xc
Function at 0x445aa0
Capabilities:
Copy file
Get file attributes
Set current directory

Disassembly:
mov eax, 0x20000
call fcn.004b8900
push 0
lea eax, [esp + 0x10004]
push eax
push 0x8000
push dword [esp + 0x20014]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push dword [0x4eb7c0]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
lea eax, [esp + 4]
push eax
push 0x8000
push dword [esp + 0x20010]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [0x4e8b40]
mov ecx, 0x4d1e48
test eax, eax
je 0x445b00
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [esp + 0x10000]
push eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x445b37
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x445b37
mov al, 1
add esp, 0x20000
ret 0xc
movzx eax, byte [esp + 0x2000c]
xor eax, 1
push eax
lea eax, [esp + 0x10004]
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne al
add esp, 0x20000
ret 0xc
Function at 0x457330
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, cl
test bl, bl
jne 0x45733b
xor al, al
pop ebx
ret
sub edx, 1
je 0x457360
movzx eax, bl
push eax
sub edx, 1
je 0x457356
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
pop ebx
ret
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
pop ebx
ret
mov al, bl
dec al
cmp al, 5
ja 0x45736d
cmp bl, 3
jne 0x457375
mov al, bl
add al, 0x66
cmp al, 5
ja 0x45738c
cmp dword [0x4ea0e8], 0
movzx eax, bl
je 0x4573bd
mov al, byte [eax + 0x4ea0f8]
shr al, 7
pop ebx
ret
cmp dword [0x4ea0ec], 0
je 0x4573ba
push 0
xor edx, edx
call fcn.00418c20
add esp, 4
test al, al
je 0x4573ac
mov cl, 1
call fcn.00418a00
movzx eax, bl
pop ebx
mov al, byte [eax + 0x4ea0f8]
shr al, 7
ret
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
pop ebx
ret

Function at 0x457910
Capabilities:
Get disk information
Get process image filename

Disassembly:
sub esp, 0x214
push edi
xor eax, eax
mov edi, edx
push ecx
push eax
push 0x1000
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x45793b
pop edi
add esp, 0x214
ret
push ebx
push 0x104
push edi
push eax
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
mov ebx, eax
test ebx, ebx
je 0x457a39
cmp byte [esp + 0x224], 0
push esi
je 0x4579a5
push 0x5c
push edi
call fcn.0049d21e
mov edx, eax
add esp, 8
test edx, edx
je 0x457a38
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457980
sub ecx, esi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.0049ef90
add esp, 0xc
jmp 0x457a38
mov eax, 0x41
mov dword [esp + 0xe], 0x3a
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov word [esp + 0x10], ax
nop
push 0x104
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
call ebp
mov esi, eax
cmp esi, 2
jbe 0x4579f8
sub esi, 2
lea eax, [esp + 0x1c]
push esi
push edi
push eax
call fcn.004aa8ee
add esp, 0xc
test eax, eax
jne 0x4579f8
cmp word [edi + esi*2], 0x5c
lea ecx, [edi + esi*2]
je 0x457a0c
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x4579c0
jmp 0x457a37
movzx eax, word [esp + 0x10]
sub ebx, esi
mov word [edi], ax
movzx eax, word [esp + 0x12]
mov word [edi + 2], ax
lea eax, [ebx*2 + 2]
push eax
push ecx
lea eax, [edi + 4]
push eax
call fcn.0049ef90
add esp, 0xc
add ebx, 2
pop ebp
pop esi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
add esp, 0x214
ret
Function at 0x45a640
Capabilities:
Create shortcut via ishelllink
Get keyboard layout

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
push 0
mov ebp, ecx
xor bl, bl
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x10]
push eax
push 0x4bb850
push 1
push 0
push 0x4bb874
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, 1
test eax, eax
js 0x45a7d7
mov eax, dword [esp + 0x10]
push dword [esp + 0x224]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [esp + 0x22c]
cmp word [edx], 0
je 0x45a6a5
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, dword [esp + 0x230]
cmp word [edx], 0
je 0x45a6bd
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [esp + 0x234]
cmp word [edx], 0
je 0x45a6d5
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [esp + 0x240]
cmp word [ecx], 0
je 0x45a6eb
call fcn.004828e0
mov esi, eax
jmp 0x45a6ed
xor esi, esi
mov edi, dword [esp + 0x238]
cmp word [edi], 0
je 0x45a70f
mov ecx, dword [esp + 0x10]
xor eax, eax
test esi, esi
setg al
mov edx, dword [ecx]
sub esi, eax
push esi
push edi
push ecx
call dword [edx + 0x44]
mov esi, dword [esp + 0x23c]
cmp word [esi], 0
je 0x45a751
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.00419330
add esp, 0xc
test al, al
je 0x45a751
mov ecx, dword [esp + 0x10]
mov esi, 0x600
movzx eax, al
or ax, si
movzx eax, ax
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x34]
mov ecx, dword [esp + 0x244]
cmp word [ecx], 0
je 0x45a76e
call fcn.004828e0
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x4bb8a4
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x45a7c8
push 0
lea eax, [esp + 0x1c]
push eax
push 0x104
push dword [esp + 0x234]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
movzx ebx, bl
mov eax, dword [esp + 0x14]
mov esi, 1
push eax
cmovns ebx, esi
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x45a7cd
mov esi, 1
mov ecx, dword [esp + 0x10]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
test bl, bl
je 0x45a7f0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 0x24
push 0
push 0
push ebp
push 0x4d1e48
push str.Failed
mov ecx, 0x4eb110
call fcn.0042fef0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 0x24
Function at 0x45acd0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file

Disassembly:
sub esp, 0x230
cmp word [ecx], 0
je 0x45adce
test dl, dl
jne 0x45acfc
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x45adce
mov al, 1
add esp, 0x230
ret
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ad20
sub ecx, edx
sar ecx, 1
je 0x45ad40
cmp word [esp + ecx*2 + 0x22], 0x5c
jne 0x45ad40
xor eax, eax
mov word [esp + ecx*2 + 0x22], ax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45adce
test al, 0x10
je 0x45adce
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ad60
sub ecx, edx
mov dword [esp + 0xc], 0
sar ecx, 1
xor eax, eax
mov dword [esp + 0x16], 0
mov dword [esp + 0x1a], 0
mov dword [esp + 0x12], 0
mov word [esp + ecx*2 + 0x26], ax
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
mov eax, 0x614
mov word [esp + 0x10], ax
lea eax, [esp]
push eax
mov dword [esp + 4], 0
mov dword [esp + 8], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
add esp, 0x230
ret
xor al, al
add esp, 0x230
ret
Function at 0x45b360
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x234
xor edx, edx
push ebx
push ebp
push esi
push edi
push ecx
push 0
push 1
mov ebp, ecx
call fcn.00481e90
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
test eax, eax
je 0x45b3e3
mov ecx, ebp
call fcn.004828e0
mov esi, eax
test esi, esi
je 0x45b3ed
push esi
push 0
push 0x101000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x45b3ed
push edi
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetProcessId]
cmp eax, esi
jne 0x45b3bf
push 0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x45b467
cmp ebx, 0x102
jne 0x45b3e7
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret
xor esi, esi
jmp 0x45b3ed
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 2
mov dword [esp + 0x1c], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x45b464
nop dword [eax]
test esi, esi
je 0x45b42a
cmp esi, dword [esp + 0x1c]
je 0x45b474
lea eax, [esp + 0x38]
push 0x5c
push eax
call fcn.0049d21e
add esp, 8
test eax, eax
je 0x45b442
add eax, 2
jmp 0x45b446
lea eax, [esp + 0x38]
push ebp
push eax
call fcn.0049f76e
add esp, 8
test eax, eax
je 0x45b484
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x45b420
push edi
call ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret
push edi
call ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret
push edi
call ebx
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret