joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412f70
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7450
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], vtable.StringStorage.0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push 1
mov ecx, eax
call fcn.00403ad0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 0xc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.0041d690
mov dword [ebp - 0x1c], vtable.StringStorage.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push 1
mov ecx, eax
call fcn.00403ad0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 0xc
push str._slave
push str._controlservice
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push dword [ebp - 0x28]
push str.__s___s__s
push eax
call fcn.004038a0
add esp, 0x14
lea ecx, [ebp - 0x48]
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call fcn.0041f830
mov edx, dword [ebp - 0x44]
test edx, edx
je 0x4130ad
mov eax, dword [ebp - 0x18]
lea edi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413080
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x18]
push 1
push 0
push str.tvncontrol
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x48], vtable.RegistryKey.0
test edx, edx
je 0x4130cb
cmp edx, dword [ebp - 0x40]
je 0x4130c4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x3c], vtable.StringStorage.0
call fcn.004039a0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], vtable.StringStorage.0
call fcn.004039a0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], vtable.StringStorage.0
call fcn.004039a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x416730
Capabilities:
Create thread
Resume thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b79b9
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 8]
mov dword [esi], vtable.Thread.0
push eax
push 4
push esi
push 0x46ef60
push 0
mov byte [esi + 0xc], 0
push 0
mov byte [esi + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov dword [ebp - 4], 0
lea ecx, [esi + 0x10]
mov dword [esi], vtable.TcpServer.0
call fcn.004555d0
mov ebx, dword [ebp + 8]
lea ecx, [esi + 0x48]
push ebx
mov byte [ebp - 4], 1
call fcn.00403010
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
mov edx, ebx
push eax
mov word [esi + 0x58], ax
call fcn.00456110
add esp, 4
cmp byte [ebp + 0x14], 0
mov byte [ebp - 4], 3
je 0x4167f2
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
push 0xfffffffffffffffb
push 0xffff
push dword [esi + 0x34]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4168dd
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x10]
call fcn.00455970
push 0xa
push dword [esi + 0x34]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x4168f3
mov dword [ebp - 0x20], vtable.WsaStartup.0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 0x60]
mov dword [ebp - 4], 4
mov dword [esi], vtable.RfbServer.0
mov dword [esi + 0x5c], eax
call fcn.00446170
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 5
mov dword [esi + 0x94], eax
test edi, edi
je 0x41686d
mov dword [esi + 0x60], 2
mov eax, dword [edi + 4]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 8]
mov dword [esi + 0x6c], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x70], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x74], eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
mov byte [esi + 0xc], al
mov eax, dword [ebp + 0xc]
movzx eax, ax
test edi, edi
jne 0x4168a3
push eax
mov eax, dword [ebp + 8]
push eax
push 0x4ceca8
push dword [esi + 0x94]
call fcn.004054c0
add esp, 0x10
jmp 0x4168c7
push dword [edi + 0x10]
push dword [edi + 8]
push dword [edi + 0xc]
push dword [edi + 4]
push eax
mov eax, dword [ebp + 8]
push eax
push str.Rfb_server_started_at__s:_d_with___d__d__d__d__view_port_specified
push dword [esi + 0x94]
call fcn.004054c0
add esp, 0x20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
lea ecx, [ebp - 0x38]
call fcn.00456230
push 0x4f82a4
lea eax, [ebp - 0x38]
push eax
call fcn.00499368
lea ecx, [ebp - 0x50]
call fcn.00456230
push 0x4f82a4
lea eax, [ebp - 0x50]
push eax
call fcn.00499368
int3
Function at 0x417470
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7b96
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
nop word [eax + eax]
cmp byte [edi + 0xd], 0
jne 0x417687
mov ecx, dword [edi + 0xb4]
call fcn.0041e090
mov esi, eax
push 0xc
mov dword [ebp - 0x18], esi
call fcn.00497c04
mov ebx, eax
add esp, 4
push 0xa0
mov dword [ebx], vtable.NamedPipeTransport.0
mov dword [ebx + 4], esi
mov dword [ebx + 8], 0
call fcn.00497c04
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
mov eax, dword [edi + 0xbc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edi, dword [edi + 0xb8]
lea ecx, [esi + 8]
push ecx
push 4
push esi
push 0x46ef60
push 0
mov dword [esi], vtable.Thread.0
mov byte [esi + 0xc], 0
push 0
mov dword [ebp - 0x18], eax
mov byte [esi + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x20], edi
mov edi, dword [ebp - 0x14]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x10], ebx
mov dword [esi], vtable.ControlClient.0
lea eax, [edi + 0x10]
mov byte [esi + 0x25], 0
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x34]
mov dword [esi + 0x28], 0
lea ebx, [eax + 4]
mov dword [esi + 0x30], 0
mov dword [ebp - 0x24], eax
mov dword [eax], vtable.StringStorage.0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
push ebx
push 1
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.00403ad0
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 0xc
lea eax, [esi + 0x48]
mov dword [esi + 0x44], vtable.LocalMutex.0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 5
call fcn.0046f300
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 6
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x9c], eax
mov eax, dword [ecx]
call dword [eax + 4]
push 0x2c
mov dword [esi + 0x14], eax
call fcn.00497c04
mov ecx, dword [esi + 0x14]
mov ebx, eax
add esp, 4
mov dword [ebx + 4], ecx
lea eax, [ecx + 4]
neg ecx
mov dword [ebx], vtable.DataInputStream.0
mov dword [ebx + 8], vtable.DataOutputStream.0
sbb ecx, ecx
and ecx, eax
lea eax, [ebx + 0x14]
mov dword [ebx + 0xc], ecx
push eax
mov dword [ebx + 0x10], vtable.LocalMutex.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebx], vtable.ControlGate.0
mov dword [ebx + 8], vtable.ControlGate.2.0
mov dword [ebx + 0x10], vtable.ControlGate.1.0
mov dword [esi + 0x18], ebx
mov byte [esi + 0x24], 0
mov byte [ebp - 4], 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
lea ecx, [edi + 0x78]
push esi
setne al
mov byte [esi + 0xc], al
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x4174b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417870
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7c63
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx], vtable.ClientTerminationListener.0
mov dword [ebp - 4], 0
mov dword [ebx + 4], vtable.ClipboardListener.0
mov dword [ebx + 8], vtable.UpdateSendingListener.0
mov dword [ebx + 0xc], vtable.ClientAuthListener.0
mov dword [ebx + 0x10], vtable.AbnormDeskTermListener.0
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebx + 0x18]
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
push eax
mov dword [ebx + 0x14], vtable.LocalMutex.0
call edi
mov dword [ebx + 0x14], vtable.SafeVector_class_RfbClientManagerEventListener__.0
mov byte [ebp - 4], 5
lea esi, [ebx + 0x3c]
push 0
mov dword [ebx], vtable.RfbClientManager.1.0
mov dword [ebx + 4], vtable.RfbClientManager.0
mov dword [ebx + 8], vtable.RfbClientManager.3.0
mov dword [ebx + 0xc], vtable.RfbClientManager.2.0
mov dword [ebx + 0x10], vtable.RfbClientManager.4.0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040c210
mov dword [esi], eax
lea esi, [ebx + 0x44]
mov byte [ebp - 4], 6
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040c210
mov dword [esi], eax
lea eax, [ebx + 0x50]
mov dword [ebx + 0x4c], vtable.LocalMutex.0
push eax
call edi
lea ecx, [ebx + 0x68]
mov byte [ebp - 4], 8
call fcn.00446170
lea esi, [ebx + 0x9c]
mov byte [ebp - 4], 9
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00419740
mov dword [esi], eax
push ecx
lea ecx, [ebx + 0xa4]
mov byte [ebp - 4], 0xa
call fcn.0041dd80
lea eax, [ebx + 0xb0]
mov dword [ebx + 0xac], vtable.LocalMutex.0
push eax
call edi
push ecx
lea ecx, [ebx + 0xc8]
mov byte [ebp - 4], 0xc
call fcn.0041dd80
mov eax, dword [ebp + 0x14]
mov byte [ebp - 4], 0xd
mov dword [ebx + 0xd0], 0
mov dword [ebx + 0xd4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xdc], eax
mov eax, dword [ebp + 0x10]
push 0x4cf3c8
push eax
mov dword [ebx + 0xd8], 0
mov dword [ebx + 0xe0], eax
call fcn.004054f0
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x419240
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6848
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x4c]
lea ecx, [edi + 0x4c]
mov dword [ebp - 0x14], vtable.AutoLock.0
mov dword [ebp - 0x10], ecx
call dword [eax + 4]
mov ebx, dword [ebp + 8]
lea ecx, [edi + 0x84]
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov dword [edi + 0x68], eax
mov eax, dword [ebx + 8]
mov dword [edi + 0x70], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x74], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x78], eax
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x7c], eax
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x80], eax
mov eax, dword [ecx]
push dword [ebx + 0x20]
call dword [eax + 4]
movzx eax, byte [ebx + 0x2c]
mov byte [edi + 0x94], al
movzx eax, byte [ebx + 0x2d]
mov byte [edi + 0x95], al
mov eax, dword [ebx + 0x30]
mov dword [edi + 0x98], eax
mov eax, dword [edi + 0x44]
mov esi, dword [eax]
cmp esi, eax
je 0x4192f1
mov ecx, dword [esi + 8]
push ebx
call fcn.00458270
mov esi, dword [esi]
cmp esi, dword [edi + 0x44]
jne 0x4192e1
mov eax, dword [edi + 0x3c]
mov esi, dword [eax]
cmp esi, eax
je 0x419310
nop word [eax + eax]
mov ecx, dword [esi + 8]
push ebx
call fcn.00458270
mov esi, dword [esi]
cmp esi, dword [edi + 0x3c]
jne 0x419300
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41c1c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8323
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
lea esi, [eax + 4]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
push dword [ebp + 8]
mov dword [eax], vtable.WinCommandLineArgs.0
call fcn.00403010
mov dword [ebp - 0x34], vtable.UnicodeStringStorage.0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
push dword [eax + 4]
call fcn.004030d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x58], vtable.StringStorage.0
call fcn.004039a0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
sub eax, ecx
sar eax, 1
add eax, 0xffffffff
je 0x41c385
lea eax, [ebp + 8]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je 0x41c3ab
xor edi, edi
cmp dword [ebp + 8], edi
jle 0x41c37e
nop dword [eax]
push dword [ebx + edi*4]
lea ecx, [ebp - 0x44]
call fcn.00405070
mov dword [ebp - 0x24], vtable.StringStorage.0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 6
push eax
push 1
mov ecx, eax
call fcn.00403ad0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x24]
push 0x4cd35c
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
push dword [ebp - 0x40]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, 1
add eax, 0xffffffff
je 0x41c352
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x41c346
mov dword [ecx], vtable.StringStorage.0
mov dword [ebp - 0x14], ecx
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov byte [ebp - 4], 8
mov eax, dword [ecx]
push dword [ebp - 0x20]
call dword [eax + 4]
add dword [esi + 4], 0x10
jmp 0x41c352
lea eax, [ebp - 0x24]
push eax
push ecx
mov ecx, esi
call fcn.0041c3d0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.StringStorage.0
call fcn.004039a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], vtable.UnicodeStringStorage.0
call fcn.004039a0
inc edi
cmp edi, dword [ebp + 8]
jl 0x41c290
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], vtable.UnicodeStringStorage.0
call fcn.004039a0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x48]
push 0x4d00a4
push eax
call fcn.00404c10
add esp, 8
lea eax, [ebp - 0x48]
push 0x4f7f80
push eax
call fcn.00499368
int3
Function at 0x41d2d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b84f8
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push esi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x24]
test eax, eax
je 0x41d310
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x28]
test eax, eax
je 0x41d325
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x28], 0
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call fcn.0041d220
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0041d430
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x98]
push eax
movzx eax, byte [esi + 0x3c]
push 0
push 0
push 0
push eax
push 0
push 0
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41d399
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x24], eax
mov dword [ebp - 0x1c], vtable.StringStorage.0
call fcn.004039a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x54]
call fcn.0041ca90
push 0x4f80ac
lea eax, [ebp - 0x54]
push eax
call fcn.00499368
int3

Function at 0x41d960
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68
xorps xmm0, xmm0
mov dword [esp + 0x44], 0
lea eax, [esp + 0x2c]
movlpd qword [esp + 0x4c], xmm0
push eax
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
mov dword [esp + 0x68], 0
mov dword [esp + 0x30], 0x3c
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0x440
mov dword [esp + 0x3c], str.runas
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x41d9e7
push 0xffffffffffffffff
push dword [esp + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 4]
call fcn.0041ca90
push 0x4f80ac
lea eax, [esp + 8]
push eax
call fcn.00499368
int3
Function at 0x41dfd0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b86e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x20]
xor edx, edx
test ecx, ecx
je 0x41e00a
cmp byte [ecx + 0x10], dl
lea eax, [ecx + 4]
cmove edx, eax
mov eax, dword [esi + 0x28]
push edx
push 0
push eax
push eax
push 0xff
push 0
push 0x40000003
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x24], eax
cmp eax, 0xffffffff
je 0x41e03f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1c]
call fcn.00402f80
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1c]
push str.CreateNamedPipe_failed__error_code___d
push eax
call fcn.004038a0
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00403130
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00404c10
add esp, 8
lea eax, [ebp - 0x30]
push 0x4f7f80
push eax
call fcn.00499368
int3
Function at 0x41e090
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b873a
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x24]
cmp ecx, 0xffffffff
jne 0x41e0cb
mov ecx, esi
call fcn.0041dfd0
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
push ecx
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x41e1a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x217
je 0x41e166
cmp edi, 0x3e5
jne 0x41e1f0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x41e11e
push dword [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x41e166
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00402f80
push esi
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 1
push str.GetOverlappedResult___failed_after_the_ConnectNamedPipe___call__error_code___d
push eax
call fcn.004038a0
add esp, 0xc
lea ecx, [ebp - 0x20]
jmp 0x41e214
push 0xa0
call fcn.00497c04
add esp, 4
mov dword [ebp - 0x10], eax
push 1
mov dword [ebp - 4], 3
mov ecx, eax
push dword [esi + 0x28]
push dword [esi + 0x24]
call fcn.00421780
mov dword [esi + 0x24], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00402f80
push esi
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push str.ConnectNamedPipe_failed__error_code___d
push eax
call fcn.004038a0
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.00403130
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00404c10
add esp, 8
lea eax, [ebp - 0x34]
push 0x4f7f80
push eax
call fcn.00499368
lea ecx, [ebp - 0x30]
call fcn.00402f80
push edi
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 2
push str.ConnectNamedPipe_failed__error_code___d
push eax
call fcn.004038a0
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.00403130
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00404c10
add esp, 8
lea eax, [ebp - 0x5c]
push 0x4f7f80
push eax
call fcn.00499368
int3
Function at 0x41eb20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4fee44]
sub esp, 0xe8
push esi
test eax, eax
je 0x41eb5c
lea edx, [ebp - 8]
mov dword [ebp - 4], 0
push edx
lea edx, [ebp - 4]
push edx
push 0x19
push ecx
push 0
call eax
test eax, eax
je 0x41eb5c
mov eax, dword [ebp - 4]
cmp dword [eax], 1
je 0x41eb63
push eax
call dword [0x4fee50]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea esi, [eax + 8]
mov ecx, 0x38
lea edi, [ebp - 0xe8]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [0x4fee50]
mov eax, dword [0x4fed30]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
pop edi
test eax, eax
jne 0x41ebab
push 0x4fed30
mov dword [0x4fed30], 0x114
call esi
neg eax
sbb eax, eax
and eax, dword [0x4fed30]
mov dword [0x4fed30], eax
cmp dword [0x4fed34], 6
jne 0x41ebf3
cmp dword [0x4fed38], 1
jne 0x41ebf3
test eax, eax
jne 0x41ebe1
push 0x4fed30
mov dword [0x4fed30], 0x114
call esi
neg eax
sbb eax, eax
and eax, dword [0x4fed30]
mov dword [0x4fed30], eax
cmp dword [0x4fed40], 2
jne 0x41ebf3
cmp dword [ebp - 0xe0], 1
jmp 0x41ebfa
cmp dword [ebp - 0xe0], 0
jne 0x41eb5c
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41eea0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b893e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
push 8
mov dword [ebp - 4], 0
call fcn.00497c04
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
mov ecx, esi
push str.Kernel32.dll
mov dword [esi], vtable.DynamicLibrary.0
mov dword [esi + 4], 0
call fcn.00420380
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSGetActiveConsoleSessionId
push dword [esi + 4]
mov dword [0x4fee54], esi
call edi
mov dword [0x4fee5c], eax
jmp 0x41ef40
push 8
mov dword [ebp - 4], 3
call fcn.00497c04
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 4
mov ecx, esi
push str.Wtsapi32.dll
mov dword [esi], vtable.DynamicLibrary.0
mov dword [esi + 4], 0
call fcn.00420380
push str.WTSQueryUserToken
push dword [esi + 4]
mov dword [0x4fee48], esi
call edi
mov dword [0x4fee4c], eax
mov eax, dword [0x4fee48]
push str.WTSQuerySessionInformationW
push dword [eax + 4]
call edi
mov dword [0x4fee44], eax
mov eax, dword [0x4fee48]
push str.WTSEnumerateSessionsW
push dword [eax + 4]
call edi
mov dword [0x4fee58], eax
mov eax, dword [0x4fee48]
push str.WTSFreeMemory
push dword [eax + 4]
call edi
mov dword [0x4fee50], eax
mov byte [0x4fed25], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret