joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47c390
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x613e2a
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
call fcn.0045c4b0
mov esi, eax
test esi, esi
je 0x47c434
lea eax, [esp + 0xc]
push eax
call fcn.0041e860
mov dword [esp + 0x30], 0
mov ebx, dword [ebp + 0x14]
lea eax, [esp + 0x10]
call fcn.0041cc80
mov ebx, dword [ebp + 0x24]
lea eax, [esp + 0x14]
call fcn.0041cc80
mov ecx, dword [ebp + 0x34]
cmp dword [ebp + 0x44], 0
mov dword [esp + 0x18], ecx
setne dl
push esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], dl
call fcn.00460a00
mov dword [esp + 0x30], 0xffffffff
lea eax, [esp + 0xc]
push eax
call fcn.0041e8d0
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x44
mov eax, 0x80004005
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x44
Function at 0x47e0d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x615e4a
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x711ab8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x20], edx
mov esi, dword [ebp + 0x24]
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
lea edx, [ebp - 0x3c]
push edx
call fcn.0040b990
mov byte [ebp - 4], 1
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
call fcn.0040b990
mov ebx, 2
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x34]
test eax, eax
jne 0x47e1b1
push 1
sub esp, 0x1c
mov dword [ebp - 0x40], esp
mov eax, dword [ebp - 0x3c]
mov ecx, esp
call fcn.0040b3c0
mov byte [ebp - 4], 3
sub esp, 0x1c
mov dword [ebp - 0x44], esp
mov eax, dword [ebp - 0x38]
mov ecx, esp
call fcn.0040b3c0
mov byte [ebp - 4], 4
mov byte [ebp - 4], bl
call fcn.004948d0
add esp, 0x3c
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x3c]
push edx
mov ecx, 0x6d420c
call fcn.0040bb30
test eax, eax
jne 0x47e1d3
mov ecx, dword [ebp - 0x38]
call fcn.00439af0
jmp 0x47e1d3
cmp eax, 1
jne 0x47e1c0
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x47e1d3
cmp eax, ebx
jne 0x47e1d3
call fcn.00497e50
lea edx, [ebp - 0x38]
mov ecx, eax
call fcn.004aadf0
lea eax, [ebp - 0x34]
push eax
call fcn.00416fa0
mov byte [ebp - 4], 5
push 0
lea ecx, [ebp - 0x34]
call fcn.0041ec60
test al, al
je 0x47e1fa
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00422120
mov byte [ebp - 4], bl
lea edx, [ebp - 0x34]
push edx
call fcn.00417000
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.0040ba40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0040ba40
mov dword [ebp - 4], 0xffffffff
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 - 0x14]
xor ecx, ebp
call fcn.005c397a
mov esp, ebp
pop ebp
ret 0x34
Function at 0x47e260
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x615dee
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x711ab8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x54]
push eax
call fcn.00443eb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
push ecx
call fcn.00443eb0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x88]
push edx
call fcn.00443eb0
mov byte [ebp - 4], 3
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0043ad20
lea ecx, [ebp + 0x1c]
push ecx
lea ecx, [ebp - 0x54]
call fcn.0043ad20
lea edx, [ebp + 0x2c]
push edx
lea ecx, [ebp - 0x88]
call fcn.0043af80
add esp, 0xc
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x48]
sar eax, 2
cmp edi, eax
jae 0x47e3df
lea esi, [ebp - 0x88]
call fcn.00424a10
cmp dword [eax], 0
jne 0x47e393
push 1
lea esi, [ebp - 0x6c]
call fcn.00424a10
mov eax, dword [eax]
sub esp, 0x1c
mov dword [ebp - 0x8c], esp
mov ecx, esp
call fcn.0040b3c0
mov byte [ebp - 4], 4
lea esi, [ebp - 0x54]
call fcn.00424a10
mov eax, dword [eax]
sub esp, 0x1c
mov dword [ebp - 0x70], esp
mov ecx, esp
call fcn.0040b3c0
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
call fcn.004948d0
add esp, 0x3c
call fcn.00424a10
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [ebp - 0x6c]
call fcn.00424a10
push eax
mov ecx, 0x6d420c
call fcn.0040bb30
test eax, eax
jne 0x47e3d9
lea esi, [ebp - 0x54]
call fcn.00424a10
mov ecx, dword [eax]
call fcn.00439af0
inc edi
jmp 0x47e2ea
lea esi, [ebp - 0x88]
call fcn.00424a10
cmp dword [eax], 1
jne 0x47e3b1
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
jmp 0x47e2ea
lea esi, [ebp - 0x88]
call fcn.00424a10
cmp dword [eax], 2
jne 0x47e3d9
call fcn.00497e50
mov ebx, eax
lea esi, [ebp - 0x54]
call fcn.00424a10
mov edx, eax
mov ecx, ebx
call fcn.004aadf0
inc edi
jmp 0x47e2ea
lea ecx, [ebp - 0x34]
push ecx
call fcn.00416fa0
mov byte [ebp - 4], 6
push 0
lea ecx, [ebp - 0x34]
call fcn.0041ec60
test al, al
je 0x47e420
xor edi, edi
mov dword [ebp - 0x3c], edi
mov edx, dword [ebp - 0x5c]
sub edx, dword [ebp - 0x60]
sar edx, 2
cmp edi, edx
jae 0x47e420
lea esi, [ebp - 0x6c]
call fcn.00424a10
push eax
lea ecx, [ebp - 0x34]
call fcn.00422120
inc edi
jmp 0x47e3fc
mov byte [ebp - 4], 3
lea eax, [ebp - 0x34]
push eax
call fcn.00417000
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
push ecx
call fcn.00484970
mov byte [ebp - 4], 1
lea edx, [ebp - 0x6c]
push edx
call fcn.00424990
mov byte [ebp - 4], 0
lea eax, [ebp - 0x54]
push eax
call fcn.00424990
mov dword [ebp - 4], 0xffffffff
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 - 0x14]
xor ecx, ebp
call fcn.005c397a
mov esp, ebp
pop ebp
ret 0x34
Function at 0x47e490
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f99f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x14], 1
jne 0x47e504
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
push ebx
lea esi, [ebp - 0x14]
call fcn.0040cf20
push eax
push ebx
push 0x20006
push 1
push ebx
push ebx
push str.SOFTWAREClasses_avhnoralert
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x47e514
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47e514
push str.SOFTWAREClasses_avhnoralert
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 4], 0xffffffff
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 0x14
Function at 0x47fdc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60f752
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], eax
mov byte [esp + 0xc], al
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], 1
push eax
lea ecx, [esp + 0xc]
call fcn.0041ec60
test al, al
je 0x47fe47
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [esp + 0xc]
call fcn.004227f0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 8]
push ecx
call fcn.00417000
xor eax, eax
jmp 0x47fe5e
mov dword [esp + 0x38], 0xffffffff
lea edx, [esp + 8]
push edx
call fcn.00417000
mov eax, 0x80004005
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.005c397a
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4809a0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602b78
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.0040b990
mov byte [ebp - 4], 1
lea edi, [ebp - 0x14]
call fcn.0040bd70
mov eax, dword [ebp - 0x14]
mov esi, eax
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x480a24
mov byte [ebp - 4], bl
mov ecx, edi
call fcn.0040ba40
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 0x14
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.0040ba40
mov dword [ebp - 4], 0xffffffff
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x481ca0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f71c0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x481cf4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
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 0x14
Function at 0x481da0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602b20
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0x24]
call fcn.0040b990
mov esi, eax
mov bl, 1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.0040b990
mov byte [ebp - 4], 2
mov esi, dword [esi]
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.0040ba40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040ba40
mov dword [ebp - 4], 0xffffffff
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 0x24
Function at 0x4837c0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7180
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x483822
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x20]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 2
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x483875
push 0x80020013
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov dword [ebp - 4], 0xffffffff
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 4

Function at 0x4838a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x602ae8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0040b990
mov dword [esp + 0x18], 0
mov dword [esp + 0x18], 0xffffffff
call fcn.0044f000
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret 0x24

Function at 0x483900
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x602ab8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
push esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, dword [esp + 0x38]
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
mov eax, 3
push ecx
mov ecx, dword [esp + 0x30]
mov word [esi], ax
call fcn.0040b990
mov dword [esp + 0x18], 0
mov dword [esp + 0x18], 0xffffffff
mov ecx, edi
call fcn.0044ef10
mov dword [esi + 8], eax
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0x28
Function at 0x484100
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x616350
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov eax, dword [0x72af88]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push 0
push 0
push 0x47b330
push 0
push 0
call fcn.005c4af6
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
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 0x14
Function at 0x484290
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x6110c4
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x100]
mov eax, dword [eax]
mov ebp, dword [esp + 0x104]
xor edi, edi
mov dword [esp + 0x18], ecx
mov ebx, 7
xor edx, edx
mov ecx, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edi
mov word [esp + 0x20], dx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x484300
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x20]
call fcn.0040d7f0
mov dword [esp + 0xf8], edi
mov eax, esi
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00443c90
mov byte [esp + 0xf8], 2
cmp dword [esp + 0x34], 8
jb 0x484349
mov edx, dword [esp + 0x20]
push edx
call fcn.005c396f
add esp, 4
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edi
mov word [esp + 0x20], ax
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xe4], edi
mov word [esp + 0xd4], cx
mov byte [esp + 0xf8], 3
push 0x3b
lea edx, [esp + 0xd4]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.0044bfc0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 0xc
neg eax
sbb eax, eax
not eax
test ecx, eax
je 0x484469
cmp dword [esp + 0xe8], 8
mov ecx, dword [esp + 0xd4]
jae 0x4843c6
lea ecx, [esp + 0xd4]
lea edx, [esp + 0x14]
push edx
call fcn.0040b990
mov byte [esp + 0xf8], 4
mov esi, dword [ebp]
cmp dword [esi - 0xc], edi
je 0x4843f3
push esi
lea eax, [esp + 0x18]
call fcn.00425630
mov ebx, eax
mov eax, esi
call fcn.00425690
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
lea ebx, [esp + 0x40]
call fcn.004251c0
mov byte [esp + 0xf8], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48442e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x3b
lea ecx, [esp + 0xd4]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.0044bfc0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 0xc
neg eax
sbb eax, eax
not eax
test ecx, eax
jne 0x4843ae
mov ebx, 7
mov byte [esp + 0xf8], 2
cmp dword [esp + 0xe8], 8
jb 0x48448b
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.005c396f
add esp, 4
xor edx, edx
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xe4], edi
mov word [esp + 0xd4], dx
mov dword [esp + 0xf8], 0xffffffff
lea ecx, [esp + 0x98]
call fcn.00443d30
lea ecx, [esp + 0x98]
call fcn.0040af40
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.005c397a
add esp, 0xe8
ret
Function at 0x485830
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push 0xffffffffffffffff
push 0x60299d
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x828], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x840]
mov dword fs:[0], eax
push 0x400
lea eax, [esp + 0x40]
xor ebx, ebx
push eax
mov esi, edx
push ebx
mov edi, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
cmp ebp, ebx
je 0x4859ac
cmp dword [edi + 0x78], ebx
je 0x4858b4
cmp dword [edi + 0x7c], 8
jb 0x4858b1
mov ebx, dword [edi + 0x68]
jmp 0x4858b4
lea ebx, [edi + 0x68]
xor ecx, ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4858d2
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x40]
lea esi, [esp + 0x24]
call fcn.0040d7f0
mov dword [esp + 0x848], 1
mov eax, 8
cmp dword [edi + 0x98], eax
jb 0x48590f
mov edx, dword [edi + 0x84]
jmp 0x485915
lea edx, [edi + 0x84]
mov esi, dword [esp + 0x24]
cmp dword [esp + 0x38], eax
jae 0x485923
lea esi, [esp + 0x24]
cmp dword [edi + 0x60], eax
jb 0x48592d
mov ecx, dword [edi + 0x4c]
jmp 0x485930
lea ecx, [edi + 0x4c]
cmp dword [edi + 0x44], eax
jb 0x48593a
mov eax, dword [edi + 0x30]
jmp 0x48593d
lea eax, [edi + 0x30]
push 0
push ebx
push edx
push 0
push str.UIGroup
push esi
push 1
push 2
push 0x10
push 0xf01ff
push ecx
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
mov byte [esp + 0x848], 0
cmp dword [esp + 0x38], 8
jb 0x48597b
mov edx, dword [esp + 0x24]
push edx
call fcn.005c396f
add esp, 4
lea ecx, [esp + 0x18]
push ecx
push 7
xor eax, eax
push esi
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
mov dword [esp + 0x24], 0x493e0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov esi, dword [esp + 0x1c]
add edi, 0x48
push edi
push esi
mov edi, str._installed.
call fcn.004861e0
add esp, 8
mov dword [esp + 0x848], 0
mov dword [esp + 0x14], 1
mov eax, esi
mov ecx, dword [esp + 0x840]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x828]
xor ecx, esp
call fcn.005c397a
add esp, 0x838
ret
Function at 0x485b20
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x602936
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
mov edi, 1
xor bl, bl
cmp dword [0x71038c], edi
jl 0x485b7c
push str.VB_CHECK01
push str.findUpdater
push edi
call fcn.00579a92
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x485bc5
cmp dword [0x71038c], edi
jl 0x485ba7
push str.VB_CHECK02
push str.findUpdater
push edi
call fcn.00579a92
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push esi
mov dword [esp + 0x1c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x485bcc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x485c8c
cmp dword [0x71038c], edi
jl 0x485be7
push str.VB_CHECK03
push str.findUpdater
push edi
call fcn.00579a92
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040b990
mov dword [esp + 0x24c], 0
mov edx, dword [esp + 0x10]
push str.vbupdate.exe
push edx
call fcn.005c3c4f
add esp, 8
test eax, eax
je 0x485c52
mov dword [esp + 0x24c], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485c41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x485be7
jmp 0x485c83
cmp dword [0x71038c], edi
jl 0x485c6d
push str.VB_CHECK04
push str.findUpdater
push edi
call fcn.00579a92
add esp, 0xc
mov bl, 1
mov dword [esp + 0x24c], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040ba40
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.005c397a
add esp, 0x240
ret