joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ff0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0be8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, 0x54d674
lea ecx, [ebp - 0x5c]
call fcn.0040f2d0
push eax
xor esi, esi
mov eax, str.config.ini
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], esi
call fcn.004070c0
add esp, 4
mov ebx, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x48], ebx
jb 0x404058
mov eax, dword [ebp - 0x5c]
push eax
call fcn.004bb4d8
add esp, 4
xor eax, eax
xor ecx, ecx
xor edx, edx
mov edi, 7
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], esi
mov word [ebp - 0x5c], cx
mov word [ebp - 0x24], dx
cmp dword [ebp - 0x64], ebx
jae 0x40408c
lea eax, [ebp - 0x78]
push eax
push 9
lea eax, [ebp - 0x24]
push eax
push 0x511608
push 0x51160c
push 0x511624
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], esi
mov word [ebp - 0x40], cx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4040c0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x40]
call fcn.00408810
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
push 0x511608
mov edi, 1
lea ecx, [ebp - 0x40]
call fcn.00406090
test eax, eax
mov edi, 8
setne bl
cmp dword [ebp - 0x2c], edi
jb 0x404110
mov eax, dword [ebp - 0x40]
push eax
call fcn.004bb4d8
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], esi
mov word [ebp - 0x40], cx
cmp dword [ebp - 0x64], edi
jb 0x404131
mov edx, dword [ebp - 0x78]
push edx
call fcn.004bb4d8
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret

Function at 0x4089c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0b08
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x54c1b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x54bf28]
mov edx, dword [eax + 0xc]
mov ecx, 0x54bf28
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x512160
lea edi, [ebp - 0x10]
call fcn.00407fa0
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408dd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f26e0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
push 0x34
xor eax, eax
push 0x512188
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.00408810
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00407720
movzx eax, byte [ebp + 8]
mov ecx, dword [ebp - 0x2c]
neg eax
sbb eax, eax
and eax, 0x100
mov esi, 8
add eax, 0xf003f
cmp dword [ebp - 0x18], esi
jae 0x408e59
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x30]
push edx
push ebx
push eax
push ebx
push ebx
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x408eb6
push str.RegWriteUpdateexeVersion
call fcn.004089c0
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x408e94
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004bb4d8
add esp, 4
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp eax, ebx
je 0x408eb2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x408f0c
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x408edb
cmp dword [edi + 0x14], esi
jb 0x408ec4
mov edi, dword [edi]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x30]
push edx
push edi
push 1
push ebx
push str.UpdateExeVersion
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x18], esi
jb 0x408eec
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004bb4d8
add esp, 4
mov eax, dword [ebp - 0x30]
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp eax, ebx
je 0x408f0a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret
Function at 0x409aa0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f25c0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
push 0x34
xor eax, eax
push 0x512188
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.00408810
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00407720
movzx eax, byte [ebp + 8]
mov ecx, dword [ebp - 0x2c]
neg eax
sbb eax, eax
and eax, 0x100
mov esi, 8
add eax, 0xf003f
cmp dword [ebp - 0x18], esi
jae 0x409b29
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x30]
push edx
push ebx
push eax
push ebx
push ebx
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x409b86
push str.RegWriteUninstInfo
call fcn.004089c0
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x409b64
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004bb4d8
add esp, 4
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp eax, ebx
je 0x409b82
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x409bd8
mov eax, dword [edi + 0x10]
cmp dword [edi + 0x14], esi
jb 0x409b90
mov edi, dword [edi]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x30]
push edx
push edi
push 1
push ebx
push str.ChannelName
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x18], esi
jb 0x409bb8
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004bb4d8
add esp, 4
mov eax, dword [ebp - 0x30]
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp eax, ebx
je 0x409bd6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret

Function at 0x409c00
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx ecx, cl
neg ecx
sbb ecx, ecx
lea eax, [ebp - 4]
push eax
and ecx, 0x100
add ecx, 0xf003f
push ecx
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409c4d
mov eax, dword [ebp - 4]
test eax, eax
je 0x409c47
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x409c57
mov eax, dword [esi]
jmp 0x409c59
mov eax, esi
mov edx, dword [ebp - 4]
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov eax, dword [ebp - 4]
sete bl
test eax, eax
je 0x409c78
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a7a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x244], edi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov dword [ebp - 0x248], esi
mov ebx, ecx
mov word [esi], ax
mov eax, 1
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x23c], 0x104
mov dword [ebp - 0x238], edi
lea ecx, [ebp - 0x234]
push 0x512188
push ecx
mov dword [ebp - 4], eax
call fcn.0040ac00
add esp, 8
movzx eax, byte [ebp + 8]
neg eax
sbb eax, eax
and eax, 0x100
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x234]
mov ebx, 8
add eax, 0x20019
cmp dword [ebp - 0x220], ebx
jae 0x40a84d
lea ecx, [ebp - 0x234]
lea edx, [ebp - 0x238]
push edx
push eax
push edi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a8f2
push 0x206
lea ecx, [ebp - 0x216]
push edi
push ecx
mov dword [ebp - 0x23c], 0x104
mov dword [ebp - 0x240], edi
mov word [ebp - 0x218], ax
call fcn.004c3610
add esp, 0xc
lea edx, [ebp - 0x23c]
push edx
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
push ecx
push edi
push str.ChannelName
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a8f2
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x40a8d0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40a8d0
sub eax, edx
sar eax, 1
cmp eax, edi
jbe 0x40a8f2
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00408810
cmp dword [ebp - 0x220], ebx
jb 0x40a909
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004bb4d8
add esp, 4
mov eax, dword [ebp - 0x238]
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], dx
cmp eax, edi
je 0x40a933
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret
Function at 0x40a950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0a78
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x244], edi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov dword [ebp - 0x248], esi
mov ebx, ecx
mov word [esi], ax
mov eax, 1
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x23c], 0x104
mov dword [ebp - 0x238], edi
lea ecx, [ebp - 0x234]
push 0x512188
push ecx
mov dword [ebp - 4], eax
call fcn.0040ac00
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x234]
mov ebx, 8
cmp dword [ebp - 0x220], ebx
jae 0x40a9eb
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x238]
push edx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40aa92
push 0x206
lea ecx, [ebp - 0x216]
push edi
push ecx
mov dword [ebp - 0x23c], 0x104
mov dword [ebp - 0x240], edi
mov word [ebp - 0x218], ax
call fcn.004c3610
add esp, 0xc
lea edx, [ebp - 0x23c]
push edx
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
push ecx
push edi
push str.SubChannelName
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40aa92
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40aa70
sub eax, edx
sar eax, 1
cmp eax, edi
jbe 0x40aa92
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00408810
cmp dword [ebp - 0x220], ebx
jb 0x40aaa9
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004bb4d8
add esp, 4
mov eax, dword [ebp - 0x238]
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], dx
cmp eax, edi
je 0x40aad3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret
Function at 0x40aaf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f247b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40ab71
push str.RegWritePca
call fcn.004089c0
mov eax, dword [ebp - 0x21c]
add esp, 4
test eax, eax
je 0x40ab6d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40abc8
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 0x21c]
push 4
lea edx, [ebp - 0x220]
push edx
push 4
push 0
lea eax, [ebp - 0x218]
push eax
push ecx
mov dword [ebp - 0x220], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, dword [ebp - 0x21c]
sete bl
test eax, eax
je 0x40abc6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret

Function at 0x40da80
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push pe_nt_image_headers32
lea ecx, [ebp - 0x11c]
push 0
push ecx
mov dword [ebp - 0x120], 0x11c
call fcn.004c3610
add esp, 0xc
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40dae1
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret
Function at 0x40dcc0
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2313
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040dbf0
add esp, 4
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x7c]
mov ebx, 8
cmp dword [ebp - 0x68], ebx
jae 0x40dd0f
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
je 0x40ddf9
mov eax, dword [ebp - 0x7c]
cmp dword [ebp - 0x68], ebx
jae 0x40dd29
lea eax, [ebp - 0x7c]
push 0x5112bc
push eax
call fcn.004bc673
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x40dd59
cmp dword [ebp - 0x68], ebx
jb 0x40de0a
mov edx, dword [ebp - 0x7c]
push edx
call fcn.004bb4d8
add esp, 4
xor al, al
jmp 0x40de4d
push 0x4e
lea ecx, [ebp - 0x5e]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x60], ax
call fcn.004c3610
push esi
push 1
lea edx, [ebp - 0x60]
push 0x50
push edx
call fcn.004bca5b
push esi
call fcn.004bcae5
add esp, 0x20
mov esi, 7
xor eax, eax
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], edi
mov word [ebp - 0x98], ax
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40dda6
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x98]
call fcn.00408810
cmp dword [ebp - 0x88], edi
jne 0x40de0e
cmp dword [ebp - 0x84], ebx
jb 0x40dde4
mov edx, dword [ebp - 0x98]
push edx
call fcn.004bb4d8
add esp, 4
xor eax, eax
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], edi
mov word [ebp - 0x98], ax
cmp dword [ebp - 0x68], ebx
jb 0x40de0a
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.004bb4d8
add esp, 4
xor al, al
jmp 0x40de4d
cmp dword [ebp - 0x84], ebx
jb 0x40de25
mov edx, dword [ebp - 0x98]
push edx
call fcn.004bb4d8
add esp, 4
xor eax, eax
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], edi
mov word [ebp - 0x98], ax
cmp dword [ebp - 0x68], ebx
jb 0x40de4b
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.004bb4d8
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret
Function at 0x40f0b0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f07cb
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov esi, 7
xor eax, eax
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], ax
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push edi
mov dword [ebp - 4], edi
push edx
mov word [ebp - 0x218], cx
call fcn.004c3610
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40f167
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x10], edi
xor ecx, ecx
lea edi, [ebp - 0x234]
mov esi, ebx
mov word [ebx], cx
call fcn.00407a10
cmp dword [ebp - 0x220], 8
jb 0x40f2a5
mov edx, dword [ebp - 0x234]
push edx
jmp 0x40f29d
lea esi, [ebp - 0x250]
cmp dword [0x54d684], edi
jne 0x40f1e4
call fcn.00403fc0
cmp dword [eax + 0x14], 8
jb 0x40f182
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [ebp - 0x23c], 8
mov esi, eax
jb 0x40f1aa
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.004bb4d8
add esp, 4
cmp esi, edi
je 0x40f254
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x40f1c0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40f1c0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.00408810
jmp 0x40f254
call fcn.00403fc0
mov edi, 8
cmp dword [eax + 0x14], edi
jb 0x40f1f5
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, eax
cmp dword [ebp - 0x23c], edi
jb 0x40f21c
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.004bb4d8
add esp, 4
test esi, esi
je 0x40f252
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f230
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.00408810
xor edi, edi
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x40f269
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov dword [ebx + 0x10], edi
xor eax, eax
mov dword [ebx + 0x14], 7
lea edi, [ebp - 0x234]
mov esi, ebx
mov word [ebx], ax
call fcn.00407a10
cmp dword [ebp - 0x220], 8
jb 0x40f2a5
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004bb4d8
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret
Function at 0x40f2d0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f078b
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push ebx
mov dword [ebp - 4], ebx
push edx
mov word [ebp - 0x218], cx
call fcn.004c3610
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40f38d
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x234]
mov word [esi], cx
call fcn.00407a10
cmp dword [ebp - 0x220], 8
jb 0x40f4a5
mov edx, dword [ebp - 0x234]
push edx
jmp 0x40f49d
lea ecx, [ebp - 0x250]
cmp dword [edi + 0x10], ebx
jne 0x40f3f0
mov edx, 0x54d674
call fcn.00403e20
cmp dword [eax + 0x14], 8
jb 0x40f3aa
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [ebp - 0x23c], 8
mov edi, eax
jb 0x40f3d2
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.004bb4d8
add esp, 4
cmp edi, ebx
je 0x40f456
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40f3e3
jmp 0x40f43f
mov edx, edi
call fcn.00403e20
cmp dword [eax + 0x14], 8
jb 0x40f3ff
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [ebp - 0x23c], 8
mov edi, eax
jb 0x40f427
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.004bb4d8
add esp, 4
cmp edi, ebx
je 0x40f456
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40f434
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.00408810
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x40f46b
lea eax, [ebp - 0x234]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x234]
mov word [esi], ax
call fcn.00407a10
cmp dword [ebp - 0x220], 8
jb 0x40f4a5
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004bb4d8
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret
Function at 0x40f720
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
mov dword [ebp - 0x210], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
lea edx, [eax + 2]
jmp 0x40f770
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f770
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
mov ecx, esi
call fcn.00408810
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret