joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100048a2
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 8

Function at 0x1000663a
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov eax, 0x1000a244
call fcn.10009aa0
sub esp, 0x1c
push esi
push edi
push str.CLSID_
lea ecx, [ebp - 0x1c]
call fcn.10001db2
push dword [0x1000b9e0]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.100020ce
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push str.InprocServer32
call fcn.10001cb8
push dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, 0x80000000
push edi
call esi
push dword [ebp - 0x28]
call fcn.100024e1
pop ecx
push dword [ebp - 0x1c]
push edi
call esi
call fcn.10006316
test al, al
pop edi
pop esi
je 0x100066d7
lea eax, [ebp - 0x10]
push eax
push 2
push 0
push dword [0x1000b9dc]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100066d7
push dword [0x1000b9e0]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x1c]
call fcn.100024e1
pop ecx
mov ecx, dword [ebp - 0xc]
push 1
pop eax
mov dword fs:[0], ecx
leave
ret

Function at 0x10009356
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.10009630
and dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp bx, ax
jne 0x1000938f
movzx ecx, ax
mov eax, ecx
mov edx, edi
shr eax, 0xa
and ecx, 0x3ff
mov dword [esi], eax
call fcn.10009393
pop edi
pop esi
pop ebx
ret
Function at 0x555020
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x109000]
push edi
or ebp, 0xffffffff
jmp 0x555042
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x555049
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x555038
mov eax, 1
add ebx, ebx
jne 0x55505b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x55506c
jne 0x55507c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55507c
dec eax
add ebx, ebx
jne 0x555078
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x555050
xor ecx, ecx
sub eax, 3
jb 0x555094
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x555106
sar eax, 1
mov ebp, eax
jmp 0x55509f
add ebx, ebx
jne 0x55509f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x5550ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x5550d0
inc ecx
add ebx, ebx
jne 0x5550bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5550b1
jne 0x5550cd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5550b1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5550f0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5550e1
jmp 0x55503e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5550f0
add edi, ecx
jmp 0x55503e
pop esi
mov edi, esi
mov ecx, 0x8d7d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x55510e
cmp byte [edi], 0x61
jne 0x55510e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x555113
lea edi, [esi + 0x151000]
mov eax, dword [edi]
or eax, eax
je 0x555182
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x156140]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x156244]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x555140
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x156248]
or eax, eax
je 0x55517c
mov dword [ebx], eax
add ebx, 4
jmp 0x55515d
call dword [esi + 0x15624c]
popal
jmp 0x5022f4
Function at 0x628c1340
Capabilities:
Access peb ldr_data
Get common file path
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov eax, dword [ecx + 0xc]
mov edi, dword [ecx + 8]
mov esi, dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov dword [esp + 4], 0
mov dword [ebp - 0x1c], eax
mov dword [esp], 0
call esi
sub esp, 8
mov ebx, eax
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 4], 0
lea ecx, [ebx + eax + 0xf]
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x20]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], ecx
mov dword [esp], eax
call esi
sub esp, 8
mov dword [esp], ebx
call sym._strlen
mov ecx, 0x2065
lea edx, [ebx + eax]
lea eax, [ebx + eax + 0xe]
mov dword [edx], 0x6e75725c
mov dword [edx + 4], 0x336c6c64
mov dword [edx + 8], 0x78652e32
mov word [edx + 0xc], cx
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._strcpy
test byte [0x628c3100], 8
jne 0x628c1443
movzx esi, word [ebp - 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], esi
call sym._WinExec16_8
sub esp, 8
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_ExitThread]
mov eax, ebx
call sym._wine_dbgstr_an.constprop.0
mov dword [esp + 0xc], str.starting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x628c4034
mov dword [esp + 4], 0x628c3100
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x628c13ff
Function at 0x628c134a
Capabilities:
Access peb ldr_data
Get common file path
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov eax, dword [ecx + 0xc]
mov edi, dword [ecx + 8]
mov esi, dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov dword [esp + 4], 0
mov dword [ebp - 0x1c], eax
mov dword [esp], 0
call esi
sub esp, 8
mov ebx, eax
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 4], 0
lea ecx, [ebx + eax + 0xf]
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x20]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], ecx
mov dword [esp], eax
call esi
sub esp, 8
mov dword [esp], ebx
call sym._strlen
mov ecx, 0x2065
lea edx, [ebx + eax]
lea eax, [ebx + eax + 0xe]
mov dword [edx], 0x6e75725c
mov dword [edx + 4], 0x336c6c64
mov dword [edx + 8], 0x78652e32
mov word [edx + 0xc], cx
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._strcpy
test byte [0x628c3100], 8
jne 0x628c1443
movzx esi, word [ebp - 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], esi
call sym._WinExec16_8
sub esp, 8
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_ExitThread]
mov eax, ebx
call sym._wine_dbgstr_an.constprop.0
mov dword [esp + 0xc], str.starting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x628c4034
mov dword [esp + 4], 0x628c3100
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x628c13ff

Function at 0x628c1510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x628c156b
cmp byte [esi + ebx - 1], 0xa
je 0x628c153f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x628c60a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x628c1ffa
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x28
mov edx, dword [ecx]
mov dword [esp], edx
mov dword [ebp - 0x1c], edx
call sym._InitTask16_4
mov edx, dword [ebp - 0x1c]
sub esp, 4
movzx eax, word [edx + 0x94]
mov dword [esp], eax
call sym._K32WOWGlobalLock16_4
sub esp, 4
mov dword [esp], eax
call sym._MapSL_4
mov edi, eax
sub esp, 4
movzx ebx, byte [edi + 0x80]
mov dword [esp + 4], 0
lea esi, [edi + 0x81]
mov eax, dword fs:[0x18]
lea ecx, [ebx + 1]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
cmp ebx, 4
jae 0x628c20b2
test ebx, ebx
jne 0x628c20d7
movzx ecx, word [edx + 0xa8]
mov byte [eax + ebx], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
movzx eax, word [edx + 0xa0]
mov dword [esp + 4], eax
movzx eax, word [edx + 0x9c]
mov dword [esp], eax
call dbg.WinMain16@16
sub esp, 0x10
movzx eax, ax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitThread]
mov ecx, dword [edi + 0x81]
lea edi, [eax + 4]
and edi, 0xfffffffc
mov dword [eax], ecx
mov ecx, dword [esi + ebx - 4]
mov dword [eax + ebx - 4], ecx
mov ecx, eax
sub ecx, edi
sub esi, ecx
add ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x628c2076
movzx ecx, byte [edi + 0x81]
mov byte [eax], cl
test bl, 2
je 0x628c2076
movzx ecx, word [esi + ebx - 2]
mov word [eax + ebx - 2], cx
jmp 0x628c2076
Function at 0x40146e
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x440074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
xor esi, esi
push esi
push 0x1a
push eax
push esi
call fcn.004032b2
lea eax, [ebp - 0x20c]
push eax
call fcn.004161f4
pop ecx
test eax, eax
je 0x401523
push ebx
mov ebx, 0x42f3e0
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00416161
lea eax, [ebp - 0x20c]
push str.PuddingDesktop
push eax
call fcn.00416161
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00416161
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
jne 0x4014fc
lea eax, [ebp - 0x20c]
push eax
call fcn.0040424f
pop ecx
cmp word [ebp - 0x20c], si
je 0x401514
lea eax, [ebp - 0x20c]
push eax
call fcn.004161f4
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00403da1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00410390
mov esp, ebp
pop ebp
ret 4

Function at 0x401535
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x440074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
xor esi, esi
push esi
push 0x1a
push eax
push esi
call fcn.004032b2
lea eax, [ebp - 0x20c]
push eax
call fcn.004161f4
pop ecx
test eax, eax
je 0x4015ea
push ebx
mov ebx, 0x42f3e0
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00416161
lea eax, [ebp - 0x20c]
push str.PuddingDesktop.users
push eax
call fcn.00416161
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00416161
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
jne 0x4015c3
lea eax, [ebp - 0x20c]
push eax
call fcn.0040424f
pop ecx
cmp word [ebp - 0x20c], si
je 0x4015db
lea eax, [ebp - 0x20c]
push eax
call fcn.004161f4
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00403da1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00410390
mov esp, ebp
pop ebp
ret 4
Function at 0x4016fc
Capabilities:
Read .ini file

Disassembly:
push 0x82c
mov eax, 0x42dd9b
call fcn.004103fb
mov edi, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0x10]
push 0x800
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x810]
push ecx
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x834], ecx
call fcn.00412490
lea eax, [edi + 0xb4]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x401759
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push dword [ebp - 0x82c]
push dword [ebp - 0x830]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.00401122
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x834], 1
jb 0x40179f
mov eax, dword [esi]
jmp 0x4017a1
mov eax, esi
push ebx
push eax
call fcn.00416192
pop ecx
pop ecx
test eax, eax
jne 0x4017ed
cmp byte [edi + 1], 0
lea eax, [ebp - 0x828]
push ebx
push dword [ebp - 0x82c]
mov ecx, edi
push dword [ebp - 0x830]
push eax
je 0x4017d1
call fcn.00401617
jmp 0x4017d6
call fcn.004016d2
push eax
mov ecx, esi
call fcn.00401383
push 0
push 1
lea ecx, [ebp - 0x828]
call fcn.004039b5
mov eax, esi
call fcn.004103b6
ret 0x10

Function at 0x401967
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x440074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [esi + 0x24]
cmp dword [eax + 0x14], 8
jb 0x401988
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.00404053
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4019c0
lea eax, [ebp - 0x20c]
push eax
call fcn.0040424f
pop ecx
lea eax, [ebp - 0x20c]
push str.Related.ini
push eax
call fcn.00416161
cmp word [ebp - 0x20c], 0
pop ecx
pop ecx
jne 0x4019e1
xor eax, eax
jmp 0x4019ee
lea eax, [ebp - 0x20c]
push eax
call fcn.004161f4
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x9c]
call fcn.00403da1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00410390
mov esp, ebp
pop ebp
ret
Function at 0x401a10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc3c
mov eax, dword [0x440074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc34]
push esi
push edi
push 0x208
xor edi, edi
mov esi, ecx
push edi
push eax
mov dword [ebp - 0xc3c], esi
call fcn.00412490
push 0x208
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.00412490
push 0x208
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.00412490
push 0x208
lea eax, [ebp - 0xa2c]
push edi
push eax
call fcn.00412490
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00412490
push 0x208
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.00412490
add esp, 0x48
lea eax, [ebp - 0xc34]
mov ecx, esi
push edi
push 0x1a
push eax
push edi
call fcn.004032b2
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004161d2
lea eax, [ebp - 0x20c]
push eax
call fcn.004161f4
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004125ea
add esp, 0x14
test eax, eax
jne 0x401aef
mov ecx, esi
jmp 0x401c31
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.004161d2
lea eax, [ebp - 0x824]
push str.Local
push eax
call fcn.00416161
add esp, 0x10
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
mov esi, edi
inc ecx
test eax, eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
cmovne esi, ecx
push eax
call fcn.004161d2
lea eax, [ebp - 0x61c]
push str.LocalLow
push eax
call fcn.00416161
add esp, 0x10
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, edi
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa2c]
mov dword [ebp - 0xc38], ecx
push eax
call fcn.004161d2
lea eax, [ebp - 0xa2c]
push str.Roaming
push eax
call fcn.00416161
add esp, 0x10
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, edi
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x401c2b
cmp dword [ebp - 0xc38], edi
je 0x401c2b
test ecx, ecx
je 0x401c2b
push str.PuddingDesktop
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push 0x42f3a4
push eax
call fcn.00404053
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401c02
lea eax, [ebp - 0x414]
push eax
call fcn.0040424f
pop ecx
cmp word [ebp - 0x414], di
je 0x401c1a
lea eax, [ebp - 0x414]
push eax
call fcn.004161f4
pop ecx
mov edi, eax
push edi
lea eax, [ebp - 0x414]
mov ecx, ebx
push eax
call fcn.00403da1
jmp 0x401c37
mov ecx, dword [ebp - 0xc3c]
push ebx
call fcn.0040146e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410390
mov esp, ebp
pop ebp
ret 4
Function at 0x401c4a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc3c
mov eax, dword [0x440074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc34]
push esi
push edi
push 0x208
xor edi, edi
mov esi, ecx
push edi
push eax
mov dword [ebp - 0xc3c], esi
call fcn.00412490
push 0x208
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.00412490
push 0x208
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.00412490
push 0x208
lea eax, [ebp - 0xa2c]
push edi
push eax
call fcn.00412490
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00412490
push 0x208
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.00412490
add esp, 0x48
lea eax, [ebp - 0xc34]
mov ecx, esi
push edi
push 0x1a
push eax
push edi
call fcn.004032b2
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004161d2
lea eax, [ebp - 0x20c]
push eax
call fcn.004161f4
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004125ea
add esp, 0x14
test eax, eax
jne 0x401d29
mov ecx, esi
jmp 0x401e6b
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.004161d2
lea eax, [ebp - 0x824]
push str.Local
push eax
call fcn.00416161
add esp, 0x10
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
mov esi, edi
inc ecx
test eax, eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
cmovne esi, ecx
push eax
call fcn.004161d2
lea eax, [ebp - 0x61c]
push str.LocalLow
push eax
call fcn.00416161
add esp, 0x10
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, edi
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa2c]
mov dword [ebp - 0xc38], ecx
push eax
call fcn.004161d2
lea eax, [ebp - 0xa2c]
push str.Roaming
push eax
call fcn.00416161
add esp, 0x10
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, edi
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x401e65
cmp dword [ebp - 0xc38], edi
je 0x401e65
test ecx, ecx
je 0x401e65
push str.PuddingDesktop.users
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push 0x42f3a4
push eax
call fcn.00404053
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401e3c
lea eax, [ebp - 0x414]
push eax
call fcn.0040424f
pop ecx
cmp word [ebp - 0x414], di
je 0x401e54
lea eax, [ebp - 0x414]
push eax
call fcn.004161f4
pop ecx
mov edi, eax
push edi
lea eax, [ebp - 0x414]
mov ecx, ebx
push eax
call fcn.00403da1
jmp 0x401e71
mov ecx, dword [ebp - 0xc3c]
push ebx
call fcn.00401535
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410390
mov esp, ebp
pop ebp
ret 4
Function at 0x401e84
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x440074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [esi + 0x24]
cmp dword [eax + 0x14], 8
jb 0x401ea5
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.00404053
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401edd
lea eax, [ebp - 0x20c]
push eax
call fcn.0040424f
pop ecx
lea eax, [ebp - 0x20c]
push str.Config.ini
push eax
call fcn.00416161
cmp word [ebp - 0x20c], 0
pop ecx
pop ecx
jne 0x401efe
xor eax, eax
jmp 0x401f0b
lea eax, [ebp - 0x20c]
push eax
call fcn.004161f4
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x3c]
call fcn.00403da1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00410390
mov esp, ebp
pop ebp
ret

Function at 0x401fbb
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x440074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
mov esi, ecx
call fcn.00412490
add esp, 0xc
lea eax, [ebp - 0x20c]
push edi
push 0x26
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x20c], di
je 0x402012
lea eax, [ebp - 0x20c]
push eax
call fcn.004161f4
pop ecx
mov edi, eax
push edi
lea eax, [ebp - 0x20c]
add esi, 0x114
push eax
mov ecx, esi
call fcn.00403da1
mov edi, 0x42f3e0
push edi
call fcn.004161f4
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00403ae2
cmp dword [esi + 0x14], 8
jb 0x402046
mov eax, dword [esi]
jmp 0x402048
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402068
mov edi, str.C:Program_Files_
push edi
call fcn.004161f4
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00403da1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00410390
mov esp, ebp
pop ebp
ret
Function at 0x402bc2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x440074]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x4410f0]
test al, al
jne 0x402c5b
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00412490
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x402c52
lea eax, [ebp - 0x20c]
push eax
call fcn.004199a4
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.0041268b
pop ecx
pop ecx
test eax, eax
jne 0x402c4a
lea eax, [ebp - 0x20c]
push str.cocuments_and_settingslocalService
push eax
call fcn.0041268b
pop ecx
pop ecx
test eax, eax
je 0x402c52
mov byte [0x4410f0], bl
jmp 0x402c58
mov bl, byte [0x4410f0]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410390
mov esp, ebp
pop ebp
ret