joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417300
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6d56
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4fb008]
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 0x417517
mov ecx, dword [edi + 0xb4]
call fcn.0041df10
mov esi, eax
push 0xc
mov dword [ebp - 0x18], esi
call fcn.00497c14
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.00497c14
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 0x46ef80
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.00404970
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cc34c
push ecx
call fcn.0049ae40
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.0046f330
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.00497c14
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 0x417340
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 0x417700
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6e23
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4fb008]
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.0040d0b0
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.0040d0b0
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.004460c0
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.004195d0
mov dword [esi], eax
push ecx
lea ecx, [ebx + 0xa4]
mov byte [ebp - 4], 0xa
call fcn.0041dc00
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.0041dc00
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 0x4cfb18
push eax
mov dword [ebx + 0xd8], 0
mov dword [ebx + 0xe0], eax
call fcn.00406390
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 0x4190d0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5aa8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4fb008]
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 0x419181
mov ecx, dword [esi + 8]
push ebx
call fcn.00458280
mov esi, dword [esi]
cmp esi, dword [edi + 0x44]
jne 0x419171
mov eax, dword [edi + 0x3c]
mov esi, dword [eax]
cmp esi, eax
je 0x4191a0
nop word [eax + eax]
mov ecx, dword [esi + 8]
push ebx
call fcn.00458280
mov esi, dword [esi]
cmp esi, dword [edi + 0x3c]
jne 0x419190
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 0x41c050
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b74e3
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x4fb008]
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.00403eb0
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.00403f70
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x58], vtable.StringStorage.0
call fcn.00404840
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
sub eax, ecx
sar eax, 1
add eax, 0xffffffff
je 0x41c215
lea eax, [ebp + 8]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je 0x41c23b
xor edi, edi
cmp dword [ebp + 8], edi
jle 0x41c20e
nop dword [eax]
push dword [ebx + edi*4]
lea ecx, [ebp - 0x44]
call fcn.00405f10
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.00404970
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cc34c
push ecx
call fcn.0049ae40
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x24]
push 0x4cc34c
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 0x41c1e2
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x41c1d6
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 0x41c1e2
lea eax, [ebp - 0x24]
push eax
push ecx
mov ecx, esi
call fcn.0041c260
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.StringStorage.0
call fcn.00404840
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], vtable.UnicodeStringStorage.0
call fcn.00404840
inc edi
cmp edi, dword [ebp + 8]
jl 0x41c120
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], vtable.UnicodeStringStorage.0
call fcn.00404840
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 0x4d07f4
push eax
call fcn.00405ab0
add esp, 8
lea eax, [ebp - 0x48]
push 0x4f88b0
push eax
call fcn.00499378
int3
Function at 0x41d150
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b76b8
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push esi
mov eax, dword [0x4fb008]
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 0x41d190
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x28]
test eax, eax
je 0x41d1a5
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.0041d0a0
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0041d2b0
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 0x41d219
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.00404840
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.0041c920
push 0x4f89dc
lea eax, [ebp - 0x54]
push eax
call fcn.00499378
int3

Function at 0x41d7e0
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 0x41d867
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.0041c920
push 0x4f89dc
lea eax, [esp + 8]
push eax
call fcn.00499378
int3
Function at 0x41de50
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b78a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
mov eax, dword [0x4fb008]
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 0x41de8a
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 0x41debf
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.00403e20
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.00404740
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00403fd0
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00405ab0
add esp, 8
lea eax, [ebp - 0x30]
push 0x4f88b0
push eax
call fcn.00499378
int3
Function at 0x41df10
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b78fa
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
push edi
mov eax, dword [0x4fb008]
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 0x41df4b
mov ecx, esi
call fcn.0041de50
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 0x41e024
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x217
je 0x41dfe6
cmp edi, 0x3e5
jne 0x41e070
mov eax, dword [esi + 0x18]
test eax, eax
je 0x41df9e
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 0x41dfe6
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00403e20
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.00404740
add esp, 0xc
lea ecx, [ebp - 0x20]
jmp 0x41e094
push 0xa0
call fcn.00497c14
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.00421600
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.00403e20
push esi
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push str.ConnectNamedPipe_failed__error_code___d
push eax
call fcn.00404740
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.00403fd0
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00405ab0
add esp, 8
lea eax, [ebp - 0x34]
push 0x4f88b0
push eax
call fcn.00499378
lea ecx, [ebp - 0x30]
call fcn.00403e20
push edi
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 2
push str.ConnectNamedPipe_failed__error_code___d
push eax
call fcn.00404740
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.00403fd0
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00405ab0
add esp, 8
lea eax, [ebp - 0x5c]
push 0x4f88b0
push eax
call fcn.00499378
int3
Function at 0x41e9a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4ffe3c]
sub esp, 0xe8
push esi
test eax, eax
je 0x41e9dc
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 0x41e9dc
mov eax, dword [ebp - 4]
cmp dword [eax], 1
je 0x41e9e3
push eax
call dword [0x4ffe48]
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 [0x4ffe48]
mov eax, dword [0x4ffd28]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
pop edi
test eax, eax
jne 0x41ea2b
push 0x4ffd28
mov dword [0x4ffd28], 0x114
call esi
neg eax
sbb eax, eax
and eax, dword [0x4ffd28]
mov dword [0x4ffd28], eax
cmp dword [0x4ffd2c], 6
jne 0x41ea73
cmp dword [0x4ffd30], 1
jne 0x41ea73
test eax, eax
jne 0x41ea61
push 0x4ffd28
mov dword [0x4ffd28], 0x114
call esi
neg eax
sbb eax, eax
and eax, dword [0x4ffd28]
mov dword [0x4ffd28], eax
cmp dword [0x4ffd38], 2
jne 0x41ea73
cmp dword [ebp - 0xe0], 1
jmp 0x41ea7a
cmp dword [ebp - 0xe0], 0
jne 0x41e9dc
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41ed20
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7afe
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4fb008]
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.00497c14
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.00420200
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSGetActiveConsoleSessionId
push dword [esi + 4]
mov dword [0x4ffe50], esi
call edi
mov dword [0x4ffe54], eax
jmp 0x41edc0
push 8
mov dword [ebp - 4], 3
call fcn.00497c14
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.00420200
push str.WTSQueryUserToken
push dword [esi + 4]
mov dword [0x4ffe40], esi
call edi
mov dword [0x4ffe44], eax
mov eax, dword [0x4ffe40]
push str.WTSQuerySessionInformationW
push dword [eax + 4]
call edi
mov dword [0x4ffe3c], eax
mov eax, dword [0x4ffe40]
push str.WTSEnumerateSessionsW
push dword [eax + 4]
call edi
mov dword [0x4ffe4c], eax
mov eax, dword [0x4ffe40]
push str.WTSFreeMemory
push dword [eax + 4]
call edi
mov dword [0x4ffe48], eax
mov byte [0x4ffd1d], 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
Function at 0x41f380
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7bcb
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x4fb008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
lea esi, [ebx + 4]
mov dword [ebx], vtable.StringStorage.0
mov dword [ebp - 0x20], ebx
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00404970
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cc34c
push ecx
call fcn.0049ae40
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x41f54b
push ecx
push edi
lea ecx, [ebp - 0x2c]
call fcn.0041f5c0
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x2c]
push esi
push edi
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41f54b
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x4d177c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41f54b
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], 0x4d1780
movzx edx, word [eax + 0x16]
movzx edi, word [eax + 0x12]
movzx ecx, word [eax + 0x10]
movzx eax, word [eax + 0x14]
cmp edx, 0x64
jbe 0x41f4a4
inc ecx
mov dword [ebp + 8], 0x4d1784
add edx, 0xff9c
cmp cx, 0x64
jb 0x41f4a4
xor ecx, ecx
inc edi
test dx, dx
jne 0x41f4c6
test ax, ax
jne 0x41f4ea
movzx eax, cx
push eax
movzx eax, di
push eax
push str._d._d
push ebx
call fcn.00404740
add esp, 0x10
jmp 0x41f508
test ax, ax
jne 0x41f4ea
movzx eax, dx
push eax
push dword [ebp + 8]
movzx eax, cx
push eax
movzx eax, di
push eax
push str._d._d_s_d
push ebx
call fcn.00404740
add esp, 0x18
jmp 0x41f508
push eax
movzx eax, dx
push eax
push dword [ebp + 8]
movzx eax, cx
push eax
movzx eax, di
push eax
push str._d._d_s_d._d
push ebx
call fcn.00404740
add esp, 0x1c
test esi, esi
je 0x41f535
mov ecx, dword [ebp - 0x24]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x41f52b
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f561
push ecx
push esi
call fcn.00497c44
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 4
lea ecx, [ebp - 0x54]
call fcn.0041c920
push 0x4f89dc
lea eax, [ebp - 0x54]
push eax
call fcn.00499378
call fcn.0049e989
int3
Function at 0x41f8b0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7c40
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4fb008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [edi + 4], 0
jne 0x41f8f9
xor al, al
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
push ecx
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov bl, 1
push edi
call fcn.0041f7b0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], 0
call fcn.0041fb20
test al, al
je 0x41f97b
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x41f97b
push ecx
push esi
lea ecx, [ebp - 0x20]
call fcn.0041fdf0
push 0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x20]
call fcn.0041fb20
test esi, esi
je 0x41f971
xor edi, edi
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x3c]
push dword [edi + eax + 4]
call fcn.0041f8b0
neg al
lea edi, [edi + 0x10]
sbb al, al
and bl, al
sub esi, 1
jne 0x41f951
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
call fcn.00405160
jmp 0x41f97d
xor bl, bl
mov eax, dword [edi + 4]
test eax, eax
jne 0x41f988
xor dl, dl
jmp 0x41f997
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete dl
xor ecx, ecx
movzx eax, bl
test dl, dl
mov dword [ebp - 0x3c], vtable.RegistryKey.0
cmovne ecx, eax
mov eax, dword [ebp - 0x38]
mov dword [ebp + 8], ecx
test eax, eax
je 0x41f9c5
cmp eax, dword [ebp - 0x34]
je 0x41f9be
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], vtable.StringStorage.0
call fcn.00404840
mov al, byte [ebp + 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 0x41f9f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 4]
test edx, edx
jne 0x41fa00
xor al, al
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push edi
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41fa07
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop edi
sete al
pop ebp
ret 8