joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a360
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
test eax, eax
je 0x40a377
lea esi, [eax - 0x20]
mov dword [ebp - 4], esi
jmp 0x40a381
mov dword [ebp - 4], 0
mov esi, dword [ebp - 4]
cmp dword [ebp + 0xc], 0
mov dword [ebp - 8], 1
je 0x40a442
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
mov eax, dword [ebx]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or edx, eax
mov dword [ebp + 0xc], 0xffffffff
jge 0x40a3ce
mov ecx, esi
mov eax, ebx
call fcn.00403650
mov eax, dword [ebx]
test esi, esi
js 0x40a438
cmp esi, dword [eax - 8]
jg 0x40a438
mov dword [eax - 0xc], esi
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + esi*2], dx
test eax, eax
je 0x40a427
lea ecx, [esi + 1]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [ebx]
mov dword [ebp + 0xc], eax
test edx, edx
jne 0x40a401
xor eax, eax
jmp 0x40a417
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a406
sub eax, edi
sar eax, 1
js 0x40a438
cmp eax, dword [edx - 8]
jg 0x40a438
mov dword [edx - 0xc], eax
mov edx, dword [ebx]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp dword [ebp + 0xc], esi
jge 0x40a483
mov esi, dword [ebp - 4]
mov dword [ebp - 8], 0
jmp 0x40a45a
push 0x80070057
call fcn.004036a0
mov ebx, dword [ebx]
mov edx, dword [ebp + 8]
mov eax, dword [esi + 4]
push ebx
push edx
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x40a483
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
add esi, 0x20
je 0x40a46c
lea eax, [esi - 0x20]
jmp 0x40a46e
xor eax, eax
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40a890
Capabilities:
Access peb ldr_data
Get hostname
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447c60
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x45c070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CAddRangeDlg.0
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov eax, dword [0x45d48c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45d48c
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov ecx, 1
mov byte [ebp - 4], cl
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x40a926
mov ecx, 0x104
lea eax, [ebp - 0x14]
call fcn.004075c0
mov edi, dword [ebp - 0x14]
mov eax, 0x104
cmp dword [edi - 8], eax
jge 0x40a93a
push 0x80070057
call fcn.004036a0
push eax
mov dword [edi - 0xc], eax
push edi
mov byte [edi + 0x104], bl
call dword [sym.imp.WS2_32.dll_gethostname]
mov eax, dword [0x45d48c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45d48c
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
test edi, 0xffff0000
jne 0x40a985
movzx edi, di
call fcn.004032e0
cmp eax, ebx
je 0x40a98f
push eax
mov eax, edi
lea edi, [ebp - 0x10]
call fcn.00403490
jmp 0x40a98f
mov ebx, edi
lea eax, [ebp - 0x10]
call fcn.00404040
lea ebx, [ebp - 0x18]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00405190
mov edi, dword [ebp - 0x18]
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
push edi
call ebx
and eax, 0xffffff00
inc eax
push edi
mov dword [0x45f344], eax
call ebx
and eax, 0xffffff00
add eax, 0xff
mov dword [0x45f340], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a9ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aa0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40bba0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4471a8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45c070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x45d48c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45d48c
call edx
lea edx, [eax + 0x10]
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x40bc04
mov ecx, 0x104
lea eax, [ebp - 0x10]
call fcn.00403650
mov edx, dword [ebp - 0x10]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp - 0x10]
test edx, edx
jne 0x40bc1b
xor eax, eax
jmp 0x40bc31
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bc20
sub eax, esi
sar eax, 1
js 0x40bca6
cmp eax, dword [edx - 8]
jg 0x40bca6
mov dword [edx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
push 0x12
mov word [edx + eax*2], cx
push str._sca_installer.log
lea eax, [ebp - 0x10]
push eax
call fcn.00403a70
mov ecx, dword [0x460238]
mov edx, dword [ebp - 0x10]
push 5
push ecx
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bc94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004036a0
int3
Function at 0x40d930
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x448946
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x45c070]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov eax, dword [0x45c070]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x40d9da
push 0x104
lea edx, [esp + 0x40]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40d9d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x40d9b3
and eax, 0xffff
or eax, 0x80070000
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, str.::GetModuleFileNameW__0__awcBuffer__dwLength_
call fcn.00404c60
push 0x456ac8
lea ecx, [esp + 0x30]
push ecx
call fcn.00434818
lea edx, [esp + 0x3c]
mov dword [esp + 0x1c], edx
xor esi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x260], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x260], 1
mov dword [esp + 0x14], esi
test esi, esi
jne 0x40da2c
mov ecx, dword [esp + 0x24]
call fcn.0040d800
inc dword [esp + 0x14]
mov esi, eax
push 0x64
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x14], 0x14
jl 0x40d9f7
test esi, esi
jne 0x40da2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40dad2
mov dword [esp + 0x14], 0
test ebx, ebx
jne 0x40daa2
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push 1
push 2
push 0x10
push 0xf01ff
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x40da74
push 0xf003f
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
inc dword [esp + 0x14]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x14], 0x14
jl 0x40da34
test ebx, ebx
jne 0x40daa2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x40da9e
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
jmp 0x40dad2
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40dabc
lea ecx, [esp + 0x18]
push ecx
push 1
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x40dac9
push ebx
call edi
test esi, esi
je 0x40dad0
push esi
call edi
xor eax, eax
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0042decf
mov esp, ebp
pop ebp
ret
Function at 0x40db00
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448910
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x45c070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
xor edi, edi
mov dword [ebp - 0x10], esi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
test esi, esi
jne 0x40db76
mov ecx, dword [ebp + 0xc]
call fcn.0040d800
mov esi, eax
push 0x64
mov dword [ebp - 0x10], esi
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x14
jl 0x40db3b
test esi, esi
jne 0x40db76
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
test ebx, ebx
jne 0x40dbc7
mov eax, dword [ebp + 8]
push 0xf01ff
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 0x64
mov ebx, eax
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x14
jl 0x40db78
test ebx, ebx
jne 0x40dbc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x40dbb3
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40dc04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x40dbe8
push ebx
call edi
test esi, esi
je 0x40dbef
push esi
call edi
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
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x40dc11
push ebx
call edi
test esi, esi
je 0x40dc18
push esi
call edi
xor eax, eax
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 0x40dc30
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4488d0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x45c070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
cmp dword [ebp - 0x30], 0
jne 0x40dca0
mov ecx, 0x451920
call fcn.0040d800
push 0x64
mov dword [ebp - 0x30], eax
inc edi
call ebx
cmp edi, 0x14
jl 0x40dc72
cmp dword [ebp - 0x30], 0
jne 0x40dca0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40dda4
xor edi, edi
test esi, esi
jne 0x40dce7
mov eax, dword [ebp - 0x30]
push 0xf01ff
push str.Time_Control_Service
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 0x64
mov esi, eax
inc edi
call ebx
cmp edi, 0x14
jl 0x40dca2
test esi, esi
jne 0x40dce7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40dce0
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x40dda4
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40dd24
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x420
je 0x40dd24
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40dd13
push esi
call ebx
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40dd1d
push eax
call ebx
mov eax, edi
jmp 0x40dda4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x34], eax
xor eax, eax
xor edi, edi
jmp 0x40dd36
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x40dd52
lea ecx, [ebp - 0x2c]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x64
mov dword [ebp - 0x38], eax
inc edi
call ebx
cmp edi, 0x14
jl 0x40dd33
mov edi, 4
cmp dword [ebp - 0x28], edi
je 0x40dd8b
lea esp, [esp]
mov edx, dword [ebp - 0x14]
push edx
call ebx
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x28], edi
je 0x40dd8b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x34]
cmp eax, 0x7530
ja 0x40ddc0
cmp dword [ebp - 0x28], edi
jne 0x40dd60
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40dd98
push esi
call edi
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40dda2
push eax
call edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042decf
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40ddcd
push esi
call edi
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40ddd7
push eax
call edi
mov eax, 0x800705b4
jmp 0x40dda4
Function at 0x40dfc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [esi + 0x3c], 0
push ebx
push edi
jne 0x40dfe6
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
call fcn.0040e070
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x14]
push 1
push 0
push 0x402
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x14], eax
je 0x40e059
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [esi + 0x24], 1
mov ebx, eax
je 0x40e030
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, ebx
cmp eax, 0x7530
ja 0x40e038
cmp dword [esi + 0x24], 1
jne 0x40e014
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x800705b4
lea edx, [ebp - 0x10]
push edx
mov ecx, 0x451920
call fcn.00404c60
push 0x456ac8
lea eax, [ebp - 0x10]
push eax
call fcn.00434818
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e560
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4487c0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x45c070]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x45c070]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x1c], eax
cmp dword [eax + 0x3c], esi
je 0x40e5b3
xor ecx, ecx
cmp dword [eax + 0x24], 4
sete al
jmp 0x40e6d2
mov dword [esp + 0x18], esi
xor ebx, ebx
mov dword [esp + 0x60], esi
mov dword [esp + 0x20], ebx
mov byte [esp + 0x60], 1
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40e5d4
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x18], 0
jne 0x40e5f8
mov ecx, dword [eax + 8]
call fcn.0040d800
push 0x64
mov dword [esp + 0x1c], eax
inc esi
call edi
cmp esi, 0x14
jl 0x40e5d0
cmp dword [esp + 0x18], 0
je 0x40e639
xor esi, esi
test ebx, ebx
jne 0x40e640
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
push 0xf01ff
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 0x64
mov ebx, eax
inc esi
call edi
cmp esi, 0x14
jl 0x40e5fa
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x40e644
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40e639
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x40e6d2
mov dword [esp + 0x20], ebx
xor eax, eax
xor esi, esi
jmp 0x40e654
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40e6ac
lea ecx, [esp + 0x34]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x64
mov dword [esp + 0x20], eax
inc esi
call edi
cmp esi, 0x14
jl 0x40e650
cmp dword [esp + 0x1c], 0
jne 0x40e6ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40e68d
and eax, 0xffff
or eax, 0x80070000
push eax
lea edx, [esp + 0x28]
push edx
mov ecx, str.bRes
call fcn.00404c60
push 0x456ac8
lea eax, [esp + 0x28]
push eax
call fcn.00434818
cmp dword [esp + 0x38], 4
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sete byte [esp + 0x17]
test ebx, ebx
je 0x40e6c3
push ebx
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40e6ce
push eax
call esi
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0042decf
mov esp, ebp
pop ebp
ret 4
Function at 0x4128b0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x45c070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4128fe
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042decf
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x4128ed
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xor ecx, ebp
pop ebx
call fcn.0042decf
mov esp, ebp
pop ebp
ret
Function at 0x415fe0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0
push 0x4531dc
push 0x460238
call fcn.00403a70
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov word [ebp - 4], ax
mov eax, dword [0x460238]
lea edx, [ebp - 0x20]
mov ecx, 0x414
push edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xe], 0
mov word [ebp - 0x10], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esp, ebp
pop ebp
ret

Function at 0x4168b0
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448018
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
mov eax, dword [0x45c070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004037a0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov esi, 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], 0
cmp dword [eax - 4], esi
jle 0x41690d
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00403590
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
push 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
push eax
push ecx
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x30], esi
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416960
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x416980
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45c070]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4169f3
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]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4169f3
push 1
push eax
push 0x1e
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042decf
mov esp, ebp
pop ebp
ret
Function at 0x41b790
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x454030
mov edi, eax
push 0x6e
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41b7b4
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x41b82c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41b82c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x41b82c
mov eax, dword [ebp + 8]
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41b835
call fcn.00409020
test eax, eax
js 0x41b82c
push 0
lea ecx, [ebp - 4]
push ecx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41b839
call fcn.00409020
test eax, eax
jns 0x41b839
test esi, esi
je 0x41b82c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov esi, eax
jmp 0x41b805
test esi, esi
je 0x41b844
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41c7d0
Capabilities:
Create thread

Disassembly:
push ecx
mov ecx, dword [0x460238]
call fcn.0041bc10
test eax, eax
jne 0x41c7f7
push 0x30
push 0x450c30
push str.Installation_file_corrupted_or_out_of_disk_space.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop ecx
ret
call fcn.004128b0
test eax, eax
jne 0x41c817
push 0x30
push 0x450c30
push str.Admin_rights_needed.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop ecx
ret
push 0
push 0
push esi
push 0x41aa60
push 4
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x74]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x460238]
push 1
push 1
push edx
call fcn.00410f40
add esp, 0xc
xor eax, eax
pop ecx
ret

Function at 0x41c860
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x460238]
call fcn.0041bc10
test eax, eax
jne 0x41c885
push 0x30
push 0x450c30
push str.Installation_file_corrupted_or_out_of_disk_space.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
ret
call fcn.004128b0
test eax, eax
jne 0x41c8a4
push 0x30
push 0x450c30
push str.Admin_rights_needed.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
ret
push 0
push 0
push esi
push 0x41aa80
push 4
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x74]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
ret