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

Disassembly:
push 0xffffffffffffffff
push 0x41b388
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
push edi
mov dword [esp + 0x3c], ebp
mov edi, dword [esp + 0x38]
mov dword [esp + 0x30], 0
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.004131a8
add esp, 4
mov esi, eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test al, 0x20
je 0x404331
mov ecx, ebx
mov eax, 0x2a2a2a2a
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x38]
jmp 0x40433d
lea eax, [ebx + 1]
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x190
call fcn.00404420
add esp, 4
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x10]
push ecx
push ebx
push esi
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
sub eax, ecx
mov ecx, dword [esp + 0x40]
sub eax, ecx
cmp edi, eax
jle 0x40438c
imul eax, ebx
cdq
idiv edi
mov ebx, eax
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push eax
push edx
push ecx
push esi
push ebp
mov byte [esi + ebx], 0
call fcn.00404230
push esi
call fcn.00412b8c
mov ecx, dword [esp + 0x44]
add esp, 0x1c
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret

Function at 0x4047c0
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x400
lea eax, [esp + 0x408]
lea edx, [esp]
push eax
push ecx
push edx
call fcn.0041341b
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x400
ret

Function at 0x4055e0
Capabilities:
Get mac address on windows

Disassembly:
mov eax, 0x1004
call fcn.004131c0
push esi
push edi
mov edi, ecx
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
lea esi, [esp + 0x14]
mov dword [esp + 0x10], 0x1000
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x40561a
pop edi
xor eax, eax
pop esi
add esp, 0x1004
ret 4
mov eax, dword [esp + 0x1010]
mov ecx, dword [esp + 0x1a8]
cmp eax, ecx
je 0x40563a
mov esi, dword [esi]
test esi, esi
je 0x405648
cmp eax, dword [esi + 0x19c]
jne 0x40562c
add esi, 0x194
mov ecx, edi
push esi
call fcn.004054a0
mov ecx, edi
call fcn.004053b0
pop edi
pop esi
add esp, 0x1004
ret 4
Function at 0x405660
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
mov eax, 0x10bc
call fcn.004131c0
lea eax, [esp]
push esi
lea ecx, [esp + 0xc0]
push eax
push ecx
lea esi, [esp + 0xc8]
mov dword [esp + 0xc], 0x1000
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x40569c
xor eax, eax
pop esi
add esp, 0x10bc
ret 4
mov eax, dword [esp + 0x10c4]
mov ecx, dword [esp + 0x25c]
push ebx
xor ebx, ebx
cmp eax, ecx
je 0x4056c3
mov esi, dword [esi]
cmp esi, ebx
je 0x405756
cmp eax, dword [esi + 0x19c]
jne 0x4056b1
push edi
lea edx, [esp + 0x64]
push str.route_delete_88.88.88.88
push edx
call fcn.004131ef
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
add esp, 8
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov dword [esp + 0x18], eax
push edx
push ebx
mov dword [esp + 0x24], eax
push ebx
push ebx
mov dword [esp + 0x30], eax
push 1
push ebx
lea eax, [esp + 0x80]
push ebx
push eax
push ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 0x101
mov word [esp + 0x78], bx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, 1
pop esi
add esp, 0x10bc
ret 4

Function at 0x405770
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
mov eax, 0x10bc
call fcn.004131c0
lea eax, [esp]
push esi
lea ecx, [esp + 0xc0]
push eax
push ecx
lea esi, [esp + 0xc8]
mov dword [esp + 0xc], 0x1000
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x4057ac
xor eax, eax
pop esi
add esp, 0x10bc
ret 4
mov eax, dword [esp + 0x10c4]
mov ecx, dword [esp + 0x25c]
push ebx
xor ebx, ebx
cmp eax, ecx
je 0x4057d3
mov esi, dword [esi]
cmp esi, ebx
je 0x40586d
cmp eax, dword [esi + 0x19c]
jne 0x4057c1
add esi, 0x1d8
push edi
push esi
lea edx, [esp + 0x68]
push str.route_add_88.88.88.88_mask_255.255.255.255__s
push edx
call fcn.004131ef
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x30]
add esp, 0xc
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov dword [esp + 0x18], eax
push edx
push ebx
mov dword [esp + 0x24], eax
push ebx
push ebx
mov dword [esp + 0x30], eax
push 1
push ebx
lea eax, [esp + 0x80]
push ebx
push eax
push ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 0x101
mov word [esp + 0x78], bx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, 1
pop esi
add esp, 0x10bc
ret 4
Function at 0x405880
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
mov eax, 0x1094
call fcn.004131c0
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x9c]
push eax
push ecx
mov dword [esp + 0x28], edi
lea esi, [esp + 0xa4]
mov dword [esp + 0x24], 0x1000
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x4058c4
pop edi
xor eax, eax
pop esi
add esp, 0x1094
ret 8
mov eax, dword [esp + 0x10a0]
mov ecx, dword [esp + 0x238]
push ebx
xor ebx, ebx
cmp eax, ecx
je 0x4058eb
mov esi, dword [esi]
cmp esi, ebx
je 0x405a5a
cmp eax, dword [esi + 0x19c]
jne 0x4058d9
lea eax, [esi + 0x1d8]
push ebp
push eax
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], bl
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], bl
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], bl
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], bl
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bl
mov dword [esp + 0x24], 6
mov dword [esp + 0x30], eax
call sub.WS2_32.dll_inet_addr
mov esi, dword [esp + 0x10ac]
mov ecx, edi
push esi
mov ebp, eax
call fcn.004054d0
push ebp
mov ecx, edi
call fcn.00405500
lea edx, [esp + 0x20]
lea eax, [esp + 0x10]
push edx
push eax
push esi
push ebp
call sub.iphlpapi.dll_SendARP
mov ecx, 3
lea edi, [esp + 0x10]
lea esi, [esp + 0x18]
xor edx, edx
repe cmpsw word [esi], word es:[edi]
jne 0x405a4b
lea eax, [esp + 0x10]
push eax
push ebp
call fcn.00405560
add esp, 8
mov ecx, 3
lea edi, [esp + 0x10]
lea esi, [esp + 0x18]
xor edx, edx
repe cmpsw word [esi], word es:[edi]
jne 0x405a4b
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x84]
push eax
push str.ping__s__n_1
push ecx
call fcn.004131ef
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x50]
add esp, 0xc
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
xor edx, edx
lea ecx, [esp + 0x40]
push eax
mov dword [esp + 0x38], edx
push ecx
push ebx
mov dword [esp + 0x44], edx
push ebx
push ebx
mov dword [esp + 0x50], edx
push 1
push ebx
lea edx, [esp + 0xa0]
push ebx
push edx
push ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x68], 0x44
mov dword [esp + 0x94], 0x101
mov word [esp + 0x98], bx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0x30]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x10]
push edx
push ebp
call fcn.00405560
add esp, 8
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
call fcn.00405530
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x1094
ret 8
Function at 0x405a70
Capabilities:
Get common file path
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x118
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.VDFltIp.vxd
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x41f338
call fcn.00406510
push 0xe5
call fcn.004060a0
add esp, 0xc
lea ecx, [esp]
push ecx
push str.SystemCurrentControlSetServicesVXDVDFltIp
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x405b11
mov edx, dword [0x41f2fc]
mov eax, dword [0x41f300]
mov ecx, dword [0x41f304]
mov dword [esp + 4], edx
lea edx, [esp + 4]
push 0xc
push edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 8]
push 1
push 0
push str.StaticVXD
push eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x118
ret
xor eax, eax
add esp, 0x118
ret
Function at 0x405b20
Capabilities:
Delete file
Delete registry key
Get common file path
Get file attributes
Query or enumerate registry key
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41b406
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push ebp
xor ebp, ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x1c], ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x14]
push eax
push 0xf003f
push ebx
push str.SystemCurrentControlSetServicesVXD
push reloc.WS2_32.dll_bind
mov dword [esp + 0x248], ebx
mov dword [esp + 0x28], ebx
call esi
cmp eax, ebx
jne 0x405b7b
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x234], 1
push ecx
push 0x2001f
push ebx
push str.VDFltIp
push ebp
mov dword [esp + 0x2c], ebx
call esi
cmp eax, ebx
jne 0x405bb7
lea ecx, [esp + 0x10]
call fcn.00406360
mov ecx, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x10], ecx
je 0x405bcc
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], bl
call fcn.00406360
jmp 0x405c64
lea edx, [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edx
push ebx
push ebx
lea eax, [esp + 0x20]
push ebx
lea edx, [esp + 0x13c]
push eax
push edx
mov edi, 0x100
push ebx
push ecx
mov dword [esp + 0x34], edi
call esi
test eax, eax
jne 0x405c36
lea eax, [esp + 0x12c]
lea ecx, [esp + 0x10]
push eax
call fcn.00406380
test eax, eax
jne 0x405cef
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea eax, [esp + 0x13c]
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x34], edi
call esi
test eax, eax
je 0x405bf8
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x405c49
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
push str.VDFltIp
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x405c64
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x28]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.VDFltIp.vxd
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp ebp, ebx
je 0x405cd1
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x405c64
jmp 0x405c5d
Function at 0x405d00
Capabilities:
Set registry value

Disassembly:
sub esp, 0x80
mov ecx, 0x20
xor eax, eax
lea edx, [esp]
push esi
push edi
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x94]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x98]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp edx, 7
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 8]
jne 0x405d57
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
jmp 0x405d61
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [esp + 0x8c]
push ecx
lea ecx, [esp + 0xc]
push ecx
push edx
mov edx, dword [esp + 0x9c]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
add esp, 0x80
ret

Function at 0x405d90
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 8
push esi
push str.driversVDFltIp.sys
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x41f338
call fcn.00406510
push 0xe4
call fcn.004060a0
add esp, 0xc
lea eax, [esp + 4]
push eax
push str.SYSTEMCurrentControlSetServicesVDFltIp
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x405eb5
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 8]
push 4
push ecx
push 4
push eax
push str.Type
push edx
mov dword [esp + 0x20], 1
call esi
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push 4
push eax
push 4
push 0
push str.Start
push ecx
mov dword [esp + 0x20], 0
call esi
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push 4
push edx
push 4
push 0
push str.ErrorControl
push eax
mov dword [esp + 0x20], 1
call esi
mov ecx, dword [esp + 4]
push 1
push str.Extended_Base
push str.Group
push ecx
call fcn.00405d00
mov edx, dword [esp + 0x14]
push 2
push str.System32DRIVERSVDFltIp.sys
push str.ImagePath
push edx
call fcn.00405d00
mov eax, dword [esp + 0x24]
push 1
push str.Vtion_Dial_Driver
push str.DisplayName
push eax
call fcn.00405d00
mov ecx, dword [esp + 0x34]
push 7
push str.NDIS
push str.DependOnService
push ecx
call fcn.00405d00
mov edx, dword [esp + 0x44]
add esp, 0x40
push 7
push str.NDIS_Wrapper
push str.DependOnGroup
push edx
call fcn.00405d00
mov eax, dword [esp + 0x14]
add esp, 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x405ec0
Capabilities:
Delete file
Delete registry key
Get common file path
Get file attributes
Query or enumerate registry key
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41b426
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push ebp
xor ebp, ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x1c], ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x14]
push eax
push 0xf003f
push ebx
push str.SYSTEMCurrentControlSetServices
push reloc.WS2_32.dll_bind
mov dword [esp + 0x248], ebx
mov dword [esp + 0x28], ebx
call esi
cmp eax, ebx
jne 0x405f1b
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x234], 1
push ecx
push 0x2001f
push ebx
push str.VDFltIp
push ebp
mov dword [esp + 0x2c], ebx
call esi
cmp eax, ebx
jne 0x405f57
lea ecx, [esp + 0x10]
call fcn.00406360
mov ecx, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x10], ecx
je 0x405f6c
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], bl
call fcn.00406360
jmp 0x406004
lea edx, [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edx
push ebx
push ebx
lea eax, [esp + 0x20]
push ebx
lea edx, [esp + 0x13c]
push eax
push edx
mov edi, 0x100
push ebx
push ecx
mov dword [esp + 0x34], edi
call esi
test eax, eax
jne 0x405fd6
lea eax, [esp + 0x12c]
lea ecx, [esp + 0x10]
push eax
call fcn.00406380
test eax, eax
jne 0x40608c
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea eax, [esp + 0x13c]
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x34], edi
call esi
test eax, eax
je 0x405f98
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x405fe9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
push str.VDFltIp
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x406004
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x28]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.driversVDFltIp.sys
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp ebp, ebx
je 0x406071
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x406004
jmp 0x405ffd
Function at 0x4060a0
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Get file attributes
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41b438
push eax
mov dword fs:[0], esp
sub esp, 0x104
push ebp
push esi
push edi
mov eax, dword [esp + 0x120]
mov edi, dword [esp + 0x124]
mov ecx, dword [0x421d18]
and eax, 0xffff
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x406105
mov edx, dword [0x421d18]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406105
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x40613b
mov ecx, dword [0x41f0cc]
lea eax, [edi - 0xc]
cmp eax, ecx
mov dword [esp + 0x118], 0xffffffff
je 0x406134
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x406134
push esi
call fcn.00412b8c
add esp, 4
xor al, al
jmp 0x406210
mov ecx, dword [0x421d18]
push ebx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea edx, [esp + 0x10]
push 0x104
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x180
lea eax, [esp + 0x14]
push 0x8301
push eax
call fcn.0041aa76
mov esi, eax
push ebx
push ebp
push esi
call fcn.00417fde
push esi
call fcn.0041a8e7
mov eax, dword [esp + 0x144]
mov edx, dword [0x41f0cc]
add esp, 0x1c
mov dword [esp + 0x11c], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
pop ebx
je 0x40620e
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40620e
push esi
call fcn.00412b8c
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x110
ret
Function at 0x406230
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
lea ecx, [esp]
push ebx
push esi
call fcn.00405300
mov ecx, eax
call fcn.00405370
cmp eax, 0xa
lea ecx, [esp + 8]
sete bl
call fcn.00405350
test bl, bl
je 0x406263
pop esi
mov eax, 1
pop ebx
add esp, 0x18
ret
call fcn.00403c90
test eax, eax
je 0x406278
call fcn.00405b20
call fcn.00405a70
jmp 0x406282
call fcn.00405ec0
call fcn.00405d90
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x34
push 0x41f514
push 0x41f4d0
push 0
call esi
cmp eax, 6
jne 0x406335
call fcn.00403c90
test eax, eax
je 0x4062bc
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
lea eax, [esp + 8]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x406325
lea ecx, [esp + 0x14]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 8]
push 0
push 0
lea edx, [esp + 0x18]
push 0
push edx
push 0
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x406325
push eax
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x406335
push 0
push 0x41f514
push 0x41f4a0
push 0
call esi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x406380
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x41b45b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x134]
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
mov dword [esp + 0x12c], edi
push ecx
push 0x2001f
push edi
push edx
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x4063f8
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, edi
je 0x4063e8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
cmp eax, edi
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x40640a
jmp 0x4063fc
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x4064a5
push ecx
jmp 0x40649f
lea eax, [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push edi
push edi
lea edx, [esp + 0x1c]
push edi
lea eax, [esp + 0x34]
push edx
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x406470
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x10]
call fcn.00406380
mov ebx, eax
cmp ebx, edi
jne 0x4064c1
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x34]
push eax
push ecx
push edi
push edx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x406432
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x406483
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x134]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x4064a5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 4
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x4064d0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4064a7