joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4115b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x4115d5
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x4115ed
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x41161c
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x41165e
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x411732
sub edx, 0x10000
js 0x411732
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x411644
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x411644
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x4116b5
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x4116b2
add edx, 8
jne 0x411699
jmp 0x411723
add edx, 4
test eax, 0xffff
jne 0x4116c2
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x411723
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x4116f6
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x411644
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x411732
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x411644
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x411743
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x413a80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cdb46
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4f5568]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [0x4df9d4]
mov byte [esi], 0
mov dword [esi + 4], 0xa00000
mov dword [esi + 8], 0x200000
mov dword [esi + 0xc], 0x200000
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xa00000
mov dword [esi + 0x18], 0x200000
mov dword [esi + 0x1c], 0x200000
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 0x1300000f
mov dword [esi + 0x2c], 0
mov dword [esi + 0x44], 0xf
mov dword [esi + 0x40], 0
mov byte [esi + 0x30], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x50]
mov word [esi + 0x48], 0
mov dword [esi + 0x4c], 0
call fcn.00412ef0
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 1
call fcn.00412ef0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4156b0
Capabilities:
Create thread
Power down monitor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov ecx, dword [edi + 0xdbf4]
mov eax, dword [ecx]
call dword [eax + 0x214]
test eax, eax
je 0x415858
cmp byte [ebp + 8], 0
je 0x41577e
cmp byte [0x503c99], 0
je 0x4156e9
mov ecx, 0x503c90
call fcn.00461c50
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x503c9a], 0
je 0x41575a
cmp byte [0x503c97], 0
jne 0x415721
cmp byte [0x503c95], 0
jne 0x415718
cmp byte [0x503c96], 0
je 0x41575a
cmp byte [0x503c99], 0
jne 0x41575a
mov ecx, edi
call fcn.0043e7e0
test eax, eax
jne 0x41575a
lea eax, [ebp + 8]
push eax
push 0
push 0
push 0x415550
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41574e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [edi + 0xe10d], 1
pop edi
pop ebp
ret 4
push 2
push 0xf170
push 0x112
push dword [edi + 0xdbfc]
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [edi + 0xe10c], 1
pop edi
pop ebp
ret 4
cmp byte [0x503c9a], 0
je 0x4157e9
cmp byte [0x503c97], 0
jne 0x4157ab
cmp byte [0x503c95], 0
jne 0x4157a2
cmp byte [0x503c96], 0
je 0x4157e9
cmp byte [0x503c99], 0
jne 0x4157e9
mov ecx, edi
call fcn.0043e7e0
test eax, eax
jne 0x4157e9
push eax
push str.blackscreen
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4157d3
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, 0x503c90
mov byte [edi + 0xe10d], 0
call fcn.00461cc0
pop edi
pop ebp
ret 4
push 0xffffffffffffffff
push 0xf170
push 0x112
push dword [edi + 0xdbfc]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 1
push 0
push 1
call dword [sym.imp.USER32.dll_mouse_event]
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0xffffffffffffffff
push 0
push 1
call dword [sym.imp.USER32.dll_mouse_event]
push 0
push str.blackscreen
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x415847
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, 0x503c90
mov byte [edi + 0xe10c], 0
call fcn.00461cc0
pop edi
pop ebp
ret 4
Function at 0x415e60
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0xf8], edx
xor edi, edi
mov edx, ecx
movzx esi, byte [edi + 0x4da240]
movzx ecx, byte [edi + 0x4da241]
mov eax, esi
sar eax, 3
and esi, 7
movzx eax, byte [eax + edx]
test byte [esi*2 + 0x4da760], al
setne al
mov byte [ebp + edi - 0x3c], al
mov eax, ecx
sar eax, 3
and ecx, 7
movzx eax, byte [eax + edx]
test byte [ecx*2 + 0x4da760], al
movzx ecx, byte [edi + 0x4da242]
setne al
mov byte [ebp + edi - 0x3b], al
mov eax, ecx
sar eax, 3
and ecx, 7
movzx eax, byte [eax + edx]
test byte [ecx*2 + 0x4da760], al
movzx ecx, byte [edi + 0x4da243]
setne al
mov byte [ebp + edi - 0x3a], al
mov eax, ecx
sar eax, 3
and ecx, 7
movzx eax, byte [eax + edx]
test byte [ecx*2 + 0x4da760], al
setne al
mov byte [ebp + edi - 0x39], al
add edi, 4
cmp edi, 0x38
jl 0x415e80
xor ebx, ebx
mov edi, 0x1e
jmp 0x415f20
cmp dword [ebp - 0xf8], 1
mov esi, edi
je 0x415f2e
lea esi, [ebx + ebx]
movzx eax, byte [ebx + 0x4da720]
xor edx, edx
mov dword [ebp + esi*4 - 0xf0], 0
mov ecx, eax
mov dword [ebp + esi*4 - 0xf4], 0
mov dword [ebp - 0xfc], eax
cmp ecx, 0x1c
jge 0x415f60
mov al, byte [ebp + ecx - 0x3c]
jmp 0x415f64
mov al, byte [ebp + ecx - 0x58]
mov byte [ebp + edx - 0x74], al
inc ecx
inc edx
cmp edx, 0x1c
jl 0x415f55
mov ecx, dword [ebp - 0xfc]
mov edx, 0x1c
add ecx, edx
lea esp, [esp]
cmp ecx, 0x38
jge 0x415f8b
mov al, byte [ebp + ecx - 0x3c]
jmp 0x415f8f
mov al, byte [ebp + ecx - 0x58]
mov byte [ebp + edx - 0x74], al
inc ecx
inc edx
cmp edx, 0x38
jl 0x415f80
xor eax, eax
lea esp, [esp]
movzx ecx, byte [eax + 0x4da730]
cmp byte [ebp + ecx - 0x74], 0
je 0x415fbc
mov ecx, dword [eax*4 + 0x4da5c0]
or dword [ebp + esi*4 - 0xf4], ecx
movzx ecx, byte [eax + 0x4da748]
cmp byte [ebp + ecx - 0x74], 0
je 0x415fd8
mov ecx, dword [eax*4 + 0x4da5c0]
or dword [ebp + esi*4 - 0xf0], ecx
inc eax
cmp eax, 0x18
jl 0x415fa0
sub edi, 2
inc ebx
cmp edi, 0xfffffffe
jg 0x415f20
lea ecx, [ebp - 0xf4]
call fcn.00416010
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aca59
mov esp, ebp
pop ebp
ret
Function at 0x417330
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x258], eax
xor esi, esi
push 0x104
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x417455
lea eax, [ebp - 0x114]
push 0x5c
push eax
call fcn.004ad400
add esp, 8
test eax, eax
je 0x417455
lea ecx, [ebp - 0x114]
mov byte [eax], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417391
sub ecx, edx
cmp byte [ebp + ecx - 0x115], 0x5c
je 0x4173c3
lea edi, [ebp - 0x114]
dec edi
jmp 0x4173b0
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4173b0
mov ax, word [0x4dfc28]
mov word [edi], ax
lea ecx, [ebp - 0x114]
dec ecx
lea ebx, [ebx]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4173d0
mov eax, dword [str..dsm]
mov dword [ecx], eax
mov ax, word [0x4dfc30]
mov word [ecx + 4], ax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x417455
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea esp, [esp]
lea eax, [ebp - 0x228]
push eax
push 0
push 0x143
push dword [ebp - 0x258]
call ebx
lea eax, [ebp - 0x254]
inc esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x417410
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aca59
mov esp, ebp
pop ebp
ret 4
Function at 0x417730
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x2fc]
test eax, eax
je 0x417749
push eax
mov eax, dword [esi + 0x2e8]
call eax
add esp, 4
mov eax, dword [esi + 0x300]
test eax, eax
je 0x41775f
push eax
mov eax, dword [esi + 0x2e8]
call eax
add esp, 4
mov eax, dword [esi + 0x2d0]
mov dword [esi + 0x2fc], 0
mov dword [esi + 0x300], 0
mov byte [esi + 0x20], 0
call eax
test eax, eax
je 0x4177ac
push ebx
push dword [esi + 0x1c4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
setne bl
add esi, 0x1c8
cmp byte [esi], 0
je 0x4177a7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, bl
pop ebx
pop esi
ret
xor al, al
pop esi
ret
Function at 0x4180c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x9c], 0
je 0x418178
cmp word [esi + 0x128], 1
jne 0x418178
lea eax, [ebp - 0x408]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41816c
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x40c], 0x400
push eax
lea eax, [ebp - 0x404]
push eax
push 0
push 0
push str.SubVersionNumber
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41816c
lea eax, [ebp - 0x404]
push 0x4dfdc4
push eax
call fcn.004adc43
add esp, 8
test eax, eax
jne 0x41816c
mov eax, 1
mov word [esi + 0x12a], ax
mov word [esi + 0x96], ax
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004aca59
mov esp, ebp
pop ebp
ret

