joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ff60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x467f10
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4832f0]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
mov eax, dword [0x4832f0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x88]
xor eax, eax
mov esi, ecx
mov edx, dword [esi]
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov word [esp + 0x61], ax
mov byte [esp + 0x63], al
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov dword [esp + 0x6d], eax
mov word [esp + 0x71], ax
mov byte [esp + 0x73], al
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
xor ebx, ebx
push ecx
add edx, 0x618
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x60], bl
mov byte [esp + 0x70], bl
call fcn.00421940
add esp, 0xc
cmp eax, ebx
je 0x420123
mov ecx, dword [esi]
add ecx, 0x618
xor eax, eax
mov word [esp + 0x3c], ax
mov eax, ecx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
lea esi, [eax + 2]
jmp 0x420020
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x420020
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x40]
call fcn.004018a0
mov dword [esp + 0x80], ebx
xor ecx, ecx
mov eax, edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x420060
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x24]
call fcn.004018a0
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp eax, ebp
jne 0x42013d
cmp ecx, dword [esp + 0x8c]
jne 0x42013b
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x3c]
call fcn.00409c30
add esp, 4
test eax, eax
je 0x4200e5
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call fcn.00409c30
add esp, 4
test eax, eax
je 0x4200e5
mov eax, 0x10
xor ecx, ecx
mov edi, edi
mov edx, dword [esp + ecx + 0x54]
cmp edx, dword [esp + ecx + 0x64]
jne 0x420127
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x4200d0
mov esi, 8
cmp dword [esp + 0x34], esi
jb 0x4200fd
mov eax, dword [esp + 0x20]
push eax
call fcn.0044b6e3
add esp, 4
xor ecx, ecx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], cx
cmp dword [esp + 0x50], esi
jb 0x420123
mov edx, dword [esp + 0x3c]
push edx
call fcn.0044b6e3
add esp, 4
xor eax, eax
jmp 0x42018f
lea esi, [esp + 0x1c]
call fcn.00402290
lea esi, [esp + 0x38]
call fcn.00402290
jmp 0x42018a
cmp eax, ebp
jb 0x42014c
cmp eax, ebp
jne 0x4200e5
cmp ecx, dword [esp + 0x8c]
jae 0x4200e5
mov esi, 8
cmp dword [esp + 0x34], esi
jb 0x420164
mov eax, dword [esp + 0x20]
push eax
call fcn.0044b6e3
add esp, 4
xor ecx, ecx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], cx
cmp dword [esp + 0x50], esi
jb 0x42018a
mov edx, dword [esp + 0x3c]
push edx
call fcn.0044b6e3
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0044b6ee
add esp, 0x74
ret 8
Function at 0x4201b0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x224
mov eax, dword [0x4832f0]
xor eax, esp
mov dword [esp + 0x21c], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.0044e9d0
push esi
lea edx, [esp + 0x20]
push str._sVersion
push edx
mov ecx, 0x104
call fcn.00402ee0
add esp, 0x18
test eax, eax
jl 0x420260
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetServices360bpsvc
push 0x80000002
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x420260
mov ecx, dword [esp + 0x22c]
mov edx, dword [esp + 0x228]
push 8
lea eax, [esp + 0xc]
push eax
push 3
mov dword [esp + 0x14], ecx
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0044b6ee
add esp, 0x224
ret 8
Function at 0x420280
Capabilities:
Delete file
Delete registry key
Delete service

Disassembly:
sub esp, 0x218
mov eax, dword [0x4832f0]
xor eax, esp
mov dword [esp + 0x214], eax
push ebp
mov ebp, dword [esp + 0x220]
mov dword [esp + 4], 1
test ebp, ebp
jne 0x4202c2
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0044b6ee
add esp, 0x218
ret 8
push ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x4202e5
mov dword [esp + 8], eax
jmp 0x4203cb
push esi
push edi
push 0xf01ff
lea edi, [ebp + 0x208]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4203e8
push 0x206
push eax
lea ecx, [esp + 0x26]
push ecx
mov word [esp + 0x28], ax
call fcn.0044e9d0
push edi
lea edx, [esp + 0x2c]
push str.SystemCurrentControlSetServices_s
push edx
mov ecx, 0x104
call fcn.00402ee0
add esp, 0x18
test eax, eax
je 0x42033e
mov dword [esp + 0x10], esi
jmp 0x4203c2
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x28]
push ecx
push 0x80000002
call esi
test eax, eax
jne 0x4203a0
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebx
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
push str.SystemCurrentControlSetServices
push 0x80000002
call esi
test eax, eax
jne 0x42039c
mov ecx, dword [esp + 0x14]
push edi
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edx, dword [esp + 0x14]
push edx
call ebx
mov ebx, dword [esp + 0x18]
cmp dword [esp + 0x230], 0
je 0x4203c2
add ebp, 0x618
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4203c2
mov ecx, ebp
call fcn.004214b0
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov ecx, dword [esp + 0x21c]
mov eax, dword [esp + 8]
pop ebx
pop ebp
xor ecx, esp
call fcn.0044b6ee
add esp, 0x218
ret 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x42040c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
je 0x42040c
mov dword [esp + 0x10], 0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4203a0

Function at 0x420690
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebp
push esi
push edi
mov edi, eax
lea esi, [edi + 0x410]
push esi
mov ebp, 1
call ebx
test eax, eax
je 0x4206c8
add edi, 0x618
push edi
call ebx
test eax, eax
jne 0x4206cf
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4206d3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
jmp 0x4206bc
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x4206e0
Capabilities:
Copy file
Delete file
Delete registry key
Get common file path

Disassembly:
sub esp, 0xa3c
mov eax, dword [0x4832f0]
xor eax, esp
mov dword [esp + 0xa34], eax
push esi
push edi
mov edi, ecx
xor eax, eax
test edi, edi
je 0x420924
push 0x206
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.0044e9d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea esi, [edi + 0x208]
push esi
lea edx, [esp + 0x18]
push str._s__04d
push edx
mov ecx, 0x104
call fcn.00402ee0
add esp, 0x10
test eax, eax
jge 0x42075c
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa34]
xor ecx, esp
call fcn.0044b6ee
add esp, 0xa3c
ret
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x83a]
push ecx
mov word [esp + 0x83c], ax
call fcn.0044e9d0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x436]
push eax
mov word [esp + 0x438], dx
call fcn.0044e9d0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x84c]
push str.SystemCurrentControlSetServices_s
push edx
mov ecx, 0x104
call fcn.00402ee0
add esp, 0x24
test eax, eax
jl 0x420743
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x424]
push str.RegistryMachineSystemCurrentControlSetServices_s
push ecx
mov ecx, 0x104
call fcn.00402ee0
add esp, 0xc
test eax, eax
jl 0x420743
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x632]
push eax
mov word [esp + 0x634], dx
call fcn.0044e9d0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x62c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x420743
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x222]
push eax
mov word [esp + 0x224], dx
call fcn.0044e9d0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x638]
push edx
lea eax, [esp + 0x22c]
push str._sdrivers_s.sys
push eax
mov ecx, 0x104
call fcn.00402ee0
add esp, 0x1c
test eax, eax
jl 0x420743
push 0
lea ecx, [esp + 0x21c]
push ecx
lea edx, [edi + 0x618]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x420743
push edi
lea ecx, [esp + 0x14]
call fcn.00420f10
xor eax, eax
mov dword [esp + 0xa], eax
mov word [esp + 0xe], ax
lea eax, [esp + 0x420]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4208a5
sub eax, edx
sar eax, 1
add eax, eax
mov word [esp + 8], ax
lea eax, [esp + 8]
mov ecx, 0x208
lea edx, [esp + 0x420]
push eax
mov word [esp + 0xe], cx
mov dword [esp + 0x10], edx
call dword [0x4dbc28]
lea ecx, [esp + 0x830]
push ecx
push 0x80000002
mov edi, eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea edx, [esp + 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42090e
lea ecx, [esp + 0x218]
call fcn.004214b0
test edi, edi
jl 0x420743
lea edi, [esp + 0x10]
call fcn.00420ad0
mov eax, 1
mov ecx, dword [esp + 0xa3c]
pop edi
pop esi
xor ecx, esp
call fcn.0044b6ee
add esp, 0xa3c
ret
Function at 0x420940
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x62c
mov eax, dword [0x4832f0]
xor eax, esp
mov dword [esp + 0x628], eax
push ebx
mov ebx, dword [esp + 0x634]
push esi
xor eax, eax
push edi
test ebx, ebx
je 0x420ab6
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.0044e9d0
lea esi, [ebx + 0x208]
add esp, 0xc
lea edi, [esp + 0x18]
mov ecx, esi
call fcn.00420bc0
test eax, eax
je 0x4209a4
xor edx, edx
cmp eax, 2
sete dl
mov eax, edx
jmp 0x420ab6
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x432]
push ecx
mov word [esp + 0x434], ax
call fcn.0044e9d0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x236]
push eax
mov word [esp + 0x238], dx
call fcn.0044e9d0
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x444]
push str.SystemCurrentControlSetServices_s
push edx
mov ecx, 0x104
call fcn.00402ee0
add esp, 0x24
test eax, eax
jge 0x420a08
xor eax, eax
jmp 0x420ab6
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x224]
push str.RegistryMachineSystemCurrentControlSetServices_s
push ecx
mov ecx, 0x104
call fcn.00402ee0
add esp, 0xc
test eax, eax
jl 0x420a01
push ebx
lea ecx, [esp + 0x1c]
call fcn.00420f10
xor eax, eax
mov dword [esp + 0x12], eax
mov word [esp + 0x16], ax
lea eax, [esp + 0x220]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420a50
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
mov word [esp + 0x10], dx
lea edx, [esp + 0x10]
mov eax, 0x208
lea ecx, [esp + 0x220]
push edx
mov word [esp + 0x16], ax
mov dword [esp + 0x18], ecx
call dword [0x4dbc24]
mov edi, eax
lea eax, [esp + 0x428]
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test edi, edi
jge 0x420aac
cmp edi, 0xc0000034
jne 0x420a01
call fcn.00420cc0
mov eax, 1
mov ecx, dword [esp + 0x634]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044b6ee
add esp, 0x62c
ret 4

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

Disassembly:
sub esp, 0x210
mov eax, dword [0x4832f0]
xor eax, esp
mov dword [esp + 0x20c], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.0044e9d0
push esi
lea edx, [esp + 0x14]
push str._s_SavedBase
push edx
mov ecx, 0x104
call fcn.00402ee0
add esp, 0x18
test eax, eax
jl 0x420b76
lea eax, [esp]
push eax
push 2
push 0
push str.SYSTEMCurrentControlSetServices360bpsvc
push 0x80000002
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420b76
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420b40
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [esp]
push ecx
push edi
push 1
push 0
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x420b8d
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0044b6ee
add esp, 0x210
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20c]
xor ecx, esp
mov eax, 1
call fcn.0044b6ee
add esp, 0x210
ret
Function at 0x420bc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x4832f0]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.0044e9d0
push esi
lea edx, [esp + 0x20]
push str._s_SavedBase
push edx
mov ecx, 0x104
call fcn.00402ee0
add esp, 0x18
test eax, eax
jge 0x420c25
mov eax, 0x6f
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0044b6ee
add esp, 0x218
ret
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetServices360bpsvc
push 0x80000002
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420ca8
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 8]
push edi
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x420ca6
cmp dword [esp + 8], 1
jne 0x420ca6
xor eax, eax
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0044b6ee
add esp, 0x218
ret
mov eax, esi
mov ecx, dword [esp + 0x218]
pop esi
xor ecx, esp
call fcn.0044b6ee
add esp, 0x218
ret

Function at 0x420cc0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x4832f0]
xor eax, esp
mov dword [esp + 0x20c], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.0044e9d0
push esi
lea edx, [esp + 0x14]
push str._s_SavedBase
push edx
mov ecx, 0x104
call fcn.00402ee0
add esp, 0x18
test eax, eax
jl 0x420d5b
lea eax, [esp]
push eax
push 3
push 0
push str.SYSTEMCurrentControlSetServices360bpsvc
push 0x80000002
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420d5b
mov edx, dword [esp]
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420d51
mov ecx, dword [esp]
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0044b6ee
add esp, 0x210
ret
Function at 0x420d70
Capabilities:
Create service
Modify service
Start service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
mov dword [esp + 0x10], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
jne 0x420d92
pop ebp
pop ecx
ret
push ebx
push esi
push 0xf01ff
lea ebx, [edi + 0x208]
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x420e75
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x420e5d
push esi
push 0x40000080
push 3
push esi
push 7
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x420dfd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
xor ecx, ecx
call fcn.00420f10
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0xc]
pop esi
pop ebx
pop ebp
pop ecx
ret
mov ecx, dword [edi + 0xc38]
mov edx, dword [edi + 0xc30]
push 0
push 0
push 0
push 0
push 0
lea eax, [edi + 0x618]
push eax
mov eax, dword [edi + 0xc34]
push ecx
push edx
push eax
push 0xf003f
lea ecx, [edi + 0x820]
push ecx
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x420e75
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x420e5d
push 0xf01ff
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x420e75
push ebp
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0xc]
pop esi
pop ebx
pop ebp
pop ecx
ret
push edi
xor ecx, ecx
call fcn.00420f10
test esi, esi
je 0x420ef6
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x420eca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
jne 0x420ec6
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 1
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [esp + 0xc], eax
mov ebx, eax
test ebx, ebx
je 0x420eef
push 0
push 0x40000080
push 3
push 0
push 7
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x420eef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0xc]
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x421280
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x4832f0]
xor eax, esp
mov dword [esp + 0x20c], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.0044e9d0
push esi
lea edx, [esp + 0x14]
push str.SystemCurrentControlSetServices_s
push edx
mov ecx, 0x104
call fcn.00402ee0
add esp, 0x18
test eax, eax
jge 0x4212e0
xor eax, eax
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0044b6ee
add esp, 0x210
ret 4
push 0
lea eax, [esp + 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42132f
push 4
lea edx, [esp + 0x218]
push edx
push 4
push eax
mov eax, dword [esp + 0x10]
push str.Type
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20c]
xor ecx, esp
mov eax, 1
call fcn.0044b6ee
add esp, 0x210
ret 4

Function at 0x421350
Capabilities:
Check os version
Get common file path
Set registry value

Disassembly:
sub esp, 0x334
mov eax, dword [0x4832f0]
xor eax, esp
mov dword [esp + 0x330], eax
push ebx
mov ebx, dword [esp + 0x33c]
push 0x11c
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x10], 1
call fcn.0044e9d0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x421487
cmp dword [esp + 0x14], 5
jne 0x421487
cmp dword [esp + 0x18], 1
jne 0x421487
push 0x104
lea edx, [esp + 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x421487
push esi
mov ecx, 0x104
lea eax, [esp + 0x130]
xor esi, esi
cmp word [eax], si
je 0x4213f2
add eax, 2
sub ecx, 1
jne 0x4213e3
jmp 0x4213fa
test ecx, ecx
jne 0x42149f
mov esi, 0x80070057
xor edx, edx
mov eax, esi
test esi, esi
pop esi
jl 0x421425
push 0x7fffffff
mov ecx, 0x104
sub ecx, edx
push str._ntoskrnl.exe
lea edx, [esp + edx*2 + 0x134]
call fcn.00402f40
test eax, eax
jne 0x421487
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x134]
push edx
call fcn.00421940
add esp, 0xc
test eax, eax
je 0x421487
cmp dword [esp + 8], 0x50001
jne 0x421487
mov eax, dword [esp + 0xc]
mov ecx, eax
and ecx, 0xffff0000
cmp ecx, 0xa280000
jne 0x421487
movzx edx, ax
cmp edx, 0xc35
jb 0x421487
push 4
lea eax, [esp + 8]
push eax
push 4
push 0
push str.CompFlag
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x334]
pop ebx
xor ecx, esp
call fcn.0044b6ee
add esp, 0x334
ret 4
mov edx, 0x104
sub edx, ecx
jmp 0x421401
Function at 0x4214b0
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x218
mov eax, dword [0x4832f0]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
xor eax, eax
push 0x210
mov esi, ecx
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.0044e9d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0044dc6d
call fcn.0044dc7f
cdq
mov ecx, 0x3e8
idiv ecx
mov ecx, 0x104
push edx
push esi
lea edx, [esp + 0x10]
push str._s._03d
push edx
call fcn.00402ee0
add esp, 0x14
push 1
lea eax, [esp + 8]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
push 4
push 0
lea ecx, [esp + 0xc]
push ecx
call esi
mov ecx, dword [esp + 0x218]
pop esi
xor ecx, esp
call fcn.0044b6ee
add esp, 0x218
ret

Function at 0x421940
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push esi
lea eax, [esp + 0xc]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x421960
pop esi
pop ebx
add esp, 0xc
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push esi
push 8
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x421982
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
mov esi, eax
test esi, esi
je 0x4219c3
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x4743d0
push edi
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
test esi, esi
je 0x4219c3
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x24]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
push edi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret