joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fc80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x1a]
push ecx
xor edi, edi
mov word [esp + 0x1c], ax
call fcn.00476ef0
add esp, 0xc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x4a648c
push str.SOFTWARE360SafeLiveUp
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41fd29
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41fcf3
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x14]
push edx
call fcn.00402bd0
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00471eba
add esp, 0x214
ret
mov ecx, dword [esp + 0x218]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00471eba
add esp, 0x214
ret

Function at 0x41fd50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x1a]
push ecx
xor edi, edi
mov word [esp + 0x1c], ax
call fcn.00476ef0
add esp, 0xc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push str.mid_old
push str.SOFTWARE360SafeLiveUp
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41fdf9
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41fdc3
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x14]
push edx
call fcn.00402bd0
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00471eba
add esp, 0x214
ret
mov ecx, dword [esp + 0x218]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00471eba
add esp, 0x214
ret

Function at 0x41fe30
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 2
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x41fea3
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41fe9c
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push str.ZhuDongFangYu.exe
lea ecx, [esp + 0x34]
push ecx
call edi
test eax, eax
je 0x41fe96
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41fe75
jmp 0x41fe9b
mov ebx, 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00471eba
add esp, 0x230
ret
Function at 0x41ff00
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a]
push ecx
xor esi, esi
mov word [esp + 0x1c], ax
call fcn.00476ef0
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0x208
mov dword [esp + 0x20], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41ffbf
cmp word [esp + 0x10], si
je 0x41ffbf
push 0x4a74a4
lea edx, [esp + 0x14]
push edx
mov eax, edx
push 0x4a69f8
push eax
mov ecx, 0x104
call fcn.00404a10
add esp, 0x10
test eax, eax
jl 0x41ffbf
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41ffbf
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00471eba
add esp, 0x218
ret
mov ecx, str.ZhuDongFangYu
call fcn.00425120
test eax, eax
je 0x41ffe8
mov eax, 1
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00471eba
add esp, 0x218
ret
push edi
push 0
call fcn.004722af
mov ecx, dword [0x5185d8]
add esp, 4
xor edi, edi
sub eax, ecx
sbb edx, edi
mov dword [esp + 0x10], edx
pop edi
js 0x420028
jg 0x42000f
cmp eax, 0xe10
jbe 0x420028
call fcn.0041fe30
push 0
mov dword [0x5185dc], eax
call fcn.004722af
add esp, 4
mov dword [0x5185d8], eax
mov eax, 1
cmp dword [0x5185dc], esi
jne 0x420037
mov eax, esi
mov ecx, dword [esp + 0x218]
pop esi
xor ecx, esp
call fcn.00471eba
add esp, 0x218
ret

Function at 0x420120
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 2
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x420193
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x42018c
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push str.explorer.exe
lea ecx, [esp + 0x34]
push ecx
call edi
test eax, eax
je 0x420186
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x420165
jmp 0x42018b
mov ebx, 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00471eba
add esp, 0x230
ret
Function at 0x4201b0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x238
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push 2
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x42024e
lea ecx, [esp + 0x10]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x42024e
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea edx, [esp + 0x34]
push str.explorer.exe
push edx
call fcn.0047221c
add esp, 8
test eax, eax
jne 0x42022c
mov eax, dword [esp + 0x18]
push eax
push 0
push 0x1fffff
call ebx
mov esi, eax
test esi, esi
jne 0x42023e
lea ecx, [esp + 0x10]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x420202
jmp 0x42024e
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x420260
call fcn.00420080
jmp 0x420262
mov eax, ebp
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00471eba
add esp, 0x238
ret

Function at 0x420280
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x18
lea eax, [esp]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x42029e
xor eax, eax
add esp, 0x18
ret
mov ecx, dword [esp]
mov edx, dword [esp + 4]
push 0
push 0
push 0x10
lea eax, [esp + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x28]
push eax
mov dword [esp + 0x20], edx
mov edx, dword [ecx]
push 0
push edx
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x420298
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x514
setne cl
mov eax, ecx
add esp, 0x18
ret
Function at 0x420300
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x499728
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x84], edi
push 0x40
lea eax, [esp + 0x34]
push edi
push eax
xor ebx, ebx
call fcn.00476ef0
mov ecx, dword [esp + 0xb4]
xor eax, eax
add esp, 0xc
push ecx
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x38], str.Winsta0default
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], edi
call fcn.0040f530
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
add esp, 4
cmp esi, edi
je 0x42046d
cmp dword [esp + 0xac], edi
je 0x4203f1
lea edx, [esp + 0x14]
push edx
push 1
push 1
push edi
push 0x2000000
push esi
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4203bc
lea eax, [esp + 0x14]
push eax
call fcn.00420280
add esp, 4
cmp eax, edi
jne 0x4203f1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x84], 0xffffffff
cmp dword [esp + 0xa4], 8
jb 0x4203e8
mov ecx, dword [esp + 0x90]
push ecx
call fcn.00471eaf
add esp, 4
xor edx, edx
xor eax, eax
jmp 0x4204a8
mov eax, dword [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
cmp eax, edi
je 0x42046d
mov ecx, dword [esp + 0x18]
cmp ecx, edi
je 0x42046d
cmp dword [esp + 0xa4], 8
mov eax, dword [esp + 0x90]
jae 0x42042a
lea eax, [esp + 0x90]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x30]
push edx
push edi
push ecx
push 0x8000420
push edi
push edi
push edi
push eax
mov eax, dword [esp + 0x38]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp eax, edi
je 0x420462
mov ecx, dword [esp + 0x1c]
push ecx
mov ebx, 1
call ebp
mov edx, dword [esp + 0x20]
push edx
call ebp
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x420478
push eax
call ebp
cmp esi, edi
je 0x42047f
push esi
call ebp
mov dword [esp + 0x84], 0xffffffff
cmp dword [esp + 0xa4], 8
jb 0x4204a4
mov ecx, dword [esp + 0x90]
push ecx
call fcn.00471eaf
add esp, 4
xor edx, edx
mov eax, ebx
mov word [esp + 0x90], dx
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], 7
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
Function at 0x4204e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4996f8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xa0]
xor edi, edi
mov dword [esp + 0x7c], edi
push 0x40
lea eax, [esp + 0x38]
push edi
push eax
xor ebp, ebp
call fcn.00476ef0
xor eax, eax
push 1
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x48], str.Winsta0default
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], edi
call fcn.0040f530
mov esi, eax
add esp, 0x10
cmp esi, edi
je 0x42068d
lea ecx, [esp + 0x14]
push ecx
push 1
push 1
push edi
push 0x2000000
push esi
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x420588
lea edx, [esp + 0x14]
push edx
call fcn.00420280
add esp, 4
cmp eax, edi
jne 0x4205c2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x7c], 0xffffffff
cmp dword [esp + 0x9c], 8
jb 0x4205b1
mov eax, dword [esp + 0x88]
push eax
call fcn.00471eaf
add esp, 4
xor ecx, ecx
mov word [esp + 0x88], cx
xor eax, eax
jmp 0x4206d3
mov edx, dword [esp + 0x14]
push edi
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
cmp eax, edi
je 0x42068d
mov ecx, dword [esp + 0x18]
cmp ecx, edi
je 0x42068d
cmp dword [esp + 0x9c], 8
mov eax, dword [esp + 0x88]
jae 0x420603
lea eax, [esp + 0x88]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x34]
push edx
push edi
push ecx
push 0x8000420
push edi
push edi
push edi
push eax
mov eax, dword [esp + 0x38]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp eax, edi
je 0x42067a
mov ecx, dword [esp + 0x1c]
push 0x3e8
push ecx
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
jne 0x420659
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebx], edi
jne 0x420659
mov ebp, 1
mov ecx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebx
mov edx, dword [esp + 0x20]
push edx
call ebx
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
jmp 0x420693
mov eax, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
jmp 0x420693
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x42069e
push eax
call ebx
cmp esi, edi
je 0x4206a5
push esi
call ebx
mov dword [esp + 0x7c], 0xffffffff
cmp dword [esp + 0x9c], 8
jb 0x4206c7
mov ecx, dword [esp + 0x88]
push ecx
call fcn.00471eaf
add esp, 4
xor edx, edx
mov word [esp + 0x88], dx
mov eax, ebp
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], 7
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
Function at 0x4207c0
Capabilities:
Check if file exists
Delete file
Download url
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x497ea0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push edi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x34], ebx
lea eax, [esp + 0xc]
push eax
mov edi, str.kittip.cab
lea ecx, [esp + 0x40]
call fcn.00402db0
add esp, 4
mov byte [esp + 0x34], 1
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push str.http:__dl.360safe.com_gf_KitTip_KitTip.cab
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov eax, dword [esp + 0x10]
mov edi, 8
cmp dword [esp + 0x24], edi
jae 0x420836
lea eax, [esp + 0x10]
push ebx
push ebx
push eax
push str.http:__dl.360safe.com_gf_KitTip_KitTip.cab
push ebx
call sub.urlmon.dll_URLDownloadToFileW
cmp eax, ebx
jne 0x4208ff
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x24], edi
jae 0x42085a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4208ff
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x54], edi
jae 0x420877
lea ecx, [esp + 0x40]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x24], edi
jae 0x420885
lea eax, [esp + 0x10]
push ecx
push 0x420700
push ebx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x24], edi
jae 0x4208a7
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x34], bl
cmp dword [esp + 0x24], edi
jb 0x4208c5
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00471eaf
add esp, 4
xor edx, edx
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebx
mov word [esp + 0x10], dx
mov dword [esp + 0x34], 0xffffffff
cmp dword [esp + 0x54], edi
jb 0x4208f3
mov eax, dword [esp + 0x40]
push eax
call fcn.00471eaf
add esp, 4
xor ecx, ecx
mov word [esp + 0x40], cx
lea eax, [ecx + 1]
jmp 0x42094d
mov byte [esp + 0x34], bl
cmp dword [esp + 0x24], edi
jb 0x420916
mov edx, dword [esp + 0x10]
push edx
call fcn.00471eaf
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebx
mov word [esp + 0x10], ax
mov dword [esp + 0x34], 0xffffffff
cmp dword [esp + 0x54], edi
jb 0x420944
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00471eaf
add esp, 4
xor edx, edx
mov word [esp + 0x40], dx
xor eax, eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 7
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00471eba
add esp, 0x2c
ret
Function at 0x420980
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x4a7660
push str.SYSTEMCurrentControlSetServices360bpsvc
mov esi, 4
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4209c9
mov eax, dword [esp + 4]
test eax, eax
jne 0x4209f9
push esi
lea eax, [esp + 8]
push eax
push esi
push 0x4a7660
push str.SYSTEMCurrentControlSetServices360bpsvc
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], 0x911cb4
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [esp + 4]
pop esi
add esp, 0xc
ret
Function at 0x421010
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49b6ee
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.00407e10
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 1
lea esi, [esp + 0xc]
call fcn.0044c720
test eax, eax
je 0x421080
test edi, edi
jne 0x421071
mov ecx, esi
push ecx
call fcn.0044c080
jmp 0x421080
cmp edi, 1
jne 0x421080
lea edx, [esp + 0xc]
push edx
call fcn.0044c7b0
mov dword [esp + 0x30], 0xffffffff
lea eax, [esp + 0xc]
push eax
call fcn.00421100
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret

Function at 0x4213b0
Capabilities:
Read file via mapping

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push 0
call fcn.004722af
push eax
call fcn.0047547d
call fcn.0047548f
mov esi, eax
shl esi, 0x10
call fcn.0047548f
or eax, esi
cdq
mov ecx, 0x1869f
idiv ecx
lea edi, [ebx + 4]
push edx
push 0x4a9d4c
push str.__s__d
call fcn.004052a0
mov edi, dword [edi]
add esp, 0x14
push edi
push ebp
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx + 8], eax
test eax, eax
je 0x421436
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 0xc], eax
test eax, eax
je 0x421436
pop edi
pop esi
mov dword [ebx + 0x10], ebp
pop ebp
mov eax, 1
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x422b60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x214
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [esp + 0x21c]
mov eax, dword [ebx]
test eax, eax
je 0x422c80
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add eax, 0x410
push eax
call ebp
cmp eax, 0xffffffff
je 0x422c7f
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
push ecx
mov word [esp + 0x20], ax
call fcn.00476ef0
mov ecx, dword [ebx]
add esp, 0xc
add ecx, 0x208
lea edi, [esp + 0x14]
call fcn.00423d40
pop edi
test eax, eax
jne 0x422c7f
mov ecx, 0x104
lea eax, [esp + 0x10]
lea esp, [esp]
cmp word [eax], 0
je 0x422bf3
add eax, 2
sub ecx, 1
jne 0x422be0
jmp 0x422c7f
test ecx, ecx
je 0x422c7f
mov eax, 0x104
sub eax, ecx
push SysReAllocString
mov ecx, 0x104
push str..sys
sub ecx, eax
lea edx, [esp + eax*2 + 0x18]
call fcn.00404a70
test eax, eax
jl 0x422c7f
push esi
mov esi, dword [ebx]
add esi, 0x208
call fcn.00423e40
mov edx, dword [ebx]
add edx, 0x618
push edx
call ebp
cmp eax, 0xffffffff
je 0x422c7e
mov edx, dword [ebx]
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
add edx, 0x618
push edx
call fcn.00424f50
add esp, 0xc
test eax, eax
je 0x422c7e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov esi, dword [ebx]
push eax
push ecx
add esi, 0x208
call fcn.00423320
pop esi
pop ebp
mov ecx, dword [esp + 0x214]
pop ebx
xor ecx, esp
call fcn.00471eba
add esp, 0x214
ret 4

Function at 0x422f40
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esi]
test eax, eax
jne 0x422f4c
mov eax, 2
ret
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add eax, 0x618
push eax
call edi
test eax, eax
jne 0x422f77
mov eax, dword [esi]
add eax, 0x410
push eax
call edi
neg eax
sbb eax, eax
and eax, 0x3ec
add eax, 2
pop edi
ret
mov edi, dword [esi]
add edi, 0x618
push 0x517930
call fcn.00405520
neg eax
sbb eax, eax
and eax, 0xfffffc12
add eax, 0x3ee
pop edi
ret
Function at 0x423320
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x224
mov eax, dword [0x4bd450]
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.00476ef0
push esi
lea edx, [esp + 0x20]
push str._sVersion
push edx
mov ecx, 0x104
call fcn.00404a10
add esp, 0x18
test eax, eax
jl 0x4233d0
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetServices360bpsvc
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4233d0
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.00471eba
add esp, 0x224
ret 8
Function at 0x4233f0
Capabilities:
Delete file
Delete registry key
Delete service
Stop service

Disassembly:
sub esp, 0x234
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
mov ebx, dword [esp + 0x23c]
mov dword [esp + 8], 1
test ebx, ebx
jne 0x423432
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00471eba
add esp, 0x234
ret 8
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x423455
mov dword [esp + 0xc], eax
jmp 0x42353b
push esi
push edi
push 0xf01ff
lea edi, [ebx + 0x208]
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x423558
push 0x206
push eax
lea ecx, [esp + 0x42]
push ecx
mov word [esp + 0x44], ax
call fcn.00476ef0
push edi
lea edx, [esp + 0x48]
push str.SystemCurrentControlSetServices_s
push edx
mov ecx, 0x104
call fcn.00404a10
add esp, 0x18
test eax, eax
je 0x4234ae
mov dword [esp + 0x14], esi
jmp 0x423532
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x44]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x423510
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SystemCurrentControlSetServices
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x42350c
mov ecx, dword [esp + 0x10]
push edi
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edx, dword [esp + 0x10]
push edx
call ebp
mov ebp, dword [esp + 0x18]
cmp dword [esp + 0x24c], 0
je 0x423532
add ebx, 0x618
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x423532
mov ecx, ebx
call fcn.00424810
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov ecx, dword [esp + 0x238]
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
xor ecx, esp
call fcn.00471eba
add esp, 0x234
ret 8
lea eax, [esp + 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x423586
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
je 0x423586
mov dword [esp + 0x14], 0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x423510

Function at 0x423810
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 0x423848
add edi, 0x618
push edi
call ebx
test eax, eax
jne 0x42384f
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x423853
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
jmp 0x42383c
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret