joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402640
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x258
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x254], eax
mov eax, dword [esp + 0x25c]
push ebx
push ebp
push esi
push edi
push 0x104
lea ecx, [esp + 0x15c]
push ecx
xor ebp, ebp
push ebp
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40274c
lea edx, [esp + 0x158]
push 0x5c
push edx
call fcn.0045cab0
add esp, 8
test eax, eax
je 0x40274c
mov byte [eax], 0
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4026a8
sub eax, edx
cmp byte [esp + eax + 0x157], 0x5c
je 0x4026d4
lea edi, [esp + 0x158]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4026c3
mov ax, word [0x47533c]
mov word [edi], ax
lea eax, [esp + 0x158]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4026e0
mov ecx, dword [str..dsm]
mov dx, word [0x475344]
mov dword [eax], ecx
mov word [eax + 4], dx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40274c
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x44]
push edx
push 0
push 0x143
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
push esi
inc ebp
call ebx
test eax, eax
jne 0x402721
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebp
jmp 0x40274e
xor eax, eax
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045c77f
add esp, 0x258
ret 4
Function at 0x402770
Capabilities:
Delete file
Link many functions at runtime

Disassembly:
sub esp, 0x210
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
lea edi, [ebx + 0x1c8]
mov eax, edi
mov dword [esp + 0xc], edi
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4027a0
sub eax, esi
push eax
push 0
push edi
call fcn.00462100
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx + 0x1c4], eax
test eax, eax
jne 0x40286b
push 0x104
lea eax, [esp + 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4027f8
lea ecx, [esp + 0x114]
push 0x5c
push ecx
call fcn.0045cab0
add esp, 8
mov byte [eax], 0
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x114]
mov byte [esp + eax + 0x10], cl
inc eax
test cl, cl
jne 0x402800
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402815
mov dx, word [0x47533c]
mov eax, ebp
mov word [edi], dx
mov esi, eax
jmp 0x402830
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402830
lea edi, [esp + 0x10]
sub eax, esi
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402840
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [esp + 0xc]
mov dword [ebx + 0x1c4], eax
mov eax, dword [ebx + 0x1c4]
test eax, eax
je 0x40298d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Description
push eax
call esi
mov ecx, dword [ebx + 0x1c4]
push str.Startup
push ecx
mov dword [ebx + 0x2cc], eax
call esi
mov edx, dword [ebx + 0x1c4]
push str.Shutdown
push edx
mov dword [ebx + 0x2d4], eax
call esi
mov dword [ebx + 0x2d0], eax
mov eax, dword [ebx + 0x1c4]
push str.SetParams
push eax
call esi
mov ecx, dword [ebx + 0x1c4]
push str.GetParams
push ecx
mov dword [ebx + 0x2d8], eax
call esi
mov edx, dword [ebx + 0x1c4]
push str.TransformBuffer
push edx
mov dword [ebx + 0x2dc], eax
call esi
mov dword [ebx + 0x2e0], eax
mov eax, dword [ebx + 0x1c4]
push str.RestoreBuffer
push eax
call esi
mov ecx, dword [ebx + 0x1c4]
push str.FreeBuffer
push ecx
mov dword [ebx + 0x2e4], eax
call esi
mov edx, dword [ebx + 0x1c4]
push str.Reset
push edx
mov dword [ebx + 0x2e8], eax
call esi
cmp dword [ebx + 0x2d4], 0
mov dword [ebx + 0x2ec], eax
je 0x402974
cmp dword [ebx + 0x2d0], 0
je 0x402974
cmp dword [ebx + 0x2d8], 0
je 0x402974
cmp dword [ebx + 0x2dc], 0
je 0x402974
cmp dword [ebx + 0x2e0], 0
je 0x402974
cmp dword [ebx + 0x2e4], 0
je 0x402974
cmp dword [ebx + 0x2e8], 0
je 0x402974
mov byte [ebx + 0x20], 1
mov al, 1
jmp 0x40298f
mov eax, dword [ebx + 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [edi], 0
je 0x40298d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0045c77f
add esp, 0x210
ret 4
Function at 0x4029b0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esi + 0x2f0]
test eax, eax
je 0x4029c6
push eax
mov eax, dword [esi + 0x2e8]
call eax
add esp, 4
mov eax, dword [esi + 0x2f4]
test eax, eax
je 0x4029dc
mov ecx, dword [esi + 0x2e8]
push eax
call ecx
add esp, 4
mov edx, dword [esi + 0x2d0]
mov dword [esi + 0x2f0], 0
mov dword [esi + 0x2f4], 0
mov byte [esi + 0x20], 0
call edx
test eax, eax
je 0x402a29
mov eax, dword [esi + 0x1c4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
lea eax, [esi + 0x1c8]
setne bl
cmp byte [eax], 0
je 0x402a25
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, bl
pop ebx
ret
xor al, al
ret

Function at 0x402ab0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x14c]
push eax
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
nop
mov cl, byte [eax + str._settings]
mov byte [esp + eax + 0x44], cl
inc eax
test cl, cl
jne 0x402ae0
lea edi, [esp + 0x44]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402af4
mov cx, word [0x479fdc]
mov eax, esi
mov word [edi], cx
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402b10
lea edi, [esp + 0x44]
sub eax, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402b20
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [esp + 0x10], eax
lea ecx, [esp + 8]
lea edx, [esp + 0x148]
lea eax, [esp + 0x44]
push ecx
mov dword [esp + 0x18], str.runas
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
xor ecx, esp
call fcn.0045c77f
add esp, 0x248
ret
Function at 0x403c80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x140], eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp], 0x3c
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], str._stopservice
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0045c77f
add esp, 0x144
ret

Function at 0x403d10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x68
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [str.net_stop]
mov dx, word [0x47a348]
mov ecx, dword [0x47a344]
mov dword [esp], eax
mov eax, str.uvnc_service
mov word [esp + 8], dx
mov dword [esp + 4], ecx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403d43
push esi
push edi
lea edi, [esp + 8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403d53
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
xor ecx, esp
call fcn.0045c77f
add esp, 0x68
ret

Function at 0x403d90
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x140], eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp], 0x3c
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], str._startservice
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0045c77f
add esp, 0x144
ret

Function at 0x403e20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x68
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [str.net_start]
mov dx, word [0x47a354]
mov ecx, dword [0x47a350]
mov dword [esp], eax
mov al, byte [0x47a356]
mov byte [esp + 0xa], al
mov eax, str.uvnc_service
mov word [esp + 8], dx
mov dword [esp + 4], ecx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403e60
push esi
push edi
lea edi, [esp + 8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403e70
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
xor ecx, esp
call fcn.0045c77f
add esp, 0x68
ret
Function at 0x403eb0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x140], eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp], 0x3c
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], str._install
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0045c77f
add esp, 0x144
ret

Function at 0x403f40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x140], eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp], 0x3c
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], str._uninstall
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0045c77f
add esp, 0x144
ret

Function at 0x403fd0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x140], eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp], 0x3c
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], str._securityeditor
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0045c77f
add esp, 0x144
ret

Function at 0x4041f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0x20019
push 0
push str.Control_PanelDesktop
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40423f
mov edx, dword [esp]
lea ecx, [esp + 4]
push ecx
push 0x4a66c8
push eax
push eax
push str.WallpaperStyle
push edx
mov dword [esp + 0x1c], 0xa
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
Function at 0x404250
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20006
push 0
push str.Control_PanelDesktop
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4042a4
mov eax, 0x4a66c8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404278
mov ecx, dword [esp]
sub eax, edx
push eax
push 0x4a66c8
push 1
push 0
push str.WallpaperStyle
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret

Function at 0x404570
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0x104
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x404664
push 0x104
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4045d0
lea edx, [esp + 0xc]
push 0x5c
push edx
call fcn.0045cab0
add esp, 8
test eax, eax
je 0x4046c1
mov byte [eax], 0
lea eax, [esp + 0xc]
mov byte [ebx], 0
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4045e0
mov edi, ebx
sub eax, esi
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4045f0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404610
mov ax, word [0x47533c]
mov word [edi], ax
dec ebx
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x404622
mov ecx, dword [str.ultravnc.ini]
mov dword [ebx], ecx
mov edx, dword [0x47a3c8]
mov dword [ebx + 4], edx
mov eax, dword [0x47a3cc]
mov dword [ebx + 8], eax
mov cl, byte [0x47a3d0]
pop edi
pop esi
mov byte [ebx + 0xc], cl
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0045c77f
add esp, 0x108
ret
lea eax, [esp + 0xc]
mov byte [ebx], 0
mov esi, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404670
mov edi, ebx
sub eax, esi
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404680
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
dec ebx
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x404697
mov edx, dword [str.ultravnc.ini]
mov dword [ebx], edx
mov eax, dword [0x47a3c8]
mov dword [ebx + 4], eax
mov ecx, dword [0x47a3cc]
mov dword [ebx + 8], ecx
mov dl, byte [0x47a3d0]
mov byte [ebx + 0xc], dl
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045c77f
add esp, 0x108
ret
Function at 0x4046e0
Capabilities:
Create process on windows
Find taskbar