Function at 0x418190
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x408]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41828d
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x40c], 0x400
push eax
lea eax, [ebp - 0x404]
push eax
push 0
push 0
push str.CurrentType
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41828d
lea eax, [ebp - 0x404]
push str.Uniprocessor_Free
push eax
call fcn.004adc43
add esp, 8
test eax, eax
jne 0x418223
or dword [esi + 0x12c], 0x400
jmp 0x41828d
lea eax, [ebp - 0x404]
push str.Uniprocessor_Checked
push eax
call fcn.004adc43
add esp, 8
test eax, eax
jne 0x418247
or dword [esi + 0x12c], 0x800
jmp 0x41828d
lea eax, [ebp - 0x404]
push str.Multiprocessor_Free
push eax
call fcn.004adc43
add esp, 8
test eax, eax
jne 0x41826b
or dword [esi + 0x12c], 0x1000
jmp 0x41828d
lea eax, [ebp - 0x404]
push str.Multiprocessor_Checked
push eax
call fcn.004adc43
add esp, 8
test eax, eax
jne 0x41828d
or dword [esi + 0x12c], 0x2000
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004aca59
mov esp, ebp
pop ebp
ret 4
Function at 0x4182b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x408]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlProductOptions
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4183f8
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x40c], 0x400
push eax
lea eax, [ebp - 0x404]
push eax
push 0
push 0
push str.ProductType
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4183ec
lea eax, [ebp - 0x404]
push str.LANMANNT
push eax
call fcn.004adc43
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x418368
test eax, eax
je 0x418376
lea eax, [ebp - 0x404]
push str.LANSECNT
push eax
call fcn.004adc43
add esp, 8
test eax, eax
jne 0x4183ec
or dword [esi + 0x12c], 8
jmp 0x4183ec
test eax, eax
jne 0x41837f
mov dword [esi + 0x130], 2
or dword [esi + 0x12c], 4
jmp 0x4183ec
lea eax, [ebp - 0x404]
push str.SERVERNT
push eax
call fcn.004adc43
add esp, 8
test eax, eax
jne 0x4183a3
mov dword [esi + 0x130], 1
jmp 0x4183ec
lea eax, [ebp - 0x404]
push str.LANSECNT
push eax
call fcn.004adc43
add esp, 8
test eax, eax
jne 0x4183ce
or dword [esi + 0x12c], 8
mov dword [esi + 0x130], 2
jmp 0x4183ec
lea eax, [ebp - 0x404]
push str.WinNT
push eax
call fcn.004adc43
add esp, 8
test eax, eax
jne 0x4183ec
mov dword [esi + 0x130], eax
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004aca59
mov esp, ebp
pop ebp
ret 8

Function at 0x418590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x88]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418650
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x90]
push eax
push esi
push str.CSDVersion
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x418644
mov eax, dword [ebp - 0x90]
cmp eax, 1
jne 0x418633
lea ecx, [ebp - 0x84]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418614
sub ecx, edx
je 0x41862f
lea ecx, [ebp - 0x84]
call fcn.00418550
movzx esi, ax
jmp 0x418644
xor esi, esi
jmp 0x418644
cmp eax, 4
jne 0x418644
mov eax, dword [ebp - 0x84]
shr eax, 8
movzx esi, al
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.004aca59
mov esp, ebp
pop ebp
ret
Function at 0x418670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlTerminal_Server
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4186e5
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 1
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.TSAppCompat
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4186dc
cmp dword [ebp - 8], eax
jne 0x4186dc
mov eax, dword [ebp + 8]
or dword [eax + 0x12c], 0x200
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4

Function at 0x4186f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SystemWPAMediaCenter
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418761
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.Installed
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x418758
cmp dword [ebp - 8], eax
je 0x418758
mov eax, dword [ebp + 8]
or dword [eax + 0x12c], 0x4000
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4
Function at 0x418770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlProductOptions
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4188c4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push str.ProductSuite
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4188ca
mov eax, dword [ebp - 8]
test eax, eax
je 0x4188ca
push ebx
push eax
call fcn.004ad3ab
add esp, 4
mov ebx, eax
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0
push str.ProductSuite
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4188b0
cmp dword [ebp - 0xc], 7
jne 0x4188b0
mov esi, ebx
cmp byte [ebx], al
je 0x4188b0
push edi
mov edi, dword [ebp + 8]
jmp 0x418820
push str.Terminal_Server
push esi
call fcn.004adc43
add esp, 8
test eax, eax
jne 0x41883b
or dword [edi + 0x12c], 0x10
jmp 0x41889c
push 0x4dff54
push esi
call fcn.004adc43
add esp, 8
test eax, eax
je 0x418895
push str.Small_Business
push esi
call fcn.004adc43
add esp, 8
test eax, eax
je 0x418895
push str.Enterprise
push esi
call fcn.004adc43
add esp, 8
test eax, eax
jne 0x41887a
or dword [edi + 0x12c], 2
jmp 0x41889c
push str.Personal
push esi
call fcn.004adc43
add esp, 8
test eax, eax
jne 0x41889c
or dword [edi + 0x12c], 0x40
jmp 0x41889c
or dword [edi + 0x12c], 1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc esi
add esi, eax
cmp byte [esi], 0
jne 0x418820
pop edi
push ebx
call fcn.004ad35b
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x419a60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
lea ecx, [ecx]
mov cl, byte [eax + 0x4da034]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x109], cl
test cl, cl
jne 0x419a90
lea edi, [ebp - 0x108]
dec edi
jmp 0x419ab0
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x419ab0
mov ax, word [0x4e0498]
push esi
mov word [edi], ax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004ae2d4
add esp, 0xc
mov dword [ebp - 0x248], 0x3c
mov dword [ebp - 0x244], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x23c], str.runas
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x228], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004aca59
mov esp, ebp
pop ebp
ret
Function at 0x41ae80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x144], 0x3c
mov dword [ebp - 0x140], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x144]
push eax
mov dword [ebp - 0x138], str.runas
mov dword [ebp - 0x130], 0x4da9c4
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 1
mov dword [ebp - 0x124], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret

Function at 0x41af20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push str.uvnc_service
push str.net_stop___s_
lea eax, [ebp - 0x128]
push 0x124
push eax
call fcn.004adf8d
add esp, 0x10
lea eax, [ebp - 0x128]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret

Function at 0x41af80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x144], 0x3c
mov dword [ebp - 0x140], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x144]
push eax
mov dword [ebp - 0x138], str.runas
mov dword [ebp - 0x130], 0x4da9f0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 1
mov dword [ebp - 0x124], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret

Function at 0x41b020
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push str.uvnc_service
push str.net_start___s_
lea eax, [ebp - 0x128]
push 0x124
push eax
call fcn.004adf8d
add esp, 0x10
lea eax, [ebp - 0x128]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret