joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40383b
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x405340
call fcn.00403d60
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp dword [0x407680], ebx
jne 0x4035d6
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov edi, 0x407674
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x403610
cmp eax, esi
jne 0x403603
xor esi, esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x403613
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4035ea
xor esi, esi
inc esi
mov eax, dword [0x407670]
cmp eax, esi
jne 0x403626
push 0x1f
call fcn.004bc000
pop ecx
jmp 0x403661
mov eax, dword [0x407670]
test eax, eax
jne 0x40365b
mov dword [0x407670], esi
push 0x40118c
push 0x40117c
call sub.MSVCR100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x403661
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40377b
mov dword [0x4072e8], esi
mov eax, dword [0x407670]
cmp eax, esi
jne 0x403685
push 0x401178
push 0x40116c
call sub.MSVCR100.dll__initterm
pop ecx
pop ecx
mov dword [0x407670], 2
cmp dword [ebp - 0x24], ebx
jne 0x403692
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x407684], ebx
je 0x4036b3
push 0x407684
call fcn.00403c98
pop ecx
test eax, eax
je 0x4036b3
push ebx
push 2
push ebx
call dword [0x407684]
mov eax, dword [sym.imp.MSVCR100.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40370c
cmp al, bl
je 0x4036cc
cmp dword [ebp - 0x1c], ebx
jne 0x40370c
mov al, byte [esi]
cmp al, bl
je 0x4036dc
cmp al, 0x20
ja 0x4036dc
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4036cc
test byte [ebp - 0x40], 1
je 0x4036e8
movzx eax, word [ebp - 0x3c]
jmp 0x4036eb
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x4072e4], eax
cmp dword [0x4072d8], ebx
jne 0x403761
push eax
call dword [sym.imp.MSVCR100.dll_exit]
cmp al, 0x22
jne 0x40371b
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR100.dll__ismbblead]
pop ecx
test eax, eax
je 0x40372e
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x4036ba
cmp dword [0x4072e8], ebx
jne 0x40376f
call dword [sym.imp.MSVCR100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x4072e4]
call fcn.00403da5
ret
call fcn.00403492
jmp 0x4035a8
Function at 0x401fa0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c62f6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4ea5e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, 0x200000
xor eax, eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], ecx
mov ecx, dword [0x4ecaf8]
mov edx, 0xa00000
mov byte [edi], al
mov dword [edi + 4], edx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ecx
mov dword [edi + 0x28], 0x1300000f
mov dword [edi + 0x2c], eax
mov dword [edi + 0x44], 0xf
mov dword [edi + 0x40], eax
mov byte [edi + 0x30], al
mov dword [ebp - 4], eax
lea esi, [edi + 0x54]
mov word [edi + 0x4c], ax
mov dword [edi + 0x50], eax
call fcn.00401540
lea esi, [edi + 0x64]
mov byte [ebp - 4], 1
call fcn.00401540
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x403970
Capabilities:
Create thread
Power down monitor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [edi + 0xdc00]
mov eax, dword [ecx]
mov edx, dword [eax + 0x214]
call edx
test eax, eax
je 0x403b4c
cmp byte [ebp + 8], 0
push esi
je 0x403a58
cmp byte [0x544941], 0
je 0x4039a9
mov esi, 0x544938
call fcn.0044fe90
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x544942], 0
je 0x403a33
cmp byte [0x54493f], 0
jne 0x4039e1
cmp byte [0x54493d], 0
jne 0x4039d8
cmp byte [0x54493e], 0
je 0x403a33
cmp byte [0x544941], 0
jne 0x403a33
mov eax, dword [edi + 0xe0f4]
test eax, eax
je 0x403a05
cmp dword [eax + 8], 0
jne 0x403a33
mov dword [edi + 0xe124], 1
mov dword [edi + 0xe128], 1
lea eax, [ebp + 8]
push eax
push 0
push 0
push 0x403810
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x403a27
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [edi + 0xe119], 1
pop esi
pop ebp
ret 4
mov ecx, dword [edi + 0xdc08]
push 2
push 0xf170
push 0x112
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [edi + 0xe118], 1
pop esi
pop ebp
ret 4
cmp byte [0x544942], 0
je 0x403add
cmp byte [0x54493f], 0
jne 0x403a85
cmp byte [0x54493d], 0
jne 0x403a7c
cmp byte [0x54493e], 0
je 0x403add
cmp byte [0x544941], 0
jne 0x403add
mov eax, dword [edi + 0xe0f4]
test eax, eax
je 0x403aa9
cmp dword [eax + 8], 0
jne 0x403add
mov dword [edi + 0xe124], 1
mov dword [edi + 0xe128], 1
push 0
push str.blackscreen
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x403ac7
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov esi, 0x544938
mov byte [edi + 0xe119], 0
call fcn.0044ff00
pop esi
pop ebp
ret 4
mov edx, dword [edi + 0xdc08]
push 0xffffffffffffffff
push 0xf170
push 0x112
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [sym.imp.USER32.dll_mouse_event]
push 0
push 0
push 1
push 0
push 1
call esi
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0xffffffffffffffff
push 0
push 1
call esi
push 0
push str.blackscreen
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x403b3a
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov esi, 0x544938
mov byte [edi + 0xe118], 0
call fcn.0044ff00
pop esi
pop ebp
ret 4
Function at 0x4046e0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push ebx
push esi
mov esi, dword [edx + 4]
mov edx, eax
shr edx, 4
xor edx, esi
and edx, 0xf0f0f0f
xor esi, edx
shl edx, 4
xor eax, edx
mov edx, eax
shr edx, 0x10
xor edx, esi
and edx, 0xffff
xor esi, edx
shl edx, 0x10
xor eax, edx
mov edx, esi
shr edx, 2
xor edx, eax
and edx, 0x33333333
xor eax, edx
add edx, edx
add edx, edx
xor esi, edx
mov edx, esi
shr edx, 8
xor edx, eax
and edx, 0xff00ff
xor eax, edx
shl edx, 8
xor esi, edx
rol esi, 1
mov edx, esi
xor edx, eax
and edx, 0xaaaaaaaa
xor esi, edx
xor edx, eax
rol edx, 1
push edi
mov ecx, 0x544660
mov dword [ebp - 4], edx
mov dword [ebp - 8], 8
mov eax, esi
ror eax, 4
xor eax, dword [ecx]
add ecx, 0x10
mov edx, eax
shr edx, 0x18
mov edi, eax
shr edi, 0x10
and edi, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x4ec2d8]
or edx, dword [edi*4 + 0x4ec4d8]
mov edi, eax
shr edi, 8
and edi, 0x3f
or edx, dword [edi*4 + 0x4ec6d8]
and eax, 0x3f
or edx, dword [eax*4 + 0x4ec8d8]
mov eax, dword [ecx - 0xc]
xor eax, esi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x4ec3d8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
or edi, dword [ebx*4 + 0x4ec5d8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x4ec7d8]
and eax, 0x3f
or edi, dword [eax*4 + 0x4ec9d8]
or edi, edx
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 4]
xor edi, dword [ebp - 0xc]
mov eax, edi
ror eax, 4
xor eax, dword [ecx - 8]
mov dword [ebp - 4], edi
mov edx, eax
shr edx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x4ec2d8]
or edx, dword [ebx*4 + 0x4ec4d8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edx, dword [ebx*4 + 0x4ec6d8]
and eax, 0x3f
or edx, dword [eax*4 + 0x4ec8d8]
mov eax, dword [ecx - 4]
xor eax, edi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x4ec3d8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
or edi, dword [ebx*4 + 0x4ec5d8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x4ec7d8]
and eax, 0x3f
or edi, dword [eax*4 + 0x4ec9d8]
or edi, edx
xor esi, edi
dec dword [ebp - 8]
jne 0x404763
mov ecx, dword [ebp - 4]
ror esi, 1
mov eax, esi
xor eax, ecx
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, ecx
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
add ecx, ecx
add ecx, ecx
xor eax, ecx
mov edx, dword [ebp + 8]
mov ecx, esi
shr ecx, 0x10
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
xor ecx, eax
pop esi
mov dword [edx + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405430
Capabilities:
Delete file

Disassembly:
mov eax, dword [esi + 0x2fc]
test eax, eax
je 0x405446
push eax
mov eax, dword [esi + 0x2e8]
call eax
add esp, 4
mov eax, dword [esi + 0x300]
test eax, eax
je 0x40545c
mov ecx, dword [esi + 0x2e8]
push eax
call ecx
add esp, 4
mov edx, dword [esi + 0x2d0]
mov dword [esi + 0x2fc], 0
mov dword [esi + 0x300], 0
mov byte [esi + 0x20], 0
call edx
test eax, eax
je 0x4054a9
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 0x4054a5
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, bl
pop ebx
ret
xor al, al
ret
Function at 0x405d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [esi + 0x9c], 0
je 0x405e07
cmp word [esi + 0x128], 1
jne 0x405e07
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 0x405dfa
lea ecx, [ebp - 0x40c]
push ecx
lea edx, [ebp - 0x404]
push edx
push eax
push eax
mov eax, dword [ebp - 0x408]
push str.SubVersionNumber
push eax
mov dword [ebp - 0x40c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405dfa
lea ecx, [ebp - 0x404]
push 0x4d4e58
push ecx
call fcn.004a99df
add esp, 8
test eax, eax
jne 0x405dfa
mov edx, 1
mov eax, edx
mov word [esi + 0x12a], dx
mov word [esi + 0x96], ax
mov ecx, dword [ebp - 0x408]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret

Function at 0x405e20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
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 0x405f18
lea ecx, [ebp - 0x40c]
push ecx
lea edx, [ebp - 0x404]
push edx
push eax
push eax
mov eax, dword [ebp - 0x408]
push str.CurrentType
push eax
mov dword [ebp - 0x40c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405f18
lea ecx, [ebp - 0x404]
push str.Uniprocessor_Free
push ecx
call fcn.004a99df
add esp, 8
test eax, eax
jne 0x405eae
or dword [esi + 0x12c], 0x400
jmp 0x405f18
lea edx, [ebp - 0x404]
push str.Uniprocessor_Checked
push edx
call fcn.004a99df
add esp, 8
test eax, eax
jne 0x405ed2
or dword [esi + 0x12c], 0x800
jmp 0x405f18
lea eax, [ebp - 0x404]
push str.Multiprocessor_Free
push eax
call fcn.004a99df
add esp, 8
test eax, eax
jne 0x405ef6
or dword [esi + 0x12c], 0x1000
jmp 0x405f18
lea ecx, [ebp - 0x404]
push str.Multiprocessor_Checked
push ecx
call fcn.004a99df
add esp, 8
test eax, eax
jne 0x405f18
or dword [esi + 0x12c], 0x2000
mov edx, dword [ebp - 0x408]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
Function at 0x405f40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
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 0x406092
lea ecx, [ebp - 0x40c]
push ecx
lea edx, [ebp - 0x404]
push edx
push eax
push eax
mov eax, dword [ebp - 0x408]
push str.ProductType
push eax
mov dword [ebp - 0x40c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406085
push str.LANMANNT
cmp dword [ebp + 8], eax
je 0x405ff2
lea ecx, [ebp - 0x404]
push ecx
call fcn.004a99df
add esp, 8
test eax, eax
je 0x40600f
lea edx, [ebp - 0x404]
push str.LANSECNT
push edx
call fcn.004a99df
add esp, 8
test eax, eax
jne 0x406085
or dword [esi + 0x12c], 8
jmp 0x406085
lea eax, [ebp - 0x404]
push eax
call fcn.004a99df
add esp, 8
test eax, eax
jne 0x406018
mov dword [esi + 0x130], 2
or dword [esi + 0x12c], 4
jmp 0x406085
lea ecx, [ebp - 0x404]
push str.SERVERNT
push ecx
call fcn.004a99df
add esp, 8
test eax, eax
jne 0x40603c
mov dword [esi + 0x130], 1
jmp 0x406085
lea edx, [ebp - 0x404]
push str.LANSECNT
push edx
call fcn.004a99df
add esp, 8
test eax, eax
jne 0x406067
or dword [esi + 0x12c], 8
mov dword [esi + 0x130], 2
jmp 0x406085
lea eax, [ebp - 0x404]
push str.WinNT
push eax
call fcn.004a99df
add esp, 8
test eax, eax
jne 0x406085
mov dword [esi + 0x130], eax
mov ecx, dword [ebp - 0x408]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret 4

Function at 0x406220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x88]
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4062e4
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, dword [ebp - 0x88]
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x90]
push eax
push esi
push str.CSDVersion
push ecx
mov dword [ebp - 0x8c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4062d7
mov eax, dword [ebp - 0x90]
cmp eax, 1
jne 0x4062c6
lea eax, [ebp - 0x84]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4062a5
sub eax, edx
je 0x4062c2
push edi
lea edi, [ebp - 0x84]
call fcn.004061e0
movzx esi, ax
pop edi
jmp 0x4062d7
xor esi, esi
jmp 0x4062d7
cmp eax, 4
jne 0x4062d7
mov edx, dword [ebp - 0x84]
shr edx, 8
movzx esi, dl
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
Function at 0x406300
Capabilities:
Query or enumerate registry value

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

Function at 0x406380
Capabilities:
Query or enumerate registry value

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SystemCurrentControlSetControlProductOptions
push reloc.WS2_32.dll_bind
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40656f
mov eax, dword [ebp - 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 8]
push ecx
push ebx
lea edx, [ebp - 0xc]
push edx
push ebx
push str.ProductSuite
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x406564
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x406564
push eax
call fcn.004a90a2
add esp, 4
lea ecx, [ebp - 8]
push ecx
mov ebx, eax
mov eax, dword [ebp - 4]
push ebx
lea edx, [ebp - 0xc]
push edx
push 0
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x40654b
cmp dword [ebp - 0xc], 7
jne 0x40654b
mov esi, ebx
cmp byte [ebx], al
je 0x406532
push str.Terminal_Server
push esi
call fcn.004a99df
add esp, 8
test eax, eax
jne 0x4064bb
or dword [edi + 0x12c], 0x10
jmp 0x40651c
push 0x4d4fe8
push esi
call fcn.004a99df
add esp, 8
test eax, eax
je 0x406515
push str.Small_Business
push esi
call fcn.004a99df
add esp, 8
test eax, eax
je 0x406515
push str.Enterprise
push esi
call fcn.004a99df
add esp, 8
test eax, eax
jne 0x4064fa
or dword [edi + 0x12c], 2
jmp 0x40651c
push str.Personal
push esi
call fcn.004a99df
add esp, 8
test eax, eax
jne 0x40651c
or dword [edi + 0x12c], 0x40
jmp 0x40651c
or dword [edi + 0x12c], 1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x4064a0
push ebx
call fcn.004a9046
mov ecx, dword [ebp - 4]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004a9046
mov edx, dword [ebp - 4]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407820
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + str._settings]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x407850
push edi
lea edi, [ebp - 0x108]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407870
mov cx, word [0x4d552c]
push esi
lea edx, [ebp - 0x108]
push 0x104
push edx
mov word [edi], cx
call fcn.004a9ec6
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 edx, [ebp - 0x248]
lea eax, [ebp - 0x20c]
lea ecx, [ebp - 0x108]
push edx
mov dword [ebp - 0x23c], str.runas
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], ecx
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]
xor ecx, ebp
pop edi
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
Function at 0x408c70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4ea5e0]
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]
lea edx, [ebp - 0x144]
lea ecx, [ebp - 0x108]
push edx
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], str.runas
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], str._stopservice
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.004a8a2f
mov esp, ebp
pop ebp
ret

Function at 0x408d10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4ea5e0]
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.004a9bad
add esp, 0x10
push 0
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret

Function at 0x408d60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4ea5e0]
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]
lea edx, [ebp - 0x144]
lea ecx, [ebp - 0x108]
push edx
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], str.runas
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], str._startservice
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.004a8a2f
mov esp, ebp
pop ebp
ret

Function at 0x408e00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4ea5e0]
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.004a9bad
add esp, 0x10
push 0
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret