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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
push edi
add eax, 0xc
push eax
lea edi, [esi + 4]
push edi
call fcn.004502a0
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 8]
mov dword [ecx + 0xc], edx
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x10], ecx
mov eax, dword [esi + 8]
lea edx, [eax + 0xc]
mov eax, dword [eax]
push edx
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0xc]
add ecx, dword [esi + 0xc]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [eax + 0x14], ecx
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x10]
add edx, dword [esi + 0x10]
mov dword [eax + 0x18], edx
mov eax, dword [esi + 8]
mov ecx, dword [esi]
push eax
push 0
mov dword [eax + 8], 7
mov eax, dword [ecx]
push 0x401
push eax
call ebx
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x450460
mov eax, dword [esi + 8]
mov ecx, dword [esi]
push eax
push 0
mov dword [eax + 8], 1
mov edx, dword [ecx]
push 0x401
push edx
call ebx
test eax, eax
jne 0x45049a
mov eax, dword [esi + 8]
mov dword [eax + 4], 0
mov ecx, dword [esi + 0x14]
add ecx, dword [ebp + 8]
mov edx, dword [esi + 8]
mov dword [edx + 0xc], ecx
mov eax, dword [esi + 0x18]
add eax, dword [ebp + 0xc]
mov ecx, dword [esi + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
mov edx, dword [eax + 0xc]
add edx, dword [esi + 0xc]
mov dword [eax + 0x14], edx
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x10]
add ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov edx, dword [esi + 8]
add edx, 0xc
push edx
push edi
mov ecx, esi
call fcn.004502a0
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4504b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583a78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [ebp + 0x10]
shr eax, 0x10
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x4504f9
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebp + 0x14], ebx
xor edi, edi
mov dword [ebp - 4], edi
push ebx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x45062a
push esi
push 0x30
lea edx, [ebp - 0x40]
push 0
push edx
call fcn.00555020
push 0x110
lea eax, [ebp - 0x150]
push 0
push eax
mov dword [ebp - 0x40], 0x30
call fcn.00555020
add esp, 0x18
lea ecx, [ebp - 0x154]
push ecx
mov dword [ebp - 0x154], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x450574
mov eax, dword [ebp - 0x150]
cmp eax, 5
jae 0x45057b
cmp eax, 4
jne 0x450574
cmp dword [ebp - 0x14c], 0x5a
jae 0x45057b
mov dword [ebp - 0x40], 0x2c
lea eax, [ebp - 0x40]
push eax
push 1
push edi
lea edx, [ebp - 0x21c]
push ebx
mov dword [ebp - 0x18], 0x64
mov dword [ebp - 0x3c], 0x3f
mov dword [ebp - 0x1c], edx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test dword [ebp - 0x38], 0x100
jne 0x450619
push 0x10
call fcn.0055549a
mov esi, eax
add esp, 4
test esi, esi
je 0x450619
mov eax, dword [ebp - 0x38]
or eax, 0x100
mov dword [ebp - 0x38], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x21c]
push edx
mov dword [esi + 8], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053f875
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x450608
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x40]
push edx
push 1
push edi
push ebx
mov dword [ebp - 0x20], esi
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
push ebx
inc edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp edi, eax
jl 0x450516
pop esi
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x10]
push eax
add ecx, 0x20
mov dword [ebp + 0x10], ebx
call fcn.00425c60
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4515d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 0x20]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x45163e
push esi
lea ecx, [eax + eax + 2]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x451637
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [edi + 0x20]
mov edx, eax
lea ecx, [ecx]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x451600
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
xor eax, eax
pop edi
ret 0x10
xor eax, eax
pop edi
ret 0x10
Function at 0x451cc0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDC]
push esi
mov esi, ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x344]
push edi
push ecx
call ebx
lea edx, [ebp - 0x4c]
mov edi, eax
push edx
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [esi + 0x344]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x344]
push 0x400
lea eax, [ebp - 0x84c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp - 8]
cdq
sub eax, edx
mov edx, dword [esi + 0x354]
mov edi, eax
push edx
sar edi, 1
call ebx
lea ecx, [ebp - 0x4c]
push ecx
push eax
mov dword [ebp + 0x14], eax
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov edx, dword [ebp + 0x14]
mov eax, dword [esi + 0x354]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x354]
push 0x400
lea eax, [ebp - 0x84c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [0x5f7bf0], 0
jne 0x451e71
mov edx, dword [esi + 0x350]
push edx
call ebx
lea ecx, [ebp - 0x4c]
push ecx
push eax
mov dword [ebp + 0x14], eax
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov edx, dword [ebp + 0x14]
mov eax, dword [esi + 0x350]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x350]
push 0x400
lea eax, [ebp - 0x84c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
push 0x40
push 0x19
push eax
sub eax, edi
add edx, 0xffffffe7
push edx
dec eax
push eax
mov eax, dword [esi + 0x350]
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 0x348]
push ecx
call ebx
lea edx, [ebp - 0x4c]
mov ebx, eax
push edx
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [esi + 0x348]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x348]
push 0x400
lea eax, [ebp - 0x84c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push 0x40
push 0x17
lea edx, [eax - 1]
push edx
mov edx, dword [esi + 0x348]
add ecx, 0xffffffe8
push ecx
sub eax, edi
add eax, 0xa
push eax
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x452010
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
mov esi, ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 0x348]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x18]
push ecx
push edx
call edi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov ebx, dword [sym.imp.USER32.dll_PtInRect]
push eax
push ecx
lea edx, [ebp - 0x18]
push edx
call ebx
test eax, eax
je 0x45209f
mov ecx, dword [0x5fd7c0]
push 0x80
lea eax, [ebp - 0x118]
push eax
push 0x108
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
push 1
push 0
push 0
lea edx, [ebp - 0x118]
push edx
push 0x59bf70
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esi + 0x350]
lea ecx, [ebp - 0x18]
push ecx
push edx
call edi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push eax
push ecx
lea edx, [ebp - 0x18]
push edx
call ebx
test eax, eax
jne 0x45208b
mov ecx, dword [ebp + 0x14]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x455a90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5885b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push bind
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0x1fa0
call fcn.0053f875
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp edi, esi
jne 0x455b20
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x455b04
and eax, 0xffff
or eax, 0x80070000
push str.hFile
push eax
lea ecx, [ebp - 0x3c]
call fcn.00434a80
push 0x5cc0a0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00554cbc
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x80]
call fcn.00454570
mov byte [ebp - 4], 2
lea esp, [esp]
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, 0xfd0
sub eax, esi
add eax, eax
push eax
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + esi*2]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov ebx, eax
shr ebx, 1
add ebx, esi
add dword [ebp - 0x24], eax
test eax, eax
je 0x455bed
xor esi, esi
mov dword [ebp - 0x14], esi
mov edi, ebx
sub edi, esi
mov eax, dword [ebp - 0x18]
lea eax, [eax + esi*2]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push eax
lea ecx, [ebp - 0x80]
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xffffffff
je 0x455bb5
test eax, eax
je 0x455be0
add esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
jb 0x455bdc
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x455be0
lea eax, [edi + edi]
cmp eax, 0xfd0
ja 0x455bae
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0xfd0
mov edx, dword [ebp - 0x18]
push edx
call fcn.00554d08
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x14], esi
jmp 0x455be0
test eax, eax
jg 0x455b76
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
jne 0x455b40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x80]
call fcn.00454500
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x455c10
push eax
call fcn.005559df
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455c3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457fb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
test ecx, ecx
je 0x457fc5
lea eax, [ecx - 0x258]
mov dword [ebp - 8], eax
jmp 0x457fcf
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
cmp dword [ebp + 0x14], 0
mov dword [ebp - 4], 1
je 0x4580ce
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 4]
push ebx
push esi
push edi
push ecx
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [ebx]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
mov dword [ebp - 0xc], 0xffffffff
jge 0x458021
push esi
mov ecx, ebx
call fcn.00403ca0
mov eax, dword [ebx]
test esi, esi
js 0x4580c4
cmp esi, dword [eax - 8]
jg 0x4580c4
mov dword [eax - 0xc], esi
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + esi*2], dx
test eax, eax
je 0x458082
lea ecx, [esi + 1]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [ebx]
mov dword [ebp - 0xc], eax
test edx, edx
jne 0x45805c
xor eax, eax
jmp 0x458072
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x458061
sub eax, edi
sar eax, 1
js 0x4580c4
cmp eax, dword [edx - 8]
jg 0x4580c4
mov dword [edx - 0xc], eax
mov edx, dword [ebx]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp dword [ebp - 0xc], esi
jl 0x4580b1
cmp dword [ebp + 0x18], 0
je 0x4580b8
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
cmp ecx, dword [ebp + 0x1c]
jle 0x4580b8
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x2c]
push edx
push eax
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x258
call fcn.00456f10
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x80070057
call fcn.00401150
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
mov edx, dword [eax + 4]
push ecx
mov ecx, dword [ebp + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov dword [ebp - 4], eax
mov esp, ebp
pop ebp
ret 0x18
Function at 0x458340
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588728
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov dword [ebp - 0x10], ecx
push edi
add ecx, 0x20
call fcn.004f9f00
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [0x5f7514]
cmp esi, dword [0x5f7518]
je 0x4583ae
mov ebx, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
push eax
push 0
push 1
call ebx
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, dword [0x5f7518]
jne 0x458388
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x5f7190]
add esi, 0x10
mov edi, eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x14], 0
mov dword [ebp - 4], 1
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x5f7970]
mov ecx, dword [ebx + 8]
xor eax, eax
mov byte [ebp - 0x14], 1
test ecx, ecx
jle 0x458405
mov edx, dword [ebx]
lea esp, [esp]
cmp dword [edx], edi
je 0x458400
inc eax
add edx, 4
cmp eax, ecx
jl 0x4583f0
xor edi, edi
jmp 0x45841a
cmp eax, 0xffffffff
jne 0x458409
xor edi, edi
jmp 0x45841a
test eax, eax
js 0x45847a
cmp eax, ecx
jge 0x45847a
mov ecx, dword [ebx + 4]
mov edi, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x45843e
lea edx, [esi + 0x23c]
mov dword [ebp - 0x10], edx
jmp 0x458445
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 4]
call fcn.004579d0
mov ecx, dword [esi + 0x25c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov byte [0x5ecd91], 1
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]

Function at 0x459550
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x800
movzx edx, cl
push esi
mov eax, ecx
push edx
shr eax, 0x10
shr ecx, 8
movzx ecx, cl
movzx edx, al
push ecx
shr eax, 8
push edx
movzx eax, al
push eax
lea ecx, [ebp - 0x800]
push 0x5a008c
push ecx
call fcn.00456aa0
add esp, 0x18
lea edx, [ebp - 0x800]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053f875
mov esi, eax
add esp, 4
lea eax, [ebp - 0x800]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0
push esi
push 0x459100
push 0
push 0
call fcn.00556b34
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x45a7a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00459470
Function at 0x45f6c0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5890d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
xor eax, eax
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
mov esi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x14], eax
lea esp, [esp]
mov eax, dword [0x5f5774]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f5774
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
test esi, esi
je 0x45f743
test esi, 0xffff0000
jne 0x45f743
movzx edi, si
push 0
push edi
call fcn.004013d0
add esp, 8
test eax, eax
je 0x45f74c
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.00412bd0
jmp 0x45f74c
push esi
lea ecx, [ebp - 0x10]
call fcn.00412df0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
push 0xf003f
push 0
push eax
call fcn.00505a30
movzx ecx, al
add esp, 4
neg ecx
sbb ecx, ecx
not ecx
and ecx, esi
push ecx
call ebx
mov edi, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45f796
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x45f7e8
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 0x14
jl 0x45f700
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x45f7cc
and eax, 0xffff
or eax, 0x80070000
push str.hSCM
push eax
lea ecx, [ebp - 0x2c]
call fcn.00434a80
push 0x5cc0a0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00554cbc
xor ebx, ebx
lea ebx, [ebx]
mov edx, dword [ebp + 8]
push 0xf01ff
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x45f84a
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x14
jl 0x45f7f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x45f82e
and eax, 0xffff
or eax, 0x80070000
push str.hService
push eax
lea ecx, [ebp - 0x2c]
call fcn.00434a80
push 0x5cc0a0
lea eax, [ebp - 0x2c]
push eax
call fcn.00554cbc
xor ebx, ebx
lea esp, [esp]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
setne al
test al, al
jne 0x45f88f
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x14
jl 0x45f850
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x45f885
and eax, 0xffff
or eax, 0x80070000
push str.bRes
jmp 0x45f7d1
mov byte [ebp - 4], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov dword [ebp - 4], 0xffffffff
push edi
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4601e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589130
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0
push 2
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
jne 0x460254
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x460238
and eax, 0xffff
or eax, 0x80070000
push str.hFile_____HANDLE__LONG_PTR__1_
push eax
lea ecx, [ebp - 0x28]
call fcn.00434a80
push 0x5cc0a0
lea ecx, [ebp - 0x28]
push ecx
call fcn.00554cbc
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov edx, dword [ebp + 0xc]
mov eax, edx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460270
sub eax, edi
sar eax, 1
push 0
lea ecx, [ebp - 0x14]
push ecx
add eax, eax
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4602c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4602a8
and eax, 0xffff
or eax, 0x80070000
push str.WriteFile_hFile__MsiFileName__wcslen_MsiFileName___sizeof_TCHAR___BytesWritten__0_
push eax
lea ecx, [ebp - 0x38]
call fcn.00434a80
push 0x5cc0a0
lea ecx, [ebp - 0x38]
push ecx
call fcn.00554cbc
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460e60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
mov esi, ecx
mov eax, dword [esi + 0xa4]
sub eax, 2
je 0x460f63
sub eax, 2
jne 0x461051
cmp dword [esi + 0x94], eax
je 0x460f10
mov eax, dword [esi + 0x9c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esi + 0x9c]
test ecx, ecx
je 0x460eb3
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov ecx, dword [esi + 0x24]
push 5
push ecx
mov dword [esi + 0x9c], 0
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x5fd7c0]
push 0x80
lea edx, [ebp - 0x110]
push edx
push 0x10e
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [esi + 4]
push 1
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea edx, [ebp - 0x110]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
add dword [esi + 0xa4], 0xfffffffe
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esi + 0xa0]
call fcn.00457550
mov ecx, dword [0x5fd7c0]
push 0x80
lea eax, [ebp - 0x110]
push eax
push 0x10d
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [esi + 4]
push 1
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x110]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
add dword [esi + 0xa4], 0xfffffffe
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esi + 0x24]
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push edx
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x460f83
mov eax, dword [esi + 0x24]
push 0
push eax
call ebx
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x460fa5
mov ecx, dword [eax + 4]
push ecx
call edi
test eax, eax
je 0x460fa5
mov edx, dword [esi + 0xa0]
mov eax, dword [edx + 4]
push 0
push eax
call ebx
mov edx, dword [0x5fd7c0]
push 0x80
lea ecx, [ebp - 0x110]
push ecx
push 0x2af8
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push eax
call edi
lea ecx, [ebp - 0x110]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [esi + 4]
push 0x456
push edx
call edi
push 5
push eax
call ebx
mov eax, dword [esi + 4]
push 0x456
push eax
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [esi + 4]
push 1
push ecx
call edi
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [esi + 4]
push 1
push edx
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 4]
push 1
lea edx, [ebp - 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esi + 0x74]
push 5
push ecx
call ebx
dec dword [esi + 0xa4]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10