Disassembly:
sub esp, 0x27c
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x278], eax
push ebp
mov ebp, dword [esp + 0x284]
push esi
push edi
push 0x104
lea eax, [esp + 0x17c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
jmp 0x404720
mov cl, byte [esp + eax + 0x178]
mov byte [esp + eax + 0x70], cl
inc eax
test cl, cl
jne 0x404720
lea eax, [esp + 0x70]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404735
mov ecx, dword [str.__settingshelper]
mov edx, dword [0x47a3d8]
mov dword [eax], ecx
mov ecx, dword [0x47a3dc]
mov dword [eax + 4], edx
mov edx, dword [0x47a3e0]
mov dword [eax + 8], ecx
mov cl, byte [0x47a3e4]
lea edi, [esp + 0x70]
mov dword [eax + 0xc], edx
mov byte [eax + 0x10], cl
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404770
mov dx, word [0x479fdc]
mov eax, ebp
mov word [edi], dx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404786
lea edi, [esp + 0x70]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404796
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x44
lea eax, [esp + 0x2c]
and ecx, 3
push 0
push eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x1c], 0
call fcn.00462100
xor eax, eax
add esp, 0xc
push eax
mov ecx, 5
push str.Shell_TrayWnd
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov word [esp + 0x60], cx
mov dword [esp + 0x38], str.Winsta0Default
mov dword [esp + 0x30], 0x44
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40489c
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40489c
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40489c
lea eax, [esp + 0x10]
push eax
push 0x2000000
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 8
push 0
push 0
push 0
lea eax, [esp + 0x90]
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40488d
push eax
call esi
cmp edi, 0x522
jne 0x40489c
mov ecx, ebp
call fcn.00402ab0
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0045c77f
add esp, 0x27c
ret 4
Function at 0x4049a0
Capabilities:
Read file via mapping

Disassembly:
push ebx
xor bl, bl
cmp dword [esi + 4], 0
jne 0x4049bb
push str.34F673E0_878F_11D5_B98A_00B0D07B8C7C
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4049e2
push 0
push 0
push 0
push 6
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x4049dc
xor bl, bl
mov dword [esi + 0x109b4], eax
mov al, bl
pop ebx
ret
Function at 0x406150
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x470c09
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x489348]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, dword [esp + 0x3c]
xor esi, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
call fcn.00455330
mov ecx, dword [esp + 0x38]
mov dword [edi], eax
mov ecx, dword [ecx]
lea ebx, [esp + 0x14]
call fcn.00455ed0
mov edx, dword [esp + 0x40]
mov dword [esp + 0x30], esi
mov eax, dword [edi]
mov ecx, dword [edx]
mov esi, eax
mov dword [esp + 0x10], 1
call fcn.00455590
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x4061e0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x470c09
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x489348]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor edi, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
call fcn.00455330
mov ecx, dword [esp + 0x38]
mov dword [esi], eax
mov ecx, dword [ecx]
lea ebx, [esp + 0x14]
call fcn.00455ed0
mov edx, dword [esp + 0x40]
mov dword [esp + 0x30], edi
mov eax, dword [esi]
mov ebx, dword [edx]
mov ecx, eax
mov dword [esp + 0x10], 1
call fcn.00455ed0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x406270
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x470c09
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x489348]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor edi, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
call fcn.00455330
mov ecx, dword [esp + 0x38]
mov dword [esi], eax
mov ecx, dword [ecx]
lea ebx, [esp + 0x14]
call fcn.00455ed0
mov edx, dword [esp + 0x40]
mov dword [esp + 0x30], edi
mov ecx, dword [esi]
mov eax, dword [edx]
mov edx, ecx
mov dword [esp + 0x10], 1
call fcn.004561a0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc
Function at 0x4072e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x471208
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x489348]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
lea esi, [ecx + 4]
push eax
lea ecx, [esp + 0x34]
push ecx
push esi
call fcn.004061e0
mov ecx, eax
xor eax, eax
mov dword [esp + 0x28], eax
mov edx, dword [esi]
mov dword [edx + 4], eax
mov ecx, dword [ecx]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov eax, dword [esi]
lea ebx, [esp + 0xc]
call fcn.00455ed0
mov eax, dword [esp + 0x30]
mov esi, eax
mov eax, dword [eax + 8]
push eax
call fcn.0045d511
push esi
call fcn.0045d511
add esp, 8
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret 4