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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433e49
mov eax, dword fs:[0]
push eax
mov eax, 0x1028
call fcn.00432160
mov eax, dword [0x449030]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax]
xor esi, esi
cmp edi, esi
mov dword [ebp - 0x1024], eax
mov ebx, ecx
jne 0x419c2d
xor eax, eax
jmp 0x419cfb
push 0xffe
lea eax, [ebp - 0x1012]
push esi
push eax
mov dword [ebp - 0x1018], esi
mov word [ebp - 0x1014], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp - 0x1014]
push eax
push esi
push edi
jmp 0x419ce0
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1020]
push eax
call fcn.00402fa8
mov dword [ebp - 4], esi
call fcn.0041a7d4
push eax
lea edi, [ebp - 0x1030]
call fcn.0041a7fe
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1020]
add eax, 0xfffffff0
call fcn.004050ec
inc dword [ebp - 0x1018]
push 0xffe
lea eax, [ebp - 0x1012]
push esi
push eax
mov word [ebp - 0x1014], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1024]
push dword [eax]
mov dword [ebp - 0x101c], 0x7fe
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x419c65
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042b7ea
leave
ret 4

Function at 0x41a112
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x434ed0
call fcn.0042bee2
push str.UninstallString
lea eax, [ebp - 0x14]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00402fa8
mov byte [ebp - 4], 1
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
push ecx
add ebx, 0xfffffff0
mov eax, ebx
mov dword [ebp - 0x18], esp
mov esi, esp
call fcn.00403dac
push dword [ebp + 0xc]
add eax, 0x10
push dword [ebp + 8]
mov dword [esi], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041a1d0
add esp, 0x14
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004050ec
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], edi
je 0x41a1cc
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
cmp dword [eax - 0xc], edi
jne 0x41a18e
lea eax, [ebp - 0x10]
mov edi, ecx
call fcn.0040302c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00419e92
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004050ec
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004050ec
mov eax, ebx
call fcn.004050ec
mov eax, esi
call fcn.0042bfba
ret
xor esi, esi
jmp 0x41a1b2
Function at 0x41d349
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push str.SOFTWAREkingsoftAntivirus
push 0x80000002
xor ebx, ebx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d3d2
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push edi
push str.ProgramPath
push dword [ebp - 4]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 0x204
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41d3d2
cmp dword [ebp - 8], 1
jne 0x41d3d2
cmp dword [ebp - 0xc], 6
jb 0x41d3d2
push esi
call dword [sym.imp.MSVCR80.dll_wcslen]
movzx eax, word [esi + eax*2 - 2]
cmp ax, 0x5c
pop ecx
je 0x41d3cf
cmp ax, 0x2f
je 0x41d3cf
push 0x437880
push esi
call dword [sym.imp.MSVCR80.dll_wcscat]
pop ecx
pop ecx
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], edi
je 0x41d3e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41eb44
Capabilities:
Read .ini file

Disassembly:
push 0x14
mov eax, 0x43341d
call fcn.0042bee2
mov ecx, dword [ebp + 0x14]
push 0x43822c
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 4], esi
jne 0x41eb72
mov eax, 0x80004005
jmp 0x41ec80
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], esi
je 0x41ec7b
mov ebx, dword [ebp + 0x10]
cmp dword [ebx + 0x14], esi
je 0x41ec7b
push esi
push 0x3d
mov ecx, ebx
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp dword [ecx], eax
jne 0x41ec7b
xor edx, edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
jmp 0x41ebbb
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [ebp - 0x1c], esi
jne 0x41ebc4
xor edx, edx
jmp 0x41ebc9
sub edx, dword [ebp - 0x1c]
sar edx, 1
add edx, 0x104
push edx
lea eax, [ebp - 0x20]
call fcn.0041f846
cmp dword [edi + 0x20], 8
jb 0x41ebe3
mov edi, dword [edi + 0xc]
jmp 0x41ebe6
add edi, 0xc
cmp dword [ebp - 0x1c], esi
jne 0x41ebef
xor eax, eax
jmp 0x41ebf7
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
sar eax, 1
cmp dword [ebx + 0x18], 8
lea ecx, [ebx + 4]
jb 0x41ec02
mov ecx, dword [ecx]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x18], 8
jb 0x41ec15
add ecx, 4
mov ebx, dword [ecx]
jmp 0x41ec18
lea ebx, [ecx + 4]
push edi
push eax
xor edi, edi
lea esi, [ebp - 0x20]
call fcn.0041f57a
push eax
push edi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x1c], edi
mov edx, dword [ebp - 0x18]
jne 0x41ec3c
xor ecx, ecx
jmp 0x41ec43
mov ecx, edx
sub ecx, dword [ebp - 0x1c]
sar ecx, 1
dec ecx
cmp eax, ecx
je 0x41ebb3
test eax, eax
jne 0x41ec65
mov edi, 0x80004005
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x20]
call fcn.0041f53a
mov eax, edi
jmp 0x41ec80
xor edi, edi
lea esi, [ebp - 0x20]
call fcn.0041f57a
mov ecx, dword [ebp + 0x14]
push eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__]
jmp 0x41ec55
mov eax, 0x80070057
call fcn.0042bfba
ret 0x10
Function at 0x41ee04
Capabilities:
Read .ini file

Disassembly:
push 0x30
mov eax, 0x4342b8
call fcn.0042bee2
mov eax, dword [ebp + 0x10]
call fcn.0040960d
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x41ee2c
mov eax, 0x80004005
jmp 0x41ef70
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x14], ebx
jne 0x41ee3e
mov eax, 0x80070057
jmp 0x41ef70
xor ecx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
jmp 0x41ee54
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 0x1c], ebx
jne 0x41ee5d
xor ecx, ecx
jmp 0x41ee62
sub ecx, dword [ebp - 0x1c]
sar ecx, 1
add ecx, 0xa28
push ecx
lea eax, [ebp - 0x20]
call fcn.0041f846
cmp dword [esi + 0x20], 8
jb 0x41ee7c
mov esi, dword [esi + 0xc]
jmp 0x41ee7f
add esi, 0xc
cmp dword [ebp - 0x1c], ebx
jne 0x41ee88
xor eax, eax
jmp 0x41ee90
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
sar eax, 1
cmp dword [edi + 0x18], 8
jb 0x41ee9d
lea ecx, [edi + 4]
mov ebx, dword [ecx]
jmp 0x41eea0
lea ebx, [edi + 4]
push esi
push eax
xor edi, edi
lea esi, [ebp - 0x20]
call fcn.0041f57a
push eax
xor esi, esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x1c], esi
mov ecx, dword [ebp - 0x18]
jne 0x41eec4
xor edx, edx
jmp 0x41eecb
mov edx, ecx
sub edx, dword [ebp - 0x1c]
sar edx, 1
add edx, 0xfffffffe
xor ebx, ebx
cmp eax, edx
je 0x41ee4e
cmp eax, ebx
je 0x41ef62
mov dword [ebp + 8], ebx
mov edx, dword [ebp - 0x1c]
test edx, edx
jne 0x41eeee
xor eax, eax
jmp 0x41eef4
mov eax, ecx
sub eax, edx
sar eax, 1
cmp ebx, eax
je 0x41ef62
test edx, edx
je 0x41ef62
sub ecx, edx
sar ecx, 1
cmp dword [ebp + 8], ecx
jae 0x41ef62
mov edi, ebx
lea esi, [ebp - 0x20]
call fcn.0041f57a
cmp word [eax], 0
jne 0x41ef1a
cmp dword [ebp + 8], ebx
je 0x41ef62
mov edi, ebx
lea esi, [ebp - 0x20]
call fcn.0041f57a
cmp word [eax], 0
jne 0x41ef5c
mov edi, dword [ebp + 8]
call fcn.0041f57a
push eax
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push eax
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.004095ac
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [ebx + 1]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x18]
inc ebx
jmp 0x41eee3
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x20]
call fcn.0041f53a
xor eax, eax
call fcn.0042bfba
ret 0xc
Function at 0x42128c
Capabilities:
Accept command line arguments

Disassembly:
push 0x28
mov eax, 0x43428c
call fcn.0042bee2
and dword [ebp - 0x18], 0
mov eax, dword [0x449644]
mov ecx, 0x449644
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00402fa8
mov edi, str.extra_param
push edi
lea esi, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0041a7a8
cmp eax, 0xffffffff
jne 0x4212ec
push 0x43822c
push dword [ebp + 8]
call fcn.00402fa8
jmp 0x42132c
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.004215a4
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00421659
push edi
lea eax, [ebp - 0x34]
call fcn.00421a52
push eax
push dword [ebp + 8]
call fcn.00402fa8
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 2
call fcn.00421617
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004050ec
lea eax, [ebx - 0x10]
call fcn.004050ec
mov eax, dword [ebp + 8]
call fcn.0042bfba
ret
Function at 0x422515
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1d0]
sub esp, 0x250
mov eax, dword [0x449030]
xor eax, ebp
mov dword [ebp + 0x1cc], eax
mov eax, dword [ebp + 0x1d8]
push edi
xor edi, edi
push 0x228
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x5c]
push edi
push eax
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x60], edi
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
push 2
mov dword [ebp - 0x78], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x6c], eax
jne 0x422574
xor eax, eax
jmp 0x422688
push esi
lea ecx, [ebp - 0x60]
push ecx
push eax
mov dword [ebp - 0x60], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x422672
push ebx
cmp dword [ebp - 0x68], edi
je 0x4225a2
push dword [ebp - 0x68]
call esi
mov dword [ebp - 0x68], edi
cmp dword [ebp - 0x64], edi
je 0x4225af
push dword [ebp - 0x64]
call esi
mov dword [ebp - 0x64], edi
lea eax, [ebp - 0x3c]
push str.explorer.exe
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x42263b
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x42263b
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp + 0x1dc]
jne 0x42263b
push dword [ebp - 0x58]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
mov dword [ebp - 0x68], eax
je 0x42263b
lea eax, [ebp - 0x64]
push eax
push 0xf01ff
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42263b
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x64]
lea ebx, [ebp - 0x74]
mov dword [ebp - 0x74], edi
call fcn.004223fc
test eax, eax
pop ecx
pop ecx
je 0x42263b
mov ebx, dword [ebp - 0x74]
push dword [ebx]
call fcn.0042236b
test eax, eax
pop ecx
push ebx
je 0x422651
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x6c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x422595
jmp 0x422667
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x7c]
mov dword [ecx], eax
mov dword [ebp - 0x70], 1
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
cmp dword [ebp - 0x68], edi
pop ebx
je 0x422672
push dword [ebp - 0x68]
call esi
cmp dword [ebp - 0x64], edi
je 0x42267f
push dword [ebp - 0x64]
call esi
mov dword [ebp - 0x64], edi
push dword [ebp - 0x6c]
call esi
mov eax, dword [ebp - 0x70]
pop esi
mov ecx, dword [ebp + 0x1cc]
xor ecx, ebp
pop edi
call fcn.0042b7ea
add ebp, 0x1d0
leave
ret
Function at 0x4226d7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 8], edi
je 0x422795
cmp dword [ebp + 0xc], edi
je 0x422795
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x208
push eax
call esi
xor ecx, ecx
inc ecx
cmp dword [ebp - 0xc], ecx
jne 0x422794
cmp eax, edi
jne 0x422730
mov word [ebx + 0x206], di
mov dword [ebp - 8], ecx
jmp 0x422794
mov eax, dword [ebp - 4]
add eax, 2
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov edi, eax
test edi, edi
pop ecx
je 0x422794
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax + 4]
call esi
test eax, eax
jne 0x42278c
mov eax, dword [ebp - 4]
push 0x103
push edi
shr eax, 1
and word [edi + eax*2], 0
push 0x104
push ebx
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
add esp, 0x10
and word [ebx + 0x206], 0
mov dword [ebp - 8], 1
push edi
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
pop esi
mov eax, dword [ebp - 8]
pop edi
leave
ret 8

Function at 0x4227ae
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x42284a
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
mov ebx, str.ProgramPath
push ebx
push eax
call edi
cmp dword [ebp - 8], 1
je 0x4227f0
cmp dword [ebp - 8], 2
jne 0x422848
push esi
mov esi, dword [ebp + 0xc]
call fcn.00403c78
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00403883
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push 0
push ebx
push dword [eax]
call edi
test eax, eax
jne 0x42282f
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x422840
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
mov edx, esi
call fcn.00403d8b
pop esi
pop edi
pop ebx
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x4229ec
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 4
mov eax, 0x43420f
call fcn.0042bee2
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00402fa8
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x422a2c
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004050ec
mov eax, esi
call fcn.0042bfba
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x422a16
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x422a16
lea ecx, [ebp - 0x10]
call fcn.004229a3
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x422a63
xor esi, esi
jmp 0x422a19
push eax
call fcn.004229ec
test eax, eax
pop ecx
je 0x422a5f
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x422a16
call edi
cmp eax, ebx
jne 0x422a5f
jmp 0x422a16
Function at 0x4232b2
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x42332d
push ebx
push edi
push 2
push str.seclogon
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, esi
je 0x423326
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push edi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x42330c
cmp dword [ebp - 0x2c], 3
je 0x423323
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov dword [ebp - 4], eax
push edi
call ebx
push dword [ebp - 0xc]
call ebx
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x423370
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x433aeb
call fcn.0042bee2
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 0xc]
mov ecx, 0x449644
call fcn.00403868
xor ecx, ecx
push 2
pop edx
mov eax, 0x104
mul edx
seto cl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
neg ecx
or ecx, eax
push ecx
call fcn.0042b7cd
mov esi, eax
cmp esi, ebx
pop ecx
je 0x4233f8
push 0x208
push ebx
push esi
call sub.MSVCR80.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
push dword [eax]
push 0x104
push esi
push ebx
push 0x43f5e0
push str.download
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
push dword [ebp + 0xc]
call fcn.0040306d
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x423401
push ebx
push dword [ebp + 0xc]
call fcn.0040306d
mov eax, dword [ebp + 0xc]
call fcn.0042bfba
ret 8
Function at 0x42346e
Capabilities:
Create directory

Disassembly:
push 0x3c
mov eax, 0x4329ba
call fcn.0042bf4b
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
push dword [eax]
lea ecx, [ebp - 0x2c]
push 0x5c
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::rfind_wchar_t__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp dword [ecx], eax
je 0x423568
push eax
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
cmp dword [eax + 0x18], 8
jb 0x4234c6
mov eax, dword [eax + 4]
jmp 0x4234c9
add eax, 4
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [ebp - 0x48]
mov esi, eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, edi
je 0x423517
cmp esi, 0x50
je 0x423517
cmp esi, 0xb7
je 0x423517
cmp esi, edi
jle 0x4234fe
and esi, 0xffff
or esi, 0x80070000
mov edi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
call fcn.0042bfce
ret 4
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x423523
lea eax, [ebp - 0x28]
push edi
push 0x80
push 1
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x42355f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x42354f
call esi
jmp 0x42355b
call esi
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x423500
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x423500
mov edi, 0x80070057
jmp 0x423500
Function at 0x423583
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [esi], eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42360c
push ebx
call fcn.0042b7cd
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4235fd
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x437880
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4235fd
cmp dword [ebp - 0xc], ebx
je 0x4235fd
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x42360c
push dword [ebp - 4]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x42382d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x120
mov eax, dword [0x449030]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa8]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x423890
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call esi
cmp eax, edi
je 0x423946
mov eax, dword [ebp - 0x98]
dec eax
je 0x423932
dec eax
jne 0x423946
mov eax, dword [ebp - 0xa4]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x4238df
cmp dword [ebp - 0xa0], edx
jne 0x4238c9
xor eax, eax
cmp byte [ebp + 0x72], dl
setne al
add eax, 8
jmp 0x42392e
cmp dword [ebp - 0xa0], edi
jne 0x423917
xor eax, eax
cmp byte [ebp + 0x72], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x42392e
cmp eax, 5
jne 0x423909
cmp dword [ebp - 0xa0], 2
jne 0x4238f0
push eax
jmp 0x423910
cmp dword [ebp - 0xa0], 1
jne 0x4238fd
mov edi, ecx
jmp 0x423946
cmp dword [ebp - 0xa0], edi
jne 0x423946
push 3
jmp 0x423910
cmp eax, 4
ja 0x423913
push 4
pop edi
jmp 0x423946
cmp eax, ecx
jb 0x423946
cmp dword [ebp - 0xa0], 2
jae 0x423924
cmp eax, ecx
jbe 0x423946
cmp byte [ebp + 0x72], dl
jne 0x423946
call fcn.00423772
mov edi, eax
jmp 0x423946
mov eax, dword [ebp - 0x9c]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov ecx, dword [ebp + 0x74]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0042b7ea
add ebp, 0x78
leave
ret