joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e9a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433a50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x478
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x158]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x158], 0x44
mov dword [ebp - 0x12c], 1
mov word [ebp - 0x128], 0xa
xor ebx, ebx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x164], ebx
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x40ebb8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40ebb8
mov byte [ebp - 0x114], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x474], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x473]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x370], bl
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x36f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40ea75
push eax
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esi], 0x22
push 0x104
jne 0x40ea85
lea ecx, [esi + 1]
push ecx
jmp 0x40ea86
push esi
lea edx, [ebp - 0x114]
push edx
call fcn.0042a8c0
add esp, 0xc
lea eax, [ebp - 0x474]
push eax
push esi
push str._s__s
lea ecx, [ebp - 0x370]
push ecx
call fcn.00429590
add esp, 0x10
push 0x5c
lea edx, [ebp - 0x114]
push edx
call fcn.004271e0
add esp, 8
test eax, eax
je 0x40ead9
push 0x5c
lea eax, [ebp - 0x114]
push eax
call fcn.004271e0
add esp, 8
mov byte [eax], bl
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x168]
push ecx
lea edx, [ebp - 0x158]
push edx
lea eax, [ebp - 0x114]
push eax
push ebx
push 0x20
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x370]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x478], eax
cmp eax, ebx
je 0x40ebb8
mov dword [ebp - 0x47c], ebx
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
jle 0x40eb2b
push eax
mov edx, dword [ebp - 0x168]
push edx
jmp 0x40eb34
push 0xffffffffffffffff
mov eax, dword [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
mov dword [ebp - 0x47c], esi
mov eax, dword [ebp - 0x164]
cmp eax, ebx
je 0x40eb53
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x480], ebx
mov eax, dword [ebp - 0x168]
cmp eax, ebx
je 0x40eb86
lea ecx, [ebp - 0x480]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x168]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x480], ebx
jne 0x40ebb8
cmp esi, 0x102
je 0x40ebb8
cmp esi, 0xffffffff
je 0x40ebb8
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410080
Capabilities:
Delete file
Read .ini file
Set file attributes

Disassembly:
sub esp, 0xe3c
push ebx
push esi
push edi
lea ecx, [esp + 0x110]
call fcn.00410970
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x104
push eax
lea ecx, [esp + 0x118]
call fcn.004116a0
mov edi, str.RsTest.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
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 + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0xc]
push ecx
push 0x437678
push 0x437d50
push 0x437d4c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea edx, [esp + 0xc]
push edx
push 0
push 0x437d50
push 0x437d4c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x110]
call fcn.00410a60
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0xe3c
ret

Function at 0x410160
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServices
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410266
push str.Admin_Test
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp]
push eax
push str.Admin_Test
push 1
push 0
push str.Rising
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4101c1
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x1c
ret
xor eax, eax
lea ecx, [esp + 4]
mov dword [esp + 0xd], eax
lea edx, [esp + 0xc]
mov dword [esp + 0x11], eax
push ecx
mov dword [esp + 0x19], eax
mov ecx, dword [esp + 4]
mov word [esp + 0x1d], ax
push edx
mov byte [esp + 0x23], al
lea eax, [esp + 0x10]
push eax
push 0
push str.Rising
push ecx
mov byte [esp + 0x24], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x410223
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [esp]
push str.Rising
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0xc]
push str.Admin_Test
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x41025b
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x1c
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x1c
ret
Function at 0x410530
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
sub esp, 0x22c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x139]
mov byte [esp + 0x138], bl
push 0x43d2fc
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x13c]
push str._sVirPatch.ini
push eax
call fcn.00429590
add esp, 0xc
lea ecx, [esp + 0x138]
mov dword [esp + 0x10], ebx
push ecx
push ebx
push str.Count
push str.File
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
cmp esi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jle 0x41066b
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp dword [esp + 0x10], ebx
jne 0x410636
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, esi
lea edx, [esp + 0x14]
push eax
push str.File_d
push edx
dec esi
call fcn.00429590
add esp, 0xc
lea eax, [esp + 0x138]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push eax
push 0x104
push ecx
push 0x43babc
push edx
push str.File
call ebp
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41062c
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41062c
mov dword [esp + 0x10], 1
cmp esi, ebx
jg 0x4105b1
cmp dword [esp + 0x10], ebx
je 0x41066b
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x43d2fc
lea ecx, [esp + 0x38]
push str._sRsVPatch.rp
push ecx
stosb byte es:[edi], al
call fcn.00429590
lea edx, [esp + 0x40]
push edx
call fcn.00425b50
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret

Function at 0x410680
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x110
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x43c316
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push str._sNetConfig.ini
push eax
call fcn.00429590
add esp, 0xc
lea ecx, [esp + 4]
call fcn.00423590
lea ecx, [esp + 0x10]
push ecx
push 0
push str.BlockNC
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
pop edi
je 0x41070e
push 0x43c316
lea ecx, [esp + 4]
call fcn.004235e0
test eax, eax
je 0x41070e
mov eax, dword [esp + 0x114]
lea ecx, [esp]
test eax, eax
je 0x410700
call fcn.00423710
jmp 0x410705
call fcn.00423720
lea ecx, [esp]
call fcn.004236e0
lea ecx, [esp]
call fcn.004235d0
add esp, 0x110
ret 4
Function at 0x4114e0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x411568
push ebx
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push edi
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41154b
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
push ecx
push esi
push edx
push eax
mov eax, dword [esp + 0x24]
push str.SystemRoot
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jne 0x411560
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call edi
pop edi
pop ebx
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret

Function at 0x411570
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x411610
push ebx
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push edi
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4115df
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
push ecx
push esi
push edx
push eax
mov eax, dword [esp + 0x24]
push str.SystemRoot
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jne 0x4115fc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
call edi
pop edi
pop ebx
pop esi
pop ecx
ret
push str._system32
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call edi
pop edi
pop ebx
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret

Function at 0x411620
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
lea ecx, [esp]
push esi
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x411688
mov ecx, dword [esp + 4]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xc]
push esi
push eax
push 0
push str.CommonFilesDir
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x14], eax
xor eax, eax
pop esi
add esp, 8
ret 8
Function at 0x4116a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push esi
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x411700
mov ecx, dword [esp + 0x14]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push esi
push eax
push 0
push str.ProgramFilesDir
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x14], eax
xor eax, eax
pop esi
add esp, 8
ret 8

Function at 0x411980
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x110
lea eax, [esp]
push esi
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4119f7
push edi
mov ecx, 0x40
lea edi, [esp + 0x15]
mov byte [esp + 0x14], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x124]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
je 0x411a03
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0x110
ret 0x10
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x120]
test esi, esi
je 0x4119f7
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
pop esi
add esp, 0x110
ret 0x10
Function at 0x411a40
Capabilities:
Delete file
Get disk information
Read .ini file

Disassembly:
sub esp, 0x210
push ebx
push ebp
xor eax, eax
push esi
push edi
mov word [esp + 0x11], ax
mov ecx, 0x40
lea edi, [esp + 0x11d]
mov byte [esp + 0x13], al
mov byte [esp + 0x11c], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x11c]
mov byte [esp + 0x10], 0
push ecx
push 0x104
stosb byte es:[edi], al
xor esi, esi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [esp + 0x14], eax
cmp ebp, dword [esp + 0x14]
jae 0x411b4e
mov al, byte [esp + ebp + 0x11c]
test al, al
jne 0x411b44
lea edx, [esp + ebp + 0x119]
push 3
lea eax, [esp + 0x14]
push edx
push eax
call fcn.0042a8c0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov esi, eax
cmp esi, 3
jne 0x411b44
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x10]
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x1c]
push str._sRsTest.ini
push eax
call fcn.00429590
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x437678
push 0x437fd8
push 0x437fd4
call ebx
lea edx, [esp + 0x18]
push edx
push 0
push 0x437fd8
push 0x437fd4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x411b3f
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x411b44
mov esi, 5
inc ebp
cmp esi, 3
jne 0x411a93
mov eax, dword [esp + 0x224]
test eax, eax
je 0x411b75
cmp esi, 3
jne 0x411b75
mov ecx, dword [esp + 0x228]
lea edx, [esp + 0x10]
dec ecx
push ecx
push edx
push eax
call fcn.0042a8c0
add esp, 0xc
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x210
ret 8
Function at 0x412340
Capabilities:
Copy file

Disassembly:
mov eax, 0x1130
call fcn.004299d0
push ebx
push ebp
mov ebp, dword [esp + 0x113c]
push esi
push edi
mov esi, ecx
push ebp
call fcn.00411f30
test eax, eax
je 0x412489
mov eax, dword [esp + 0x1148]
lea edi, [esi + 0x14]
push eax
mov ecx, edi
call fcn.004048b0
mov ecx, edi
call fcn.00404970
test eax, eax
je 0x412489
mov eax, dword [esp + 0x114c]
test eax, eax
jne 0x4123b7
mov ecx, esi
call fcn.004124a0
mov ecx, edi
mov ebx, eax
call fcn.00404d90
cmp ebx, eax
jb 0x4123b7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1130
ret 0x10
mov ecx, edi
xor ebx, ebx
call fcn.00404d30
test eax, eax
jle 0x4123eb
lea ecx, [esp + 0x14]
push ecx
push ebx
mov ecx, edi
call fcn.00404d40
lea edx, [esp + 0x14]
push 0
push edx
mov ecx, esi
call fcn.00411f80
mov ecx, edi
inc ebx
call fcn.00404d30
cmp ebx, eax
jl 0x4123c4
mov ecx, esi
call fcn.00412590
test eax, eax
je 0x412489
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x10], 0
lea edx, [esp + 0x10]
xor edi, edi
mov eax, dword [ecx]
push edx
call dword [eax + 0xb4]
test eax, eax
jne 0x412448
mov ecx, dword [esp + 0x10]
test ecx, ecx
jbe 0x412448
mov eax, dword [esi + 0x44]
mov edi, ecx
test eax, eax
jbe 0x412448
mov edx, dword [esi + 0x48]
mov ebx, dword [edx - 8]
test ebx, ebx
je 0x412448
mov dword [ecx + 0x20], eax
mov eax, dword [esi + 0x48]
push 0xf
lea ecx, [edi + 0x30]
push eax
push ecx
call fcn.00429dad
add esp, 0xc
mov ecx, dword [esi + 0x10]
push 0
mov edx, dword [ecx]
call dword [edx + 0x84]
test eax, eax
jne 0x412489
lea esi, [edi + 0xc0]
push ebp
push esi
call fcn.0042a9c0
add esp, 8
test eax, eax
je 0x412477
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1130
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1130
ret 0x10

Function at 0x412740
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
mov eax, dword [esp + 0xa0]
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [esi + 4], eax
mov ecx, 0x20
xor eax, eax
lea edi, [esi + 0x1c]
mov dword [esi], 0x434644
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x41
xor eax, eax
lea edi, [esi + 0x9e]
rep stosd dword es:[edi], eax
mov ecx, esi
call fcn.00412900
mov dword [esi + 0x1b0], eax
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x1c], 2
jne 0x4127dd
cmp dword [esp + 0x10], 5
jne 0x4127dd
mov eax, 1
pop edi
mov dword [esi + 0x1b4], eax
mov eax, esi
pop esi
pop ebx
add esp, 0x9c
ret 4
xor eax, eax
pop edi
mov dword [esi + 0x1b4], eax
mov eax, esi
pop esi
pop ebx
add esp, 0x9c
ret 4
Function at 0x412900
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50
push esi
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
xor esi, esi
push eax
push 1
push esi
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412980
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push esi
push str.Version
push ecx
mov dword [esp + 0x24], 0x41
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412975
movsx esi, byte [esp + 0x14]
sub esi, 0x30
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 5
pop edi
sbb eax, eax
pop esi
inc eax
add esp, 0x50
ret

Function at 0x4129e0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1ac]
test eax, eax
je 0x4129fd
push 0xa
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x412a1c
lea eax, [esi + 0x1a8]
push eax
push 0
push esi
push 0x4128f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1ac], eax
pop esi
ret
Function at 0x413d40
Capabilities:
Get file attributes
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x118]
or esi, 0xffffffff
test eax, eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x104
je 0x413d98
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
push edx
push ecx
push 0
push str.installpath
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 8], ecx
je 0x413df9
lea eax, [esp + ecx + 0xf]
mov cl, byte [esp + ecx + 0xf]
cmp cl, 0x5c
jne 0x413dbc
mov byte [eax], 0
mov edi, str.Update_setup.exe
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
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 + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
pop ebx
xor eax, eax
cmp esi, 0xffffffff
pop edi
pop esi
setne al
add esp, 0x10c
ret 4
Function at 0x415813
Capabilities:
Suspend thread

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x415829
mov eax, 1
pop esi
add esp, 0xc
ret 0x10
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x415856
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [esi + 4]
push 0
push 0x1f4
push 0x7bc
push eax
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
pop esi
add esp, 0xc
ret 0x10
mov edx, dword [esi + 0x5c]
lea ecx, [esp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ecx
push 1
push 0x407
push edx
call edi
push 0xffffffffffffffff
lea eax, [esp + 0xc]
push 2
push eax
mov dword [esi + 0x3c], 1
call fcn.004249d0
mov ecx, dword [esp + 0x14]
push 7
push 0x24
push ecx
call fcn.00424c50
add esp, 0x18
cmp eax, 6
mov dword [esi + 0x3c], 0
jne 0x4158e2
mov edx, dword [esi + 0x5c]
push 0
push 0
push 0x408
push edx
call edi
cmp eax, dword [esp + 0x10]
jae 0x4158e2
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4158e2
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0x3f0
push 0x1410
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [esi + 0x34], 1
mov eax, dword [esp + 8]
mov edx, dword [0x43734c]
pop edi
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x415912
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415912
mov edx, dword [esp + 4]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
xor eax, eax
pop esi
add esp, 0xc
ret 0x10