joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ae0
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movups xmm0, xmmword [0x424fc8]
push ebx
mov ebx, dword [ebp + 8]
mov ecx, 0x400
push esi
push edi
mov esi, 0x423fc8
movups xmmword [ebx], xmm0
lea edi, [ebx + 0x48]
movups xmm0, xmmword [0x424fd8]
movups xmmword [ebx + 0x10], xmm0
movups xmm0, xmmword [0x424fe8]
movups xmmword [ebx + 0x20], xmm0
movups xmm0, xmmword [0x424ff8]
movups xmmword [ebx + 0x30], xmm0
movq xmm0, qword [0x425008]
movq qword [ebx + 0x40], xmm0
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x38
xor esi, esi
xor edi, edi
mov dword [ebp - 8], ecx
nop
lea eax, [esi + 1]
cdq
idiv ecx
movzx eax, byte [esi + 0x4278c0]
shl eax, 8
movzx ecx, byte [edx + 0x4278c0]
or ecx, eax
lea eax, [esi + 2]
cdq
idiv dword [ebp - 8]
shl ecx, 8
movzx eax, byte [edx + 0x4278c0]
or ecx, eax
lea eax, [esi + 3]
cdq
idiv dword [ebp - 8]
shl ecx, 8
movzx eax, byte [edx + 0x4278c0]
or ecx, eax
lea eax, [esi + 4]
xor dword [ebx + edi*4], ecx
mov ecx, 0x38
cdq
inc edi
idiv ecx
mov esi, edx
cmp edi, 0x12
jl 0x401b40
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 8], 0
push ebx
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00401340
mov eax, dword [ebp - 4]
add esp, 4
mov dword [ebx + esi*4], eax
mov eax, dword [ebp - 8]
mov dword [ebx + esi*4 + 4], eax
add esi, 2
cmp esi, 0x12
jl 0x401ba5
lea esi, [ebx + 0x4c]
mov dword [ebp - 0xc], 4
mov edi, 0x80
push ebx
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00401340
mov eax, dword [ebp - 4]
add esp, 4
mov dword [esi - 4], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
add esi, 8
sub edi, 1
jne 0x401bd8
sub dword [ebp - 0xc], 1
jne 0x401bd3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401e00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1804
call fcn.0041d4e0
mov eax, dword [0x427004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push edx
movzx eax, cx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, 0x800
jae 0x401e94
test esi, esi
je 0x401e8c
lea eax, [ebp - 0x804]
test edi, edi
je 0x401e6c
push esi
push edi
push eax
call fcn.00406790
add esp, 0xc
jmp 0x401e8c
push 0x800
push 0
push eax
call fcn.00405fb0
add esp, 0xc
call fcn.0040bbb5
mov dword [eax], 0x16
call fcn.0040baf8
mov byte [ebp + esi - 0x804], 0
lea eax, [ebp - 0x1804]
mov edx, 0x800
push 0x800
push eax
lea ecx, [ebp - 0x804]
call fcn.00401040
lea eax, [ebp - 0x1804]
add esp, 8
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401ec0
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub eax, edx
push 0
push 0
push 0
push 0
sar eax, 1
push eax
lea eax, [ebp - 0x1804]
push eax
push 0
push 0xfde9
call esi
push 0
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x1804]
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404bab
mov esp, ebp
pop ebp
ret
Function at 0x403dd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
mov ecx, dword [ebp + 8]
push edi
mov edi, edx
xor edx, edx
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edx
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403df0
sub ecx, esi
mov dword [ebp - 0x10], ecx
mov ecx, edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403e01
sub ecx, esi
xor edi, edi
mov dword [ebp - 8], ecx
cmp byte [ebx], dl
je 0x403e3a
push dword [ebp - 0xc]
lea esi, [edi + ebx]
push esi
call fcn.00405a50
mov edx, dword [ebp - 4]
add esp, 8
mov ecx, dword [ebp - 8]
cmp eax, esi
jne 0x403e33
inc edx
dec edi
mov dword [ebp - 4], edx
add edi, ecx
inc edi
cmp byte [edi + ebx], 0
jne 0x403e13
mov eax, dword [ebp - 0x10]
sub eax, ecx
imul eax, edx
add eax, edi
push eax
call fcn.0040b8dd
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x403ebc
xor edx, edx
mov dword [ebp - 4], edx
cmp byte [ebx], dl
je 0x403eb1
mov edi, dword [ebp - 8]
push dword [ebp - 0xc]
lea esi, [eax + edx]
push ebx
call fcn.00405a50
add esp, 8
cmp eax, ebx
jne 0x403e94
mov eax, dword [ebp + 8]
sub esi, eax
nop dword [eax + eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [esi + eax - 1], cl
test cl, cl
jne 0x403e80
mov ecx, dword [ebp - 0x10]
mov eax, edi
jmp 0x403e9f
mov al, byte [ebx]
mov byte [esi], al
mov eax, 1
mov ecx, eax
mov edx, dword [ebp - 4]
add ebx, eax
mov eax, dword [ebp - 0x14]
add edx, ecx
mov dword [ebp - 4], edx
cmp byte [ebx], 0
jne 0x403e60
pop edi
pop esi
mov byte [eax + edx], 0
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.0040be83
int3
Function at 0x404610
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x113c
call fcn.0041d4e0
mov eax, dword [0x427004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x1134]
push edi
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push SysStringLen
mov dword [ebp - 0x1134], 0
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1138]
push eax
push 0
push 0
push 0
push str.CurrentVersion
push dword [ebp - 0x1134]
call edi
lea eax, [ebp - 0x1138]
push eax
lea eax, [ebp - 0x1130]
push eax
lea eax, [ebp - 0x113c]
push eax
push 0
push str.CurrentVersion
push dword [ebp - 0x1134]
call edi
push 0x64
lea eax, [ebp - 0x1130]
push eax
lea eax, [ebp - 0x68]
push 0x64
push eax
call fcn.00406dce
add esp, 0x10
mov dword [ebp - 0x1134], 0
lea eax, [ebp - 0x1134]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push SysStringLen
call esi
lea eax, [ebp - 0x1138]
push eax
push 0
push 0
push 0
push str.CurrentBuild
push dword [ebp - 0x1134]
call edi
lea eax, [ebp - 0x1138]
push eax
lea eax, [ebp - 0x1130]
push eax
lea eax, [ebp - 0x113c]
push eax
push 0
push str.CurrentBuild
push dword [ebp - 0x1134]
call edi
push 0x64
lea eax, [ebp - 0x1130]
push eax
lea eax, [ebp - 0x130]
push 0x64
push eax
call fcn.00406dce
add esp, 0x10
mov dword [ebp - 0x1134], 0
lea eax, [ebp - 0x1134]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push SysStringLen
call esi
lea eax, [ebp - 0x1138]
push eax
push 0
push 0
push 0
push 0x4255e4
push dword [ebp - 0x1134]
call edi
lea eax, [ebp - 0x1138]
push eax
lea eax, [ebp - 0x1130]
push eax
lea eax, [ebp - 0x113c]
push eax
push 0
push 0x4255e4
push dword [ebp - 0x1134]
call edi
push 0x64
lea eax, [ebp - 0x1130]
push eax
lea eax, [ebp - 0xcc]
push 0x64
push eax
call fcn.00406dce
add esp, 0x10
lea ecx, [ebp - 0x68]
mov eax, 0x4255f0
pop edi
pop esi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4047d0
test dl, dl
je 0x4047cc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4047d0
add ecx, 2
add eax, 2
test dl, dl
jne 0x4047b0
xor eax, eax
jmp 0x4047d5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40481a
push 0xa
lea eax, [ebp - 0xcc]
push str.Windows_10
push eax
call fcn.0040e870
add esp, 0xc
test eax, eax
jne 0x40481a
push 0x64
push 0x4250b5
lea eax, [ebp - 0x68]
push 0x64
push eax
call fcn.00406dce
push 0x64
push str.10.0
lea eax, [ebp - 0x68]
push 0x64
push eax
call fcn.00406dce
add esp, 0x20
lea eax, [ebp - 0x68]
push eax
push str.Windows_NT__s
push 0x3ff
push 0x400
push 0x42b658
call fcn.00401f90
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
call fcn.00404bab
mov esp, ebp
pop ebp
ret
Function at 0x404b00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x427004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push 0x40000002
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x404b98
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x404b98
nop dword [eax]
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x404b78
test dl, dl
je 0x404b74
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x404b78
add ecx, 2
add eax, 2
test dl, dl
jne 0x404b58
xor eax, eax
jmp 0x404b7d
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x130]
push eax
cmove esi, dword [ebp - 0x128]
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x404b50
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404bab
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1000
call fcn.004047e0
mov eax, dword [0x421b68]
push esi
test eax, eax
push edi
je 0x401078
cmp eax, 0xffffffff
je 0x401078
push ebx
lea ecx, [esp + 0xc]
push 0x1000
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edi, dword [esp + 0x1010]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x421b68]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop ebx
pop edi
pop esi
add esp, 0x1000
ret
mov edx, dword [str.InstWiz.log]
push 0x4200f4
push edx
call fcn.004047c8
mov esi, eax
add esp, 8
test esi, esi
jne 0x40109e
push 0x2a
push str.E:uSiii8.0InstWizDebug.cpp
call fcn.00401380
mov edx, dword [esp + 0x100c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push esi
dec ecx
push 1
push ecx
push edx
call fcn.0040465e
push esi
call fcn.004045e1
add esp, 0x14
pop edi
pop esi
add esp, 0x1000
ret
Function at 0x402210
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push esi
cmp eax, 5
push edi
ja case.default.0x402224
jmp dword [eax*4 + 0x402354]
mov byte [ebx], 0
jmp case.default.0x402224
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x420200
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.default.0x402224
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x420200
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.default.0x402224
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.inf_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.default.0x402224
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str._system32drivers_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.default.0x402224
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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
mov eax, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x402370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
call fcn.0041823f
mov ebx, dword [eax + 8]
mov eax, dword [esp + 0x114]
and eax, 0xffff
push 0xa
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edx, dword [esp + 0x11c]
lea ecx, [esp + 0xc]
mov edi, eax
mov eax, dword [esp + 0x118]
push ecx
push edx
push eax
call fcn.00402210
lea ecx, [esp + 0x18]
push 0x420218
push ecx
call fcn.004047c8
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4023ef
lea edx, [esp + 0xc]
push edx
push 0x420204
push 2
call fcn.00401280
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
add esp, 0x104
ret
push ebp
call fcn.0041823f
mov ebp, dword [eax + 0xc]
push esi
push 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.0040465e
push esi
call fcn.004045e1
add esp, 0x14
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x402430
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x11c
mov ecx, dword [esp + 0x124]
mov edx, dword [esp + 0x120]
push esi
lea eax, [esp + 0x1c]
push edi
push eax
push ecx
push edx
xor edi, edi
call fcn.00402210
xor eax, eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
lea edx, [esp + 0x1e]
mov dword [esp + 0x18], eax
push ecx
mov dword [esp + 0x20], eax
push edx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x22]
push eax
lea edx, [esp + 0x22]
push ecx
mov ecx, dword [esp + 0x14c]
lea eax, [esp + 0x24]
push edx
push eax
push str._hd__hd__hd__hd:_hd:_hd
push ecx
call fcn.00404c36
lea edx, [esp + 0x34]
push edx
call fcn.00402130
add esp, 0x30
lea eax, [esp + 0x18]
lea ecx, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push edi
push 0x80
push 4
push edi
push 1
lea edx, [esp + 0x34]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4024e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
add esp, 0x11c
ret
lea eax, [esp + 0x18]
lea ecx, [esp + 0x18]
push eax
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x402503
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x11c
ret

Function at 0x402520
Capabilities:
Copy file

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x208
lea eax, [esp + 0x104]
push eax
push ecx
push edx
call fcn.00402210
mov ecx, dword [esp + 0x224]
mov edx, dword [esp + 0x220]
lea eax, [esp + 0xc]
push eax
push ecx
push edx
call fcn.00402210
mov edx, dword [esp + 0x234]
add esp, 0x18
xor eax, eax
lea ecx, [esp]
test edx, edx
sete al
push eax
lea edx, [esp + 0x108]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40258d
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x208
ret
xor eax, eax
add esp, 0x208
ret
Function at 0x4025a0
Capabilities:
Create service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a940
push 0x404c74
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
push 2
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp ebx, esi
je 0x40264f
push esi
push esi
push esi
push esi
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edx, dword [ebp + 0x14]
push edx
push 1
push 0x30
mov edi, dword [ebp + 0xc]
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x40263c
push 0x30
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x40264f
lea eax, [ebp - 0x40]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40264f
test esi, esi
je 0x40264f
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x402658
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040267e
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4026a0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x244
lea eax, [esp]
push esi
push edi
mov edi, dword [esp + 0x250]
push eax
push ecx
push edi
call fcn.00402210
add esp, 0xc
lea edx, [esp + 0x10c]
lea eax, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4026e7
pop edi
or eax, eax
pop esi
add esp, 0x244
ret
push ebx
lea ecx, [esp + 0xc]
push ebp
lea edx, [esp + 0x140]
push ecx
push edx
push edi
call fcn.00402210
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [esp + 0x114]
push ecx
push esi
call ebp
test eax, eax
je 0x40274d
lea edx, [esp + 0x10]
lea eax, [esp + 0x140]
push edx
push eax
push edi
call fcn.00402210
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0x114]
push edx
push esi
call ebp
test eax, eax
jne 0x402721
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x244
ret
Function at 0x402770
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a950
push 0x404c74
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
push 1
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x4027da
push 0x10000
mov eax, dword [ebp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, ebx
je 0x4027da
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4027e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040280b
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402830
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x108
push ebp
mov ebp, dword [esp + 0x114]
test ebp, ebp
je 0x402908
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x402908
mov ecx, dword [esp + 0x110]
lea eax, [esp + 4]
push eax
push 0x10008
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40290d
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x30], 0x100
call edi
mov esi, eax
cmp esi, 0x103
je 0x4028e0
test esi, esi
jne 0x4028f1
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00402830
mov esi, eax
add esp, 8
test esi, esi
je 0x402880
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x108
ret
mov ecx, dword [esp + 0x118]
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x108
ret
mov eax, 0x3f2
pop ebp
add esp, 0x108
ret

Function at 0x402f40
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x408
lea eax, [esp + 8]
push eax
push 0x400
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402fab
lea edx, [esp + 4]
lea eax, [esp]
push edx
push eax
lea ecx, [esp + 0x10]
push 0x420200
push ecx
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp]
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
mov edx, eax
and edx, 0xffff
shr eax, 0x10
push edx
push eax
mov eax, ecx
and eax, 0xffff
shr ecx, 0x10
push eax
push ecx
push 0x4203f4
push 0
call fcn.00401280
add esp, 0x18
xor eax, eax
add esp, 0x408
ret
Function at 0x402fc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x2d8
push ebx
push esi
lea eax, [esp + 0x10c]
push edi
push eax
mov dword [esp + 0x114], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x120], 2
jne 0x4030b7
cmp dword [esp + 0x114], 4
ja 0x4030b7
lea ecx, [esp + 0xc]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str._system32drivers
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x420448
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1a4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0xffffffff
je 0x40316c
push 0x420434
push str.___s
push 0
call fcn.00401280
lea edx, [esp + 0x18]
push edx
call fcn.00402f40
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x2d8
ret
lea eax, [esp + 0xc]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str._system32drivers
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x420424
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1a4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0xffffffff
je 0x40316c
push 0x420434
push str.___s
push 0
call fcn.00401280
lea edx, [esp + 0x18]
push edx
call fcn.00402f40
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x2d8
ret
push 0x420410
push str.___s
push 0
call fcn.00401280
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x2d8
ret