joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406380
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x134
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x130], eax
push ebp
mov ebp, dword [esp + 0x13c]
push esi
push edi
xor esi, esi
push 0x124
lea eax, [esp + 0x18]
push esi
push eax
mov dword [esp + 0x1c], esi
call fcn.0043abe0
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x4063d6
push esi
push esi
push 0x49541c
call fcn.00419dc3
xor eax, eax
jmp 0x406449
lea ecx, [esp + 0x10]
push ecx
push edi
mov dword [esp + 0x18], pe_nt_image_headers32
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x406440
lea ecx, [ecx]
push ebx
call fcn.004383d1
lea edx, [esp + 0x38]
push edx
mov esi, eax
call fcn.004383d1
add esp, 8
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x406425
test cl, cl
je 0x406421
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x406425
add eax, 2
add esi, 2
test cl, cl
jne 0x406405
xor eax, eax
jmp 0x40642a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406463
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4063f0
lea esi, [eax + 1]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0043675a
add esp, 0x134
ret 4
mov ecx, dword [esp + 0x18]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
jmp 0x406440
Function at 0x407930
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483eb0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4a55d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4079cf
test dword [ebp - 0x14], 0x20
je 0x4079a4
cmp dword [ebp + 0x20], 0x10
jb 0x40798d
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00418159
add esp, 4
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebp + 0x20], 0x10
jb 0x4079b6
mov edx, dword [ebp + 0xc]
push edx
call fcn.00418159
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push ebx
push ebx
push ebx
push ebx
mov edi, 1
push edi
push ebx
lea ecx, [ebp - 0x30]
call fcn.0041a7b3
mov byte [ebp - 4], 2
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x4079f2
lea eax, [ebp + 0xc]
push ebx
push ebx
push edi
push edi
push eax
lea ecx, [ebp - 0x30]
call fcn.0041b119
mov esi, eax
mov dword [ebp - 4], edi
cmp esi, ebx
je 0x407a4f
push ebx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0x20000013
mov ecx, esi
mov dword [ebp - 0x1c], 4
call fcn.0041a0f4
cmp eax, ebx
je 0x407a36
mov edx, dword [ebp - 0x18]
add edx, 0xffffff38
cmp edx, 0x63
jbe 0x407a39
mov edi, dword [ebp - 0x18]
mov eax, dword [esi]
mov edx, dword [eax + 0x4c]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 1
mov ecx, esi
call edx
jmp 0x407a52
or edi, 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0041ad7d
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.0041ae60
cmp dword [ebp + 0x20], 0x10
jb 0x407a77
mov eax, dword [ebp + 0xc]
push eax
call fcn.00418159
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4082d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0043675a
add esp, 0x108
ret

Function at 0x408320
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408348
mov ecx, dword [str._system32]
mov edx, dword [0x49598c]
mov dword [eax], ecx
mov cx, word [0x495990]
mov dword [eax + 4], edx
lea edx, [esp]
push edx
push esi
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0043675a
add esp, 0x108
ret

Function at 0x408390
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
push 1
push 0
push str.SOFTWAREJANSHETO_KEY_TRFYCZ
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4083e7
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0043675a
add esp, 0x114
ret
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 4]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push str.Path
push edx
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40843b
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0043675a
add esp, 0x114
ret
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0043675a
add esp, 0x114
ret
Function at 0x408500
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftwindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408557
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0043675a
add esp, 0x114
ret
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 4]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push str.ProgramFilesDir
push edx
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4085ab
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0043675a
add esp, 0x114
ret
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0043675a
add esp, 0x114
ret

Function at 0x408c30
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x48487b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a55d0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [edi], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x3c]
lea esi, [edi + 0x18]
push esi
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], ecx
call fcn.00404b10
mov ebx, dword [esi + 0x10]
cmp dword [esi + 0xc], ebx
jbe 0x408c92
call fcn.00437ab3
mov ebp, dword [esi + 0xc]
mov edx, dword [esi]
mov dword [esp + 0x18], edx
cmp ebp, dword [esi + 0x10]
jbe 0x408ca5
call fcn.00437ab3
mov ecx, dword [esp + 0x18]
mov eax, dword [esi]
push ebx
push ecx
push ebp
push eax
lea ebx, [esp + 0x28]
call fcn.00409d20
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
Function at 0x408e90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x94
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x98]
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [0x4c2618]
mov esi, edx
mov edx, dword [0x4c261c]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
test eax, eax
jbe 0x408f3e
lea ebp, [eax - 1]
shr ebp, 3
inc ebp
jmp 0x408ee0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x98]
push ecx
call fcn.00467880
push 1
lea edx, [esp + 0x1c]
push edx
push esi
push edi
call fcn.004678e0
mov eax, dword [esi]
mov ecx, dword [esi + 4]
add esp, 0x18
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
xor eax, eax
mov ecx, 8
lea ecx, [ecx]
mov dl, byte [eax + 0x4c2618]
xor byte [esp + eax + 0x94], dl
inc eax
sub ecx, 1
jne 0x408f20
add edi, 8
add esi, 8
sub ebp, 1
jne 0x408ee0
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0043675a
add esp, 0x94
ret

Function at 0x409010
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x94
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x98]
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [0x4c2618]
mov edi, edx
mov edx, dword [0x4c261c]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
test eax, eax
jbe 0x4090be
lea ebp, [eax - 1]
shr ebp, 3
inc ebp
jmp 0x409060
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x98]
push ecx
call fcn.00467880
push 0
lea edx, [esp + 0x1c]
push edx
push edi
push esi
call fcn.004678e0
mov eax, dword [esi]
mov ecx, dword [esi + 4]
add esp, 0x18
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
xor eax, eax
mov ecx, 8
lea ecx, [ecx]
mov dl, byte [eax + 0x4c2618]
xor byte [esp + eax + 0x94], dl
inc eax
sub ecx, 1
jne 0x4090a0
add esi, 8
add edi, 8
sub ebp, 1
jne 0x409060
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0043675a
add esp, 0x94
ret
Function at 0x40a690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0041c6e7
Function at 0x40e590
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x40e5a0
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40e5b0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40ee20
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x128
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
mov ebp, dword [esp + 0x134]
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea edx, [esp + 0x20]
push edx
xor edi, edi
or eax, 0x2001f
push eax
push edi
push ebp
push ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, edi
jne 0x40ee95
xor eax, eax
cmp ecx, edi
je 0x40ee83
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], edi
mov esi, eax
mov dword [esp + 0x14], ecx
cmp eax, edi
je 0x40eea3
cmp ecx, edi
je 0x40ef40
push ecx
jmp 0x40ef3a
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x28]
push eax
push edi
push edi
push edi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push edi
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x40ef0e
jmp 0x40eed0
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040ee20
mov ebp, eax
cmp ebp, edi
jne 0x40ef5d
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
push ecx
push edi
push edx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x40eed0
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40ef21
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], edi
mov eax, dword [ebx]
push ebp
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40ef40
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043675a
add esp, 0x128
ret 4
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40ef6c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
jmp 0x40ef42
Function at 0x410510
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax - 0xd4]
sub esp, 8
push ebx
push esi
push ecx
lea ecx, [esp + 0xc]
call fcn.0041bcfb
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x4105da
mov esi, dword [esp + 0x18]
cmp dword [esi + 4], 0x100
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
jne 0x4105da
push 0x4f
call ebx
test ax, ax
jge 0x41057c
cmp dword [esp + 0xc], 0
je 0x410572
mov eax, dword [esp + 8]
push eax
push 0
call fcn.0041b3e3
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x10
cmp dword [esi + 4], 0x100
jne 0x4105da
push 0x50
call ebx
test ax, ax
jge 0x4105ab
cmp dword [esp + 0xc], 0
je 0x4105a1
mov ecx, dword [esp + 8]
push ecx
push 0
call fcn.0041b3e3
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x10
cmp dword [esi + 4], 0x100
jne 0x4105da
push 0x4e
call ebx
test ax, ax
jge 0x4105da
cmp dword [esp + 0xc], 0
je 0x4105d0
mov edx, dword [esp + 8]
push edx
push 0
call fcn.0041b3e3
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x10
cmp dword [esp + 0xc], 0
je 0x4105ed
mov eax, dword [esp + 8]
push eax
push 0
call fcn.0041b3e3
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 0x10

Function at 0x411d00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x484b70
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4a55d0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0xc], vtable.CArray_class_ATL::CStringT_char__class_StrTraitMFC_char__class_ATL::ChTraitsCRT_char_____class_ATL::CStringT_char__class_StrTraitMFC_char__class_ATL::ChTraitsCRT_char____.0
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
mov eax, 1
mov byte [esp + 0x28], al
mov edx, dword [esp + 0x30]
sub eax, dword [edx - 4]
mov ecx, dword [edx - 8]
or ecx, eax
jge 0x411d68
push esi
lea ecx, [esp + 0x34]
call fcn.00402350
mov edx, dword [esp + 0x30]
push edx
lea edi, [esp + 0x10]
call fcn.004057e0
mov esi, eax
call fcn.00405b60
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411da1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 4
Function at 0x413470
Capabilities:
Check if file exists
Create process on windows
Delete file
Get common file path

Disassembly:
sub esp, 0x16c
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x168], eax
push ebp
mov ebp, dword [esp + 0x174]
push esi
push edi
push 0x44
lea eax, [esp + 0x24]
push 0
push eax
mov dword [esp + 0x18], 0
call fcn.0043abe0
xor eax, eax
push 0x104
push eax
lea ecx, [esp + 0x7c]
push ecx
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call fcn.0043abe0
add esp, 0x18
lea edx, [esp + 0x68]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x68]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4134e6
mov ecx, dword [str._repairCtrl.exe]
mov edx, dword [0x4975ec]
mov dword [eax], ecx
mov ecx, dword [0x4975f0]
mov dword [eax + 4], edx
mov edx, dword [0x4975f4]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x41352d
lea ecx, [esp + 0x68]
push ecx
call esi
lea edx, [esp + 0x68]
push edx
push 0xef
call fcn.00417070
test al, al
je 0x41361a
lea edi, [esp + 0x68]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x413550
mov eax, dword [0x4975e4]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0
push 0
push 0
mov dword [edi], eax
push 0
lea eax, [esp + 0x88]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4135c6
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x41361e
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
push 0xffffffffffffffff
lea esi, [ebp + 0x210]
push 0
mov ecx, esi
call fcn.00418c5c
mov ecx, dword [esi + 8]
push str.RepairAll
push ecx
mov ecx, esi
call fcn.00418edd
mov edx, dword [esi + 8]
push str.REPAIR2
push edx
mov ecx, esi
call fcn.00418edd
mov eax, dword [esi + 8]
push 0x495984
push eax
mov ecx, esi
call fcn.00418edd
mov ecx, dword [ebp + 0x20]
push 0
push 0
push 0xbba
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
jmp 0x41362a
lea edx, [esp + 0x68]
push edx
call esi
mov eax, 1
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0043675a
add esp, 0x16c
ret 4
Function at 0x4157c0
Capabilities:
Create process on windows
Print debug messages
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4841f6
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x1a4], eax
push ebx
push ebp
push esi
mov eax, dword [0x4a55d0]
xor eax, esp
push eax
lea eax, [esp + 0x1b8]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, 0xf
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
push 0x103
lea eax, [esp + 0xb1]
push ebx
mov dword [esp + 0x1c8], ebx
push eax
mov byte [esp + 0xb8], bl
call fcn.0043abe0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ebp, [esi + 1]
test eax, eax
jne 0x4158f1
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xb0]
push eax
push ebx
push ebx
push str.ProgramFilesDir
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4158f1
lea eax, [esp + 0xac]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4158a0
sub eax, edx
push eax
lea edx, [esp + 0xb0]
push edx
lea ecx, [esp + 0x30]
call fcn.00404f50
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x9c]
mov byte [esp + 0x1cc], 1
call fcn.00405100
mov byte [esp + 0x1c0], bl
cmp dword [esp + 0x40], ebp
jb 0x4158f1
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00418159
add esp, 4
cmp dword [esp + 0xa4], ebx
jne 0x41590a
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4159c4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x44
lea edx, [esp + 0x48]
push ebx
push edx
call fcn.0043abe0
xor eax, eax
add esp, 0xc
push 0x20
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push str.Internet_ExplorerIEXPLORE.EXE
lea eax, [esp + 0x98]
mov dword [esp + 0x4c], 0x44
call fcn.00404bb0
mov ecx, dword [edi + 0x20c]
mov eax, ecx
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x415960
sub eax, esi
push eax
push ecx
lea eax, [esp + 0x98]
call fcn.00404bb0
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xa8], ebp
jae 0x41598e
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xa8], ebp
jae 0x4159ac
lea eax, [esp + 0x94]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x48]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp dword [esp + 0xa8], ebp
jb 0x4159dd
mov eax, dword [esp + 0x94]
push eax
call fcn.00418159
add esp, 4
mov ecx, dword [esp + 0x1b8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.0043675a
add esp, 0x1b4
ret
Function at 0x4164e0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x28
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416520
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x28]
push ecx
push esi
call eax
test eax, eax
je 0x416552
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 0x28
ret
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x416552
mov eax, dword [esp]
imul eax, dword [esp + 4]
imul eax, dword [esp + 8]
xor edx, edx
add esp, 0x28
ret
xor eax, eax
xor edx, edx
add esp, 0x28
ret

Function at 0x416f10
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x484032
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a55d0]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x140]
xor esi, esi
mov dword [esp + 0x138], esi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], esi
call fcn.00418806
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x416f7d
push 0x80004005
call fcn.00402570
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
push 0x104
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x140], esi
push esi
mov dword [esp + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x1c], esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
cmp ebx, esi
je 0x417040
push ebx
push 2
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x14]
mov edi, eax
push edi
push ebx
push ecx
lea edx, [esp + 0x34]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x4950f4
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x1c]
mov dx, word [eax + 0x10]
mov cx, word [eax + 0x12]
mov di, word [eax + 0x16]
movzx eax, word [eax + 0x14]
push eax
movzx eax, di
push eax
movzx edx, dx
push edx
movzx eax, cx
push eax
push str._d._d._d._d
push ebp
call fcn.004020e0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebp
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0043675a
add esp, 0x128
ret 4