joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 8
mov esi, eax
lea eax, [edi + 4]
jb 0x42c839
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42c9a0
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, 1
jne 0x42c876
mov esi, 0x45e664
jmp 0x42c885
cmp esi, 2
mov esi, 0x45e66c
je 0x42c885
mov esi, 0x4564a4
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c890
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 4]
push ecx
lea edx, [eax + eax]
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c8b6
sub eax, edx
mov edx, dword [edi + 0x20]
sar eax, 1
add edx, edx
mov dword [ebp - 8], eax
mov eax, 0x46b7e0
test edx, edx
jle 0x42c8ff
mov eax, 0x20
movzx esi, ax
mov eax, esi
shl esi, 0x10
or eax, esi
mov ecx, edx
shr ecx, 1
mov edi, 0x46b7e0
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp + 8]
lea eax, [edx*2 + 0x46b7e0]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [edi + 0x20]
add eax, eax
sub eax, dword [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
add eax, eax
push eax
push 0x46b7e0
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
push ecx
push edx
call fcn.0043bdc7
lea esi, [eax + 3]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00437647
mov ecx, dword [ebp + 0xc]
mov edi, eax
lea eax, [ebp + 0x10]
push eax
push ecx
push esi
push edi
call fcn.0043bf52
push 0x45e678
push esi
push edi
call fcn.00439516
mov eax, edi
add esp, 0x28
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c970
sub eax, edx
push 0
sar eax, 1
lea edx, [ebp - 4]
push edx
add eax, eax
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.00439ca1
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42cad0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, edx
push esi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42cae0
mov ecx, dword [ebp + 0xc]
sub eax, esi
sar eax, 1
add eax, eax
push eax
push edx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
pop esi
pop ebp
ret 8
Function at 0x42cb20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, edx
push esi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42cb30
mov ecx, dword [ebp + 0xc]
sub eax, esi
sar eax, 1
add eax, eax
push eax
push edx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push 2
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
pop esi
pop ebp
ret 8

Function at 0x42cb70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [edi]
mov edx, dword [edi + 4]
push ebx
xor eax, eax
push esi
cmp ecx, edx
je 0x42cb8f
mov esi, dword [ecx + 0x10]
add ecx, 0x1c
lea eax, [eax + esi + 1]
cmp ecx, edx
jne 0x42cb81
inc eax
xor ecx, ecx
mov dword [ebp - 4], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00437647
mov esi, eax
push esi
lea eax, [ebp - 4]
mov ebx, edi
call fcn.00436530
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
add esp, 8
lea ecx, [eax + eax]
mov eax, dword [edx]
push ecx
push esi
push 7
push 0
push str.DPPE
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42cbf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42cc00
sub eax, edx
sar eax, 1
inc eax
push eax
call fcn.00437647
mov ebx, eax
movzx eax, word [esi]
add esp, 4
test ax, ax
je 0x42cc8f
cmp ax, 0x61
jb 0x42cc35
cmp ax, 0x66
ja 0x42cc35
mov al, byte [esi]
sub al, 0x57
jmp 0x42cc4b
cmp ax, 0x41
jb 0x42cc47
cmp ax, 0x46
ja 0x42cc47
mov al, byte [esi]
sub al, 0x37
jmp 0x42cc4b
mov al, byte [esi]
sub al, 0x30
movzx ecx, word [esi + 2]
shl al, 4
cmp ecx, 0x61
jb 0x42cc64
cmp ecx, 0x66
ja 0x42cc64
mov cl, byte [esi + 2]
sub cl, 0x57
jmp 0x42cc7e
cmp ecx, 0x41
jb 0x42cc78
cmp ecx, 0x46
ja 0x42cc78
mov dl, byte [esi + 2]
sub dl, 0x37
or al, dl
jmp 0x42cc80
mov cl, byte [esi + 2]
sub cl, 0x30
or al, cl
add esi, 4
mov byte [ebx + edi], al
movzx eax, word [esi]
inc edi
test ax, ax
jne 0x42cc23
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push edi
push ebx
push 3
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
mov esi, eax
call fcn.00439ca1
add esp, 4
xor eax, eax
pop edi
test esi, esi
pop esi
sete al
pop ebx
pop ebp
ret 8
Function at 0x42ccf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
mov ebx, ecx
mov ecx, dword [ebx]
push esi
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x42cd23
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.00437647
mov ecx, dword [ebx]
add esp, 4
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42cd60
mov esi, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.004065a0
push edi
call fcn.00439ca1
add esp, 4
pop edi
xor eax, eax
test ebx, ebx
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42cda0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebx]
push edi
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push edi
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x42cdcf
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
push esi
neg ecx
or ecx, eax
push ecx
call fcn.00437647
mov ecx, dword [ebx]
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp + 8]
push edx
mov ecx, esi
mov edi, eax
call fcn.00436450
push esi
call fcn.00439ca1
add esp, 8
xor eax, eax
test edi, edi
pop esi
sete al
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x42cee0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0
push esi
mov dword [ebp - 0x214], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x42cfdb
lea edx, [ebp - 0x210]
push edx
mov eax, edi
or eax, 0xf003f
push eax
push 0
lea ecx, [ebp - 0x20c]
push ecx
push esi
call ebx
test eax, eax
jne 0x42cfdb
mov eax, dword [ebp - 0x210]
push edi
lea edx, [ebp - 0x20c]
push edx
push eax
call fcn.0042cee0
mov ecx, dword [ebp - 0x210]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 0x100
jne 0x42cfc5
mov eax, dword [0x46af88]
test eax, eax
jne 0x42cfab
push str.RegDeleteKeyExW
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x46af88], eax
test eax, eax
je 0x42cfbe
push 0
push pe_nt_image_headers32
lea edx, [ebp - 0x20c]
push edx
push esi
call eax
jmp 0x42cfd3
mov eax, 0x32
jmp 0x42cfd3
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x42cf02
pop edi
pop esi
pop ebx
cmp eax, 0x103
jne 0x42cfe7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004377c1
mov esp, ebp
pop ebp
ret

Function at 0x42d660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x46aee0]
push edi
push str.LRCDATA
push str.LICENSE
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x42d68a
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x46aee0]
push ebx
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [0x46aee0]
push edi
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ebx, [esi + 2]
push ebx
mov dword [ebp - 4], eax
call fcn.00437647
push ebx
mov edi, eax
push 0
push edi
call fcn.00443550
mov eax, dword [ebp - 4]
push esi
push eax
push edi
call fcn.0043d470
mov eax, edi
add esp, 0x1c
lea edx, [eax + 2]
jmp 0x42d6e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42d6e0
mov esi, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.004065a0
push edi
call fcn.00439ca1
add esp, 4
pop esi
pop ebx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x42fbc0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov edi, dword [ebp + 0x10]
push ecx
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x124], edi
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x124]
push ecx
push ebx
mov dword [ebp - 0x130], edi
mov edi, eax
push ebx
and edi, 0x10000000
push edx
mov edx, dword [ebp + 8]
cmp ebx, edi
sbb edi, edi
push 0xffffffffffffffff
and eax, 0xefffffff
push eax
mov eax, dword [esi + 4]
push edx
neg edi
push eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x12c], edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x42fce3
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x130]
mov ebx, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
lea edx, [ebp - 0x124]
push edx
push 1
push eax
mov dword [ebp - 0x124], ecx
call ebx
test eax, eax
jne 0x42fc6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x42fcfd
jmp 0x42fc72
mov edi, dword [ebp - 0x128]
push 0x11c
lea ecx, [ebp - 0x120]
push 0
push ecx
call fcn.00443550
add esp, 0xc
lea edx, [ebp - 0x120]
push edx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx eax, byte [ebp - 0x11c]
movzx ecx, byte [ebp - 0x118]
movzx edx, byte [ebp - 6]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0xc]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
cmp eax, 0x6000100
jb 0x42fcfb
cmp eax, 0xffffffff
ja 0x42fcfb
mov eax, dword [esi + 4]
lea edx, [ebp - 0x12c]
push edx
push 3
push eax
call ebx
test eax, eax
jne 0x42fcfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004377c1
mov esp, ebp
pop ebp
ret 0x10
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004377c1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42fd30
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x20]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42fe2f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebx
cmp dword [ebp - 0x1c], 4
mov edi, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
je 0x42fdfb
mov eax, 0xcccccccd
mul dword [ebp - 8]
shr edx, 3
cmp edx, 0x3e8
jae 0x42fd9a
mov edx, 0x3e8
jmp 0x42fda7
cmp edx, 0x2710
jbe 0x42fda7
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x20]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42fdf5
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0xc], eax
jbe 0x42fdd4
call ebx
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 0x24], ecx
jmp 0x42fddd
call ebx
sub eax, edi
cmp eax, dword [ebp - 8]
ja 0x42fdf5
cmp dword [ebp - 0x1c], 4
jne 0x42fd80
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004377c1
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 4
jne 0x42fe0d
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004377c1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
pop edi
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004377c1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004377c1
mov esp, ebp
pop ebp
ret
Function at 0x430430
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.Windows
push 0x40
push 0x46ba50
call fcn.004394b3
push 0x11c
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00443550
add esp, 0x18
lea ecx, [ebp - 0x128]
push ecx
mov dword [ebp - 0x128], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx esi, byte [ebp - 0x124]
movzx edx, byte [ebp - 0x120]
movzx eax, byte [ebp - 0xe]
movzx ecx, byte [ebp - 0x14]
shl esi, 8
or esi, edx
shl esi, 8
or esi, eax
shl esi, 8
or esi, ecx
mov eax, esi
shr eax, 0x18
and eax, 0xf
cmp eax, 5
jne 0x43051a
test esi, 0xf0000
jne 0x4304c6
push str.2000
jmp 0x43063f
cmp eax, 5
jne 0x43051a
mov edx, esi
and edx, 0xf0000
cmp edx, 0x10000
jne 0x4304e5
push 0x45ed4c
jmp 0x43063f
cmp eax, 5
jne 0x43051a
mov ecx, esi
and ecx, 0xf0000
cmp ecx, 0x20000
jne 0x43051a
mov edx, esi
and edx, 0xf00
mov eax, str.XP64
cmp edx, 0x100
je 0x430514
mov eax, str.2003
push eax
jmp 0x43063f
cmp eax, 6
jne 0x43061f
test esi, 0xf0000
jne 0x430549
mov eax, esi
and eax, 0xf00
cmp eax, 0x100
mov eax, str.Vista
je 0x430543
mov eax, str.2008
push eax
jmp 0x43063f
cmp eax, 6
jne 0x43061f
mov ecx, esi
and ecx, 0xf0000
cmp ecx, 0x10000
jne 0x430582
mov edx, esi
and edx, 0xf00
mov eax, 0x45ed84
cmp edx, 0x100
je 0x43057c
mov eax, 0x45ed88
push eax
jmp 0x43063f
cmp eax, 6
jne 0x43061f
mov ecx, esi
and ecx, 0xf0000
cmp ecx, 0x20000
jne 0x4305bb
mov edx, esi
and edx, 0xf00
mov eax, 0x45ed98
cmp edx, 0x100
je 0x4305b5
mov eax, 0x45ed9c
push eax
jmp 0x43063f
cmp eax, 6
jne 0x43061f
mov ecx, esi
and ecx, 0xf0000
cmp ecx, 0x30000
jne 0x4305ed
mov edx, esi
and edx, 0xf00
mov eax, 0x45eda8
cmp edx, 0x100
je 0x4305ea
mov eax, str.2012_R2
push eax
jmp 0x43063f
cmp eax, 6
jne 0x43061f
mov ecx, esi
and ecx, 0xf0000
cmp ecx, 0x40000
jne 0x43061f
mov edx, esi
and edx, 0xf00
cmp edx, 0x100
mov eax, 0x45edc0
je 0x43061c
mov eax, str.Server_10
push eax
jmp 0x43063f
cmp eax, 0xa
jne 0x43063a
test esi, 0xf0000
jne 0x43063a
mov eax, esi
and eax, 0xf00
cmp eax, 0x100
jmp 0x430610
push str._Unknown_
push 0x40
push 0x46ba50
call fcn.00439516
add esp, 0xc
and esi, 0xf
jbe 0x430685
push 0x45edf0
push 0x40
push 0x46ba50
call fcn.00439516
push 0xa
push 3
lea ecx, [ebp - 0xc]
push ecx
push esi
call fcn.0043a3cc
lea edx, [ebp - 0xc]
push edx
push 0x40
push 0x46ba50
call fcn.00439516
add esp, 0x28
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x46ba50
pop esi
call fcn.004377c1
mov esp, ebp
pop ebp
ret
Function at 0x4309c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push str.Kernel32.dll
mov dword [ebp - 0x124], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x430a81
push 0x11c
lea eax, [ebp - 0x120]
push ebx
push eax
call fcn.00443550
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push str.GetProductInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x430a7a
movzx ecx, word [ebp - 0xa]
lea edx, [ebp - 0x124]
push edx
movzx edx, word [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x118]
push edx
mov edx, dword [ebp - 0x11c]
push ecx
push edx
call eax
mov eax, dword [ebp - 0x124]
cmp eax, 0x10
je 0x430a78
cmp eax, 0x1b
je 0x430a78
cmp eax, 5
je 0x430a78
cmp eax, 0x1a
je 0x430a78
cmp eax, 0x31
je 0x430a78
cmp eax, 0x2f
je 0x430a78
cmp eax, 0x1c
jne 0x430a7a
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004377c1
mov esp, ebp
pop ebp
ret

Function at 0x430b40
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsSystemFolderW]
test eax, eax
jne 0x430c7b
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x430c7b
xor bl, bl
mov eax, str.false
push esi
push eax
push str.System_folder_or_Root_:__s.
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x430c09
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x418], 0
setne al
test al, al
je 0x430c09
lea edx, [ebp - 0x20c]
push edx
push edi
call fcn.00439375
add esp, 8
test eax, eax
jne 0x430c09
push str.Not_system__Program_Files_x86
push 0x4699dc
mov bl, 1
call fcn.0042c820
add esp, 8
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x414]
push 0x104
push ecx
call fcn.004394b3
add esp, 0xc
push str.Intel
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.00439375
add esp, 8
pop esi
test eax, eax
jne 0x430c6a
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x430c6a
push str.Intel_root_found_and_not_empty
push 0x4699dc
mov bl, 1
call fcn.0042c820
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004377c1
mov esp, ebp
pop ebp
ret
mov bl, 1
mov eax, str.true
jmp 0x430b7b
Function at 0x430dc0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
push 2
mov edi, eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x430df9
push edi
push esi
mov dword [edi], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x430e04
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x430e10
lea eax, [edi + 0x24]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00439375
add esp, 8
test eax, eax
je 0x430e3f
push edi
push esi
call ebx
test eax, eax
jne 0x430e10
mov edi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x430e60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
push edi
lea eax, [ebp - 0x238]
call fcn.00430dc0
add esp, 4
cmp eax, 2
jne 0x430eb9
push edi
push str.TerminateProcess_failed_to_FindProcess___s_.
push 0x4699dc
mov eax, 2
call fcn.0042c820
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004377c1
mov esp, ebp
pop ebp
ret
call fcn.004322b0
mov eax, dword [ebp - 0x230]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x430ee0
push edi
push str.TerminateProcess_failed_to_OpenProcess___s_
jmp 0x430e91
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x430ea3
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004377c1
mov esp, ebp
pop ebp
ret
Function at 0x430f10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x86c
mov eax, dword [0x468738]
xor eax, esp
mov dword [esp + 0x868], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
push esi
lea ecx, [esp + 0x6c]
push 0x400
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], 0
call fcn.004394b3
add esp, 0xc
push 0x4564c0
lea edx, [esp + 0x6c]
push 0x400
push edx
call fcn.00439516
add esp, 0xc
push edi
lea eax, [esp + 0x6c]
push 0x400
push eax
call fcn.00439516
add esp, 0xc
push 0x44
lea ecx, [esp + 0x24]
push 0
push ecx
call fcn.00443550
xor eax, eax
add esp, 0xc
mov dword [esp + 0x20], 0x44
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
cmp byte [ebp + 8], al
je 0x430fb5
or dword [esp + 0x4c], 1
xor edx, edx
mov word [esp + 0x50], dx
cmp byte [ebp + 0x14], al
je 0x430fcf
lea eax, [esp + 0x20]
push eax
push ebx
push edi
push esi
call fcn.00431fb0
add esp, 0x10
movzx eax, al
jmp 0x430ff4
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x88]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x43100d
cmp byte [ebp + 0xc], 0
je 0x431017
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x431017
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
mov ecx, dword [esp + 0x86c]
mov eax, dword [esp + 8]
pop esi
xor ecx, esp
call fcn.004377c1
mov esp, ebp
pop ebp
ret

Function at 0x431060
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push 0x28
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4310fb
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0x80040002
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4310f2
mov ecx, dword [ebp - 0x18]
push ecx
call edi
push esi
call edi
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004377c1
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x18]
push edx
call edi
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004377c1
mov esp, ebp
pop ebp
ret