joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d7c0
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x41d7ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_failed__error_d
call fcn.00414b10
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41d7e7
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41d815
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41d7d2
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x41f390
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
lea ecx, [ebp - 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
je 0x41f3e4
push 0x2021f
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call fcn.0040ce20
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
test eax, eax
jne 0x41f3dd
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x2021f
jmp 0x41f40f
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call fcn.0040ce20
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
test eax, eax
jne 0x41f40a
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.0040ce20
mov edi, dword [ebp - 0xc]
test eax, eax
jne 0x41f445
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x41f452
push edi
call ebx
test esi, esi
je 0x41f459
push esi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x421170
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4e43e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x420], eax
push esi
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x42130c
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x42130b
push 0x208
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], 0
push 0
push eax
call fcn.004421e0
add esp, 0xc
mov dword [ebp - 0x41c], 0x208
cmp dword [ebp + 0xc], 0
lea eax, [ebp - 0x418]
push eax
push 0xf003f
push 0
je 0x4211ef
push str.Softwareludashi_file_list
jmp 0x4211f4
push str.SoftwareLdsLite_file_list
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4212ff
push ebx
xor ebx, ebx
lea eax, [ebp - 0x424]
push ebx
push ebx
push eax
push ebx
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4212fe
nop word [eax + eax]
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x41c], 0x208
push 0
push eax
inc ebx
call fcn.004421e0
push dword [ebp - 0x420]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046a4ef
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x4212ce
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x4212ce
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
lea eax, [ebp - 0x20c]
push esi
push eax
je 0x4212c6
call fcn.00424290
jmp 0x4212cb
call fcn.00423e50
add esp, 8
push 0
push 0
lea eax, [ebp - 0x424]
push eax
push 0
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x421240
pop ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042a265
mov esp, ebp
pop ebp
ret
Function at 0x421520
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5e58
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4e43e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42156b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4215bf
call fcn.0040c470
test eax, eax
jns 0x4215c4
xor esi, esi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4215ab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, eax
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, 0xffffffff
jne 0x4215e5
call fcn.0040c470
test eax, eax
js 0x42159b
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
test eax, eax
jb 0x42159b
ja 0x42159b
test ebx, ebx
je 0x42159b
test eax, eax
ja 0x42159b
jb 0x421600
cmp ebx, 0x500000
jae 0x42159b
mov edx, dword [edi + 0x10]
cmp ebx, edx
ja 0x42161a
mov dword [edi + 0x10], ebx
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x421614
mov eax, dword [edi]
mov byte [eax + ebx], 0
jmp 0x421667
mov eax, dword [edi + 0x14]
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x10], eax
sub eax, edx
mov dword [ebp - 0x14], ecx
cmp ecx, eax
ja 0x421655
cmp dword [ebp - 0x10], 0x10
mov eax, edi
mov dword [edi + 0x10], ebx
jb 0x42163a
mov eax, dword [edi]
push ecx
lea esi, [eax + edx]
push 0
push esi
call fcn.004421e0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov byte [esi + eax], 0
mov esi, dword [ebp - 0x20]
jmp 0x421667
push 0
push ecx
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
push ecx
mov ecx, edi
call fcn.004200e0
cmp dword [edi + 0x14], 0x10
jb 0x42166f
mov edi, dword [edi]
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42169a
call fcn.0040c470
mov esi, eax
not esi
shr esi, 0x1f
jmp 0x42159d
xor esi, esi
mov eax, 0x80070026
cmp dword [ebp - 0x10], ebx
cmovne esi, eax
not esi
shr esi, 0x1f
jmp 0x42159d
Function at 0x421b90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5ee2
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4e43e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], 0
call fcn.004421e0
add esp, 0xc
mov dword [ebp - 0x220], 1
mov ecx, esi
mov dword [ebp - 0x21c], 0x104
call fcn.00409950
cmp dword [ebp + 0xc], 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], 1
push eax
push str.VendorID
je 0x421c38
push str.SOFTWARELuDaShi
jmp 0x421c3d
push str.SOFTWARELdsLite
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421c51
sub ecx, edx
sar ecx, 1
je 0x421cc3
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00404a50
mov ecx, esi
call fcn.00424840
mov ecx, esi
call fcn.00424790
mov eax, dword [esi]
mov ecx, 0x4c240c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421cac
test dx, dx
je 0x421ca8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421cac
add eax, 4
add ecx, 4
test dx, dx
jne 0x421c86
xor eax, eax
jmp 0x421cb1
sbb eax, eax
or eax, 1
test eax, eax
jne 0x421cc3
push 7
push str.ludashi
mov ecx, esi
call fcn.00404a50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a265
mov esp, ebp
pop ebp
ret
Function at 0x422ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422f41
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x422f0f
cmp eax, 2
jne 0x422f2b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x422f3b
test ecx, ecx
je 0x422f36
test cl, 1
jne 0x422f2b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x422f3b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x423a70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2858
call fcn.0042a280
mov eax, dword [0x4e43e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x804]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0x800
push 0
push eax
call fcn.004421e0
add esp, 0xc
cmp dword [ebp + 0x24], 0
je 0x423b2c
xor eax, eax
mov word [ebp - 0x804], ax
test esi, esi
je 0x423b5d
push 0x1000
push eax
lea eax, [ebp - 0x1804]
push eax
call fcn.004421e0
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x423b15
push 0x800
lea eax, [ebp - 0x1804]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x1804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
lea eax, [ebp - 0x1804]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea esi, [ebp - 0x1804]
push 0x400
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.0046b19d
add esp, 0xc
jmp 0x423b44
lea ecx, [ebp - 0x804]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x423b34
cmp dword [ebp + 0x20], 0
je 0x423b70
lea eax, [ebp - 0x804]
push eax
call fcn.00429340
add esp, 4
test eax, eax
jne 0x423b70
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a265
mov esp, ebp
pop ebp
ret
push 0x44
lea eax, [ebp - 0x2858]
push 0
push eax
call fcn.004421e0
add esp, 0xc
mov dword [ebp - 0x2858], 0x44
lea eax, [ebp - 0x2858]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ax, word [ebp + 0x14]
xorps xmm0, xmm0
push 0x1000
mov word [ebp - 0x2828], ax
lea eax, [ebp - 0x2804]
push 0
push eax
mov dword [ebp - 0x282c], 1
movups xmmword [ebp - 0x2814], xmm0
call fcn.004421e0
add esp, 0xc
lea eax, [ebp - 0x804]
test edi, edi
je 0x423bf1
push edi
push eax
lea eax, [ebp - 0x2804]
push str.__s___s
push eax
call fcn.00414ee0
add esp, 0x10
jmp 0x423c06
push eax
lea eax, [ebp - 0x2804]
push str.__s_
push eax
call fcn.00414ee0
add esp, 0xc
lea eax, [ebp - 0x2814]
push eax
lea eax, [ebp - 0x2858]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x423c74
cmp dword [ebp + 0x18], 0
je 0x423c4a
push dword [ebp + 0x1c]
push dword [ebp - 0x2814]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x423c5e
push eax
push dword [ebp - 0x2814]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x2810]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2814]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a265
mov esp, ebp
pop ebp
ret
Function at 0x423e50
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6108
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4e43e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x423ecb
test al, 0x10
je 0x423ecb
push esi
mov edi, 1
call fcn.0041d000
add esp, 4
test eax, eax
jne 0x423eee
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x423eee
push esi
test edi, edi
jne 0x423ee6
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x423eee
push esi
push str.DeleteFile:_s_suceesss
call fcn.00414b10
add esp, 8
jmp 0x423eee
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x423e9c
push esi
push str.DeleteFile:_s_suceesss
call fcn.00414b10
add esp, 8
jmp 0x423eee
call fcn.0041d000
add esp, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x423f6f
push esi
lea ecx, [ebp - 0x10]
call fcn.00406da0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov edi, dword [esi + 4]
cmp dword [esi + 8], edi
je 0x423f2e
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.004073b0
add eax, 0x10
add esp, 4
mov dword [edi], eax
add dword [esi + 4], 4
jmp 0x423f3a
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
push edi
call fcn.00413250
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x423f5c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x426190
Capabilities:
Check os version

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x4e43e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x4e43d8]
test ecx, ecx
js 0x4261d8
xor eax, eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a265
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x11c
xorps xmm0, xmm0
mov dword [0x4e43d8], 0
lea eax, [ebp - 0x128]
movaps xmmword [ebp - 0x160], xmm0
push 0
push eax
movaps xmmword [ebp - 0x150], xmm0
mov dword [ebp - 0x140], 0
call fcn.004421e0
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x426249
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4262a0
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4262a0
lea ecx, [ebp - 0x160]
push ecx
call eax
mov ax, word [ebp - 0x160]
cmp ax, 9
je 0x426280
cmp ax, 6
jne 0x4262a0
mov dword [0x4e43d8], 1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a265
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042a265
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x426a20
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1318
call fcn.0042a280
mov eax, dword [0x4e43e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x800
mov dword [ebp - 0x1318], eax
lea eax, [ebp - 0x1304]
push 0
push eax
call fcn.004421e0
push 0x800
lea eax, [ebp - 0xb04]
push 0
push eax
call fcn.004421e0
add esp, 0x18
lea eax, [ebp - 0x1304]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004421e0
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x1314]
push eax
movups xmmword [ebp - 0x1314], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x200
lea eax, [ebp - 0x304]
push 0
push eax
call fcn.004421e0
movzx eax, byte [ebp - 0x1305]
push eax
movzx eax, byte [ebp - 0x1306]
push eax
movzx eax, byte [ebp - 0x1307]
push eax
movzx eax, byte [ebp - 0x1308]
push eax
movzx eax, byte [ebp - 0x1309]
push eax
movzx eax, byte [ebp - 0x130a]
push eax
movzx eax, byte [ebp - 0x130b]
push eax
movzx eax, byte [ebp - 0x130c]
push eax
movzx eax, word [ebp - 0x130e]
push eax
movzx eax, word [ebp - 0x1310]
push eax
push dword [ebp - 0x1314]
lea eax, [ebp - 0x304]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call fcn.00418860
lea eax, [ebp - 0x304]
add esp, 0x40
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x426b50
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.0046a6eb
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x1304]
push eax
lea eax, [ebp - 0xb04]
push eax
call edi
push str..tmp
lea eax, [ebp - 0xb04]
push 0x400
push eax
call fcn.0046e612
add esp, 0xc
lea eax, [ebp - 0xb04]
push eax
call ebx
test eax, eax
je 0x426bd5
inc esi
cmp esi, 0xa
jl 0x426aa2
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a265
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0xb04]
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x426be0
mov ecx, dword [ebp - 0x1318]
lea eax, [ebp - 0xb04]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.00404a50
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a265
mov esp, ebp
pop ebp
ret
Function at 0x426c60
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0042a280
mov eax, dword [0x4e43e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x426cbb
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a265
mov esp, ebp
pop ebp
ret 4
mov esi, dword [edi + 4]
test esi, esi
je 0x426d8c
mov ecx, dword [edi + 8]
test ecx, ecx
jle 0x426d8c
mov eax, ecx
cdq
and edx, 0xfff
add eax, edx
sar eax, 0xc
mov dword [ebp - 0x1010], eax
and ecx, 0x80000fff
jns 0x426cf5
dec ecx
or ecx, 0xfffff000
inc ecx
xor edi, edi
mov dword [ebp - 0x100c], ecx
mov dword [ebp - 0x1008], 0
test eax, eax
jle 0x426d5a
nop dword [eax + eax]
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00441c60
add esp, 0xc
lea eax, [ebp - 0x1008]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x426d8c
inc edi
add esi, 0x1000
cmp edi, dword [ebp - 0x1010]
jl 0x426d10
mov ecx, dword [ebp - 0x100c]
test ecx, ecx
jle 0x426d8c
push ecx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00441c60
add esp, 0xc
lea eax, [ebp - 0x1008]
push 0
push eax
push dword [ebp - 0x100c]
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a265
mov esp, ebp
pop ebp
ret 4
Function at 0x4273e0
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x4e43e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x4274a1
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004421e0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x42748b
push edi
push 0x104
lea edi, [ebx + 4]
push 0
push edi
call fcn.004421e0
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push 0x4c3bf8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str..bat
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
pop edi
cmp dword [ebx], 0
jne 0x4274a1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a265
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.004421e0
add esp, 0xc
mov dword [ebp - 0x314], 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push 0x207
push eax
call fcn.004037c0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0045ce08
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x427501
cmp eax, 0x207
ja 0x427501
jne 0x427508
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427511
push 0
lea eax, [ebp - 0x314]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042a265
mov esp, ebp
pop ebp
ret

Function at 0x427a40
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x427a61
mov eax, 0x80004003
pop esi
pop ebp
ret
push ebx
push edi
push 0xf01ff
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x427a8b
push esi
mov ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
neg eax
push edi
sbb ebx, ebx
and ebx, 0x7fffbffb
add ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret