joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fc30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x455eae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [0x471df4]
xor edi, edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
push 0xa
lea ecx, [esp + 0x40]
mov byte [esp + 0x9c], 2
call fcn.00449a9b
push 0xa
lea ecx, [esp + 0x78]
mov byte [esp + 0x9c], 3
call fcn.00449a9b
push 0xa
lea ecx, [esp + 0x5c]
mov byte [esp + 0x9c], 4
call fcn.00449a9b
push 0xa
lea ecx, [esp + 0x24]
mov byte [esp + 0x9c], 5
call fcn.00449a9b
mov ecx, dword [esp + 0xa0]
lea eax, [esp + 0x18]
add esi, 0x2f8
push eax
push ecx
mov ecx, esi
mov byte [esp + 0xa0], 6
mov dword [esp + 0x1c], edi
xor ebx, ebx
xor ebp, ebp
call fcn.00414d30
test eax, eax
je 0x40fdd2
push str.MEDIA
lea ecx, [esp + 0x1c]
call fcn.00449464
cmp eax, 0xffffffff
je 0x40fdd2
mov eax, dword [esp + 0xa0]
lea edx, [esp + 0x3c]
push edx
push eax
mov ecx, esi
call fcn.00414e60
test eax, eax
je 0x40fdd2
lea ecx, [esp + 0x58]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x78]
push edx
mov edx, dword [esp + 0xa8]
lea ecx, [esp + 0x44]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004150e0
test eax, eax
je 0x40fdd2
mov eax, dword [esp + 0x2c]
cmp eax, 4
jl 0x40fdd2
mov esi, dword [esp + 0x24]
test eax, eax
jbe 0x40fdd2
mov dword [esp + 0x1c], eax
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [esp + 0x10]
push eax
call fcn.0044a4c1
push 0x46a14c
lea ecx, [esp + 0x14]
call fcn.00449464
cmp eax, 0xffffffff
je 0x40fd81
inc ebp
push str.RPBOOT
lea ecx, [esp + 0x14]
call fcn.00449464
cmp eax, 0xffffffff
je 0x40fd95
inc ebx
push str.RIPTIDE
lea ecx, [esp + 0x14]
call fcn.00449464
cmp eax, 0xffffffff
je 0x40fdac
inc dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x40fd5c
cmp ebp, 2
jl 0x40fdd2
cmp ebx, 2
jl 0x40fdc6
mov edi, 2
cmp dword [esp + 0x14], 2
jl 0x40fdd2
mov edi, 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x98], 5
call fcn.00449b0f
lea ecx, [esp + 0x58]
mov byte [esp + 0x98], 4
call fcn.00449b0f
lea ecx, [esp + 0x74]
mov byte [esp + 0x98], 3
call fcn.00449b0f
lea ecx, [esp + 0x3c]
mov byte [esp + 0x98], 2
call fcn.00449b0f
lea ecx, [esp + 0x10]
mov byte [esp + 0x98], 1
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 0
call fcn.0044a3d4
lea ecx, [esp + 0xa0]
mov dword [esp + 0x98], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x90]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret 4
Function at 0x410cf0
Capabilities:
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45616d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x17c
mov eax, dword [0x471df4]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x194], 0
mov dword [esp + 0x18], eax
push 0xa
lea ecx, [esp + 0x34]
mov byte [esp + 0x198], 1
call fcn.00449a9b
mov eax, dword [0x471df4]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x94c]
mov ebp, dword [edi + 0x944]
mov bl, 3
test eax, eax
mov byte [esp + 0x194], bl
jbe 0x410e69
mov dword [esp + 0x1c], eax
mov eax, ebp
mov ebp, dword [ebp]
add eax, 8
lea ecx, [esp + 0x14]
push eax
call fcn.0044a4c1
lea ecx, [esp + 0x14]
push 0x46ae0c
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.0044a61d
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x198], 4
call fcn.0044a4c1
lea ecx, [esp + 0x20]
mov byte [esp + 0x194], bl
call fcn.0044a3d4
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x410e5a
lea edx, [esp + 0x78]
lea ecx, [esp + 0x2c]
push edx
call fcn.0044a442
push eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x2c]
push eax
push ecx
mov byte [esp + 0x1a0], 5
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x198], 6
call fcn.0044a4c1
lea ecx, [esp + 0x28]
mov byte [esp + 0x194], 5
call fcn.0044a3d4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x194], bl
call fcn.0044a3d4
lea edx, [esp + 0x30]
lea eax, [esp + 0x10]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.0044a149
mov ecx, edi
call fcn.00410b60
lea ecx, [esp + 0x4c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x410dc9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x410d66
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
test edi, edi
jbe 0x410ea2
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [esp + 0x10]
push eax
call fcn.0044a4c1
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.0044a149
call fcn.0042d0a0
add esp, 4
dec edi
jne 0x410e75
lea ecx, [esp + 0x14]
mov byte [esp + 0x194], 2
call fcn.0044a3d4
lea ecx, [esp + 0x30]
mov byte [esp + 0x194], 1
call fcn.00449b0f
lea ecx, [esp + 0x18]
mov byte [esp + 0x194], 0
call fcn.0044a3d4
lea ecx, [esp + 0x10]
mov dword [esp + 0x194], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x188
ret
Function at 0x4123b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x456404
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x138]
lea ecx, [esp + 0x28]
push eax
xor ebp, ebp
push str.CInstall_::_CheckIfOEMRegValuesInstalled_entry_:_csClassKey____s_n
push ecx
mov dword [esp + 0x13c], ebp
call fcn.0043a4a0
add esp, 0xc
mov ecx, 0x475b68
call fcn.0042f5e0
lea edx, [esp + 0x28]
mov ecx, 0x475b68
push edx
call fcn.0042f820
mov eax, dword [0x471df4]
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov edi, dword [esi + 0xd4c]
mov esi, dword [esi + 0xd44]
push str.OEM
lea ecx, [esp + 0x28]
mov byte [esp + 0x134], 2
call fcn.0044a442
push eax
lea eax, [esp + 0x13c]
lea ecx, [esp + 0x24]
mov bl, 3
push eax
push ecx
mov byte [esp + 0x13c], bl
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 4
call fcn.0044a4c1
lea ecx, [esp + 0x20]
mov byte [esp + 0x130], bl
call fcn.0044a3d4
lea ecx, [esp + 0x24]
mov byte [esp + 0x130], 2
call fcn.0044a3d4
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push 0x20019
push ebp
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41251a
test edi, edi
jbe 0x41251a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [esp + 0x10]
push eax
call fcn.0044a4c1
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
push ecx
push edx
call ebx
test eax, eax
jne 0x412512
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push str.Found_OEM_Reg_Value___s_n
push ecx
call fcn.0043a4a0
add esp, 0xc
lea edx, [esp + 0x28]
mov ecx, 0x475b68
push edx
call fcn.0042f820
inc ebp
cmp ebp, edi
jb 0x4124bc
jmp 0x41251a
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push esi
push str.CheckIfOEMRegValuesInstalled_exit_:_bRetVal___d_n
push ecx
call fcn.0043a4a0
add esp, 0xc
lea edx, [esp + 0x28]
mov ecx, 0x475b68
push edx
call fcn.0042f820
mov ecx, 0x475b68
call fcn.0042f5f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 1
call fcn.0044a3d4
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], 0
call fcn.0044a3d4
lea ecx, [esp + 0x138]
mov dword [esp + 0x130], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x128]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 4
Function at 0x4125b0
Capabilities:
Contain obfuscated stackstrings
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x4564aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
push edi
lea eax, [esp + 0x28]
push 0x104
push eax
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x471df4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x134], 0
mov dword [esp + 0x18], eax
mov bl, 1
push str.UIU_IAR.EXE
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], bl
call fcn.0044a442
lea ecx, [esi + 0xdb4]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
mov byte [esp + 0x140], 2
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 3
call fcn.0044a4c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 2
call fcn.0044a3d4
lea ecx, [esp + 0xc]
mov byte [esp + 0x134], bl
call fcn.0044a3d4
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0042cf30
mov eax, dword [esi + 0x5dc]
add esp, 8
test eax, 0x80000000
push str.UIU_IAR
je 0x412753
lea ecx, [esp + 0x24]
call fcn.0044a442
mov edi, eax
push str.__S__IAR2__IP
lea ecx, [esp + 0x28]
mov byte [esp + 0x138], 4
call fcn.0044a442
push eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push eax
mov byte [esp + 0x140], 5
call fcn.0044a5b7
add esi, 0x5e0
lea ecx, [esp + 0x10]
push esi
push eax
push ecx
mov byte [esp + 0x140], 6
call fcn.0044a5b7
push edi
lea edx, [esp + 0x10]
push eax
push edx
mov byte [esp + 0x140], 7
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 8
call fcn.0044a4c1
lea ecx, [esp + 0xc]
mov byte [esp + 0x134], 7
call fcn.0044a3d4
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 6
call fcn.0044a3d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 5
call fcn.0044a3d4
lea ecx, [esp + 0x24]
mov byte [esp + 0x134], 4
call fcn.0044a3d4
mov byte [esp + 0x134], bl
lea ecx, [esp + 0x20]
jmp 0x41281b
lea ecx, [esp + 0x14]
call fcn.0044a442
mov edi, eax
push str.__IAR2__IP
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 9
call fcn.0044a442
push eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x140], 0xa
call fcn.0044a5b7
add esi, 0x5e0
lea edx, [esp + 0x24]
push esi
push eax
push edx
mov byte [esp + 0x140], 0xb
call fcn.0044a5b7
push edi
push eax
lea eax, [esp + 0x28]
mov byte [esp + 0x13c], 0xc
push eax
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 0xd
call fcn.0044a4c1
lea ecx, [esp + 0x20]
mov byte [esp + 0x134], 0xc
call fcn.0044a3d4
lea ecx, [esp + 0x24]
mov byte [esp + 0x134], 0xb
call fcn.0044a3d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 0xa
call fcn.0044a3d4
lea ecx, [esp + 0xc]
mov byte [esp + 0x134], 9
call fcn.0044a3d4
mov byte [esp + 0x134], bl
lea ecx, [esp + 0x10]
call fcn.0044a3d4
mov ecx, dword [esp + 0x18]
push 0
push ecx
push 0x46b2a0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call fcn.004301e0
add esp, 0x14
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 0
call fcn.0044a3d4
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
Function at 0x412c70
Capabilities:
Delete directory
Enumerate files on windows
Get common file path
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x4565ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x264
mov eax, dword [0x471df4]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x16c]
mov dword [esp + 0x278], 0
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x46b2a0
lea ecx, [esp + 0x2c]
call fcn.0044a442
mov esi, eax
lea edx, [esp + 0x16c]
lea ecx, [esp + 0x24]
push edx
mov byte [esp + 0x27c], 1
call fcn.0044a442
push esi
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x280], 2
push eax
call fcn.0044a5b7
lea ecx, [esp + 0x24]
mov byte [esp + 0x278], 5
call fcn.0044a3d4
lea ecx, [esp + 0x28]
mov byte [esp + 0x278], 4
call fcn.0044a3d4
push str..
lea ecx, [esp + 0x1c]
call fcn.0044a442
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x18]
mov bl, 6
push ecx
push edx
mov byte [esp + 0x284], bl
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x27c], 7
call fcn.0044a4c1
lea ecx, [esp + 0x14]
mov byte [esp + 0x278], bl
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x278], 4
call fcn.0044a3d4
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x412e5d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov bl, 0xa
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x24]
push edx
call fcn.0044a442
mov esi, eax
push 0x46a404
lea ecx, [esp + 0x24]
mov byte [esp + 0x280], 8
call fcn.0044a442
push eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x288], 9
call fcn.0044a5b7
push esi
lea edx, [esp + 0x20]
push eax
push edx
mov byte [esp + 0x288], bl
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 0xb
call fcn.0044a4c1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x27c], bl
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x27c], 9
call fcn.0044a3d4
lea ecx, [esp + 0x20]
mov byte [esp + 0x27c], 8
call fcn.0044a3d4
lea ecx, [esp + 0x24]
mov byte [esp + 0x27c], 4
call fcn.0044a3d4
mov eax, dword [esp + 0x10]
push eax
call fcn.0042cc40
add esp, 4
lea ecx, [esp + 0x30]
push ecx
push edi
call ebp
test eax, eax
jne 0x412d92
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x46b2a0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call fcn.004304b0
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x278], 0
call fcn.0044a3d4
lea ecx, [esp + 0xc]
mov dword [esp + 0x278], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x270]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x270
ret
Function at 0x412ec0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x18
push 0
push 0
lea eax, [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
push ecx
mov dword [esp + 0x20], 0xac44
mov word [esp + 0x2a], 0x10
mov word [esp + 0x1e], 2
mov word [esp + 0x2c], 0
mov word [esp + 0x1c], 1
mov word [esp + 0x28], 4
mov dword [esp + 0x24], 0x2b110
call dword [sym.imp.WINMM.dll_waveOutOpen]
test eax, eax
je 0x412f2c
push str.unable_to_open_WAVE_MAPPER_device_n
push 0x4723e0
call fcn.0043b090
add esp, 8
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 1
add esp, 0x18
ret

Function at 0x413770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4566fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x471df4]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi + 0xc], eax
lea edi, [esi + 0x10]
push 0xa
mov ecx, edi
mov dword [esp + 0x18], 0
call fcn.00449a9b
push fcn.00449b0f
push 0x413860
push 0xa
lea ecx, [esi + 0x30]
push 0x1c
push ecx
mov byte [esp + 0x28], 1
call fcn.0043b1c0
mov ecx, esi
mov byte [esp + 0x14], 2
call fcn.00413870
cmp eax, 5
mov dword [esi + 4], eax
mov dword [esi + 0x148], 0
je 0x4137ee
cmp eax, 6
je 0x4137ee
cmp eax, 7
jne 0x4137f8
mov dword [esi + 0x148], 1
push str.WDMMDMPC.INF
mov ecx, edi
mov dword [esi + 0x2c], 0
call fcn.00449c01
push str.MDMRPCI.INF
mov ecx, edi
call fcn.00449c01
push str.MDMRPCIW.INF
mov ecx, edi
call fcn.00449c01
push str.MDMGEN.INF
mov ecx, edi
call fcn.00449c01
push str.MDMCXSFT.INF
mov ecx, edi
call fcn.00449c01
push str.MDMCXSF2.INF
mov ecx, edi
call fcn.00449c01
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x413870
Capabilities:
Check os version

Disassembly:
sub esp, 0x194
push esi
lea eax, [esp + 4]
push edi
mov esi, ecx
push eax
xor edi, edi
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41393a
mov eax, dword [esp + 0x18]
dec eax
je 0x4138d8
dec eax
jne 0x41393a
mov eax, dword [esp + 0xc]
cmp eax, 4
ja 0x4138bc
pop edi
mov eax, 5
pop esi
add esp, 0x194
ret
cmp eax, 5
jne 0x41393a
mov edx, dword [esp + 0x10]
xor eax, eax
test edx, edx
setne al
pop edi
add eax, 6
pop esi
add esp, 0x194
ret
push 0
lea ecx, [esp + 0xa0]
push str.Got_VER_PLATFORM_WIN32_WINDOWS_n
push ecx
call fcn.0043a4a0
add esp, 0xc
lea edx, [esp + 0x9c]
mov ecx, 0x475b68
push edx
call fcn.0042f820
cmp dword [esp + 0xc], 4
jne 0x41393a
mov ecx, esi
call fcn.004175c0
test eax, eax
je 0x413921
pop edi
mov eax, 4
pop esi
add esp, 0x194
ret
mov ecx, esi
call fcn.00417720
neg eax
sbb eax, eax
pop edi
neg eax
add eax, 2
pop esi
add esp, 0x194
ret
mov eax, edi
pop edi
pop esi
add esp, 0x194
ret
Function at 0x413970
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x456726
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
lea eax, [esp + 8]
push esi
push eax
mov esi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.0044a442
add esi, 0xc
push eax
mov ecx, esi
mov dword [esp + 0x11c], 0
call fcn.0044a4c1
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call fcn.0044a3d4
push 0x5c
mov ecx, esi
call fcn.00449442
cmp eax, 0xffffffff
je 0x413a24
mov edx, dword [esi]
mov ecx, dword [edx - 8]
lea edx, [eax + 1]
cmp ecx, edx
jne 0x413a24
push eax
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.004493ca
push eax
mov ecx, esi
mov dword [esp + 0x11c], 1
call fcn.0044a4c1
lea ecx, [esp + 4]
mov dword [esp + 0x118], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x110]
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret

Function at 0x414b80
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x456842
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebp
push esi
lea eax, [esp + 0x24]
push 0x104
mov esi, ecx
push eax
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [0x471df4]
mov dword [esp + 8], eax
mov dword [esp + 0x130], ebp
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x1c]
mov esi, dword [esi + 0x14]
cmp eax, ebp
mov byte [esp + 0x130], 1
jbe 0x414ce2
push ebx
push edi
mov dword [esp + 0x18], eax
mov bl, 4
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [esp + 0x10]
push eax
call fcn.0044a4c1
push str.INF_
lea ecx, [esp + 0x28]
call fcn.0044a442
mov edi, eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x138], 2
push ecx
lea ecx, [esp + 0x24]
call fcn.0044a442
push edi
lea edx, [esp + 0x2c]
push eax
push edx
mov byte [esp + 0x144], 3
call fcn.0044a5b7
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x144], bl
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 5
call fcn.0044a4c1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], bl
call fcn.0044a3d4
lea ecx, [esp + 0x28]
mov byte [esp + 0x138], 3
call fcn.0044a3d4
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 2
call fcn.0044a3d4
lea ecx, [esp + 0x24]
mov byte [esp + 0x138], 1
call fcn.0044a3d4
mov eax, dword [esp + 0x14]
push 0x46ae38
push eax
call fcn.0043af00
mov edi, eax
add esp, 8
test edi, edi
je 0x414cd1
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x144]
call fcn.00449c44
push edi
mov ebp, 1
call fcn.0043ad20
add esp, 4
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x414be3
pop edi
pop ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x130], 0
call fcn.0044a3d4
lea ecx, [esp + 8]
mov dword [esp + 0x130], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x128]
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x12c
ret 4
Function at 0x415ae0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4569cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov eax, dword [esp + 0x124]
push ebx
mov ebx, ecx
push ebp
mov ecx, eax
push esi
shr ecx, 2
push edi
lea edx, [esp + 0x14]
and ecx, 1
push 0x104
push edx
mov dword [ebx], ecx
mov dword [ebx + 8], eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.INF_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.0044a442
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x130]
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x130]
push edx
mov edx, dword [esp + 0x130]
push ecx
push edx
push eax
mov ecx, ebx
mov dword [esp + 0x134], 0
call fcn.00419020
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x120], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x118]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret 0x14
Function at 0x4175c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x456ceb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [0x471df4]
push ebx
mov dword [esp + 4], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [esp + 0x130], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4176eb
mov ecx, dword [esp + 0xc]
lea edx, [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push ebx
push 0x46a894
push ecx
mov dword [esp + 0x24], 0x104
call esi
test eax, eax
jne 0x417679
lea edx, [esp + 0x14]
lea ecx, [esp + 8]
push edx
call fcn.0044a511
lea ecx, [esp + 8]
call fcn.0044a88a
push str.MILLENNIUM
lea ecx, [esp + 0xc]
call fcn.00449464
cmp eax, 0xffffffff
jne 0x4176da
push 0x46c020
lea ecx, [esp + 0xc]
call fcn.00449464
cmp eax, 0xffffffff
jne 0x4176da
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
push ebx
push str.ProductName
push edx
mov dword [esp + 0x24], 0x104
call esi
test eax, eax
jne 0x4176df
lea eax, [esp + 0x14]
lea ecx, [esp + 8]
push eax
call fcn.0044a511
lea ecx, [esp + 8]
call fcn.0044a88a
push str.MILLENNIUM
lea ecx, [esp + 0xc]
call fcn.00449464
cmp eax, 0xffffffff
jne 0x4176da
push 0x46c020
lea ecx, [esp + 0xc]
call fcn.00449464
cmp eax, 0xffffffff
je 0x4176df
mov ebx, 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
lea ecx, [esp + 4]
mov dword [esp + 0x11c], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x114]
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret

Function at 0x417720
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x471df4]
lea ecx, [esp]
push esi
xor esi, esi
push ecx
push 0x20019
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionSetupUpdates
push 0x80000002
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x417789
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push esi
push esi
push str.Windows_98_Second_Edition
push ecx
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41777e
mov esi, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
call fcn.0044a3d4
mov eax, esi
pop esi
add esp, 0x110
ret