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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e78b0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x53f1e4]
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 - 0x34], ebx
mov dword [ebp - 4], ebx
push 0x2a
xor eax, eax
push str.SoftwareMicrosoftWindowsCurrentVersion_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.00404960
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00403e00
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 0x409c49
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp - 0x34]
push edx
push ebx
push eax
push ebx
push ebx
push ebx
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x409ca6
push str.RegWriteChannelInfo
call fcn.00408b10
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x409c84
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b1c22
add esp, 4
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp eax, ebx
je 0x409ca2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x409cff
mov eax, dword [edi + 0x10]
cmp dword [edi + 0x14], esi
jb 0x409cb0
mov edi, dword [edi]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x34]
push edx
push edi
push 1
push ebx
push str.WEMediaChannelName
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete byte [ebp - 0x2d]
cmp dword [ebp - 0x18], esi
jb 0x409cde
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b1c22
add esp, 4
mov eax, dword [ebp - 0x34]
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp eax, ebx
je 0x409cfc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x2d]
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.004b1c2d
mov esp, ebp
pop ebp
ret
Function at 0x409d20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], ebx
xor ecx, ecx
push 0x34
mov word [ebp - 0x2c], cx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.00404960
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00403e00
movzx eax, byte [ebp + 0xc]
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 0x409dac
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x34]
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 0x409e09
push str.RegWriteUninstInfo
call fcn.00408b10
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x409de7
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b1c22
add esp, 4
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp eax, ebx
je 0x409e05
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x409e74
mov ecx, dword [edi + 0x10]
cmp dword [edi + 0x14], esi
jb 0x409e15
mov eax, dword [edi]
jmp 0x409e17
mov eax, edi
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0x34]
push 1
push ebx
push str.ChannelName
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x38]
mov edx, edi
call fcn.00409bc0
add esp, 4
mov byte [ebp - 0x2d], al
cmp dword [ebp - 0x18], esi
jb 0x409e53
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b1c22
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
cmp eax, ebx
je 0x409e71
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1c2d
mov esp, ebp
pop ebp
ret
Function at 0x409e90
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7878
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x53f1e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
movzx ecx, cl
neg ecx
sbb ecx, ecx
lea eax, [ebp - 0x10]
push eax
and ecx, 0x100
add ecx, 0xf003f
push ecx
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409f1d
push str.RegDelChannelInfo
call fcn.00408b10
mov eax, dword [ebp - 0x10]
add esp, 4
test eax, eax
je 0x409f0b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x409f27
mov eax, dword [esi]
jmp 0x409f29
mov eax, esi
mov edx, dword [ebp - 0x10]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov eax, dword [ebp - 0x10]
sete bl
test eax, eax
je 0x409f47
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 esp, ebp
pop ebp
ret

Function at 0x409f60
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 0x409fad
mov eax, dword [ebp - 4]
test eax, eax
je 0x409fa7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x409fb7
mov eax, dword [esi]
jmp 0x409fb9
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 0x409fd8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ab10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x53f1e4]
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 str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push ecx
mov dword [ebp - 4], eax
call fcn.0040add0
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 0x40abbd
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 0x40ac62
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.004b9c60
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 0x40ac62
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x40ac40
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40ac40
sub eax, edx
sar eax, 1
cmp eax, edi
jbe 0x40ac62
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00404960
cmp dword [ebp - 0x220], ebx
jb 0x40ac79
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004b1c22
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 0x40aca3
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.004b1c2d
mov esp, ebp
pop ebp
ret
Function at 0x40acc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e776b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x53f1e4]
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 0x40ad41
push str.RegWritePca
call fcn.00408b10
mov eax, dword [ebp - 0x21c]
add esp, 4
test eax, eax
je 0x40ad3d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40ad98
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 0x40ad96
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.004b1c2d
mov esp, ebp
pop ebp
ret
Function at 0x40d850
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x118
lea ecx, [ebp - 0x11c]
push 0
push ecx
mov dword [ebp - 0x120], 0x11c
call fcn.004b9c60
add esp, 0xc
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40d8b1
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b1c2d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffffc
push esi
cmp eax, 6
ja case.0x40d8c4.7
jmp dword [eax*4 + 0x40daa0]
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x40d903
cmp eax, 0xa
je 0x40d8f3
cmp eax, 0x5a
jne 0x40da3a
push edi
mov edx, str.Windows_Me
call fcn.00404090
jmp 0x40da3a
push edi
mov edx, str.Windows_98
call fcn.00404090
jmp 0x40da3a
mov eax, dword [ebp - 0x110]
cmp eax, 2
jne 0x40d91e
push edi
mov edx, str.Windows_NT_4.0
call fcn.00404090
jmp 0x40da3a
cmp eax, 1
jne 0x40da3a
push edi
mov edx, str.Windows_95
call fcn.00404090
jmp 0x40da3a
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x40d9b6
dec eax
je 0x40d9a6
dec eax
jne 0x40da3a
cmp byte [ebp - 6], 1
jne 0x40d96c
cmp word [ebp - 0x144], 9
jne 0x40d96c
push edi
mov edx, str.Windows_XP_Professional_x64_Edition
call fcn.00404090
jmp 0x40da3a
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call esi
test eax, eax
jne 0x40d98a
push edi
mov edx, str.Windows_Server_2003
call fcn.00404090
jmp 0x40da3a
push 0x59
call esi
test eax, eax
je 0x40da3a
push edi
mov edx, str.Windows_Server_2003_R2
call fcn.00404090
jmp 0x40da3a
push edi
mov edx, str.Windows_XP
call fcn.00404090
jmp 0x40da3a
push edi
mov edx, str.Windows_2000
call fcn.00404090
jmp 0x40da3a
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x40da00
dec eax
je 0x40d9e1
dec eax
jne 0x40da3a
push edi
mov edx, str.Win_8
call fcn.00404090
jmp 0x40da3a
cmp byte [ebp - 6], 1
push edi
jne 0x40d9f4
mov edx, str.Win_7
call fcn.00404090
jmp 0x40da3a
mov edx, str.Windows_Server_2008_R2
call fcn.00404090
jmp 0x40da3a
cmp byte [ebp - 6], 1
push edi
jne 0x40da13
mov edx, str.Windows_Vista
call fcn.00404090
jmp 0x40da3a
mov edx, str.Windows_Server_2008
call fcn.00404090
jmp 0x40da3a
push edi
mov edx, str.Win_10
call fcn.00404090
jmp 0x40da3a
push 6
push 0x5072bc
mov ecx, edi
call fcn.00404960
lea eax, [ebp - 0x10c]
lea edx, [eax + 2]
pop esi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40da44
sub eax, edx
sar eax, 1
je 0x40da8d
push 1
mov eax, 0x5072cc
mov ecx, edi
call fcn.00403f00
lea eax, [ebp - 0x10c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40da70
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x10c]
mov ecx, edi
call fcn.00403f00
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.004b1c2d
mov esp, ebp
pop ebp
ret
Function at 0x40dac0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x118
lea ecx, [ebp - 0x11c]
push 0
push ecx
mov dword [ebp - 0x120], 0x11c
call fcn.004b9c60
add esp, 0xc
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40db21
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b1c2d
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.004b1c2d
mov esp, ebp
pop ebp
ret

Function at 0x40dc30
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6a5b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x53f1e4]
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 edi, 7
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x220], edi
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.004b9c60
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 0x40dd01
xor ecx, ecx
xor eax, eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov word [esi], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40dcd0
sub eax, edx
sar eax, 1
push eax
push ebx
mov ecx, esi
call fcn.00404960
cmp dword [ebp - 0x220], 8
jb 0x40ddd0
mov edx, dword [ebp - 0x234]
push edx
jmp 0x40ddc8
push 0x5072d0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x40dd42
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40dd20
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00404960
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x40dd57
lea eax, [ebp - 0x234]
mov edi, dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push eax
push ebx
call edi
push 0xe
mov eax, str.ApplicationId
lea ecx, [ebp - 0x234]
call fcn.00403f00
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x40dd88
lea eax, [ebp - 0x234]
push eax
push ebx
call edi
push 3
mov eax, 0x507300
lea ecx, [ebp - 0x234]
call fcn.00403f00
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x234]
mov word [esi], dx
call fcn.00404350
cmp dword [ebp - 0x220], 8
jb 0x40ddd0
mov eax, dword [ebp - 0x234]
push eax
call fcn.004b1c22
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.004b1c2d
mov esp, ebp
pop ebp
ret
Function at 0x40ddf0
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7703
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x53f1e4]
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 ecx, [ebp - 0x7c]
call fcn.0040dc30
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x7c]
mov ebx, 8
cmp dword [ebp - 0x68], ebx
jae 0x40de3b
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
je 0x40df25
mov eax, dword [ebp - 0x7c]
cmp dword [ebp - 0x68], ebx
jae 0x40de55
lea eax, [ebp - 0x7c]
push 0x506840
push eax
call fcn.004b302f
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x40de85
cmp dword [ebp - 0x68], ebx
jb 0x40df36
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.004b1c22
add esp, 4
xor eax, eax
jmp 0x40df7c
push 0x4e
lea eax, [ebp - 0x5e]
xor edx, edx
push edi
push eax
mov word [ebp - 0x60], dx
call fcn.004b9c60
push esi
push 1
lea ecx, [ebp - 0x60]
push 0x50
push ecx
call fcn.004b3417
push esi
call fcn.004b34a1
add esp, 0x20
mov esi, 7
xor edx, edx
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], edi
mov word [ebp - 0x98], dx
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40ded2
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x98]
call fcn.00404960
cmp dword [ebp - 0x88], edi
jne 0x40df3a
cmp dword [ebp - 0x84], ebx
jb 0x40df10
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.004b1c22
add esp, 4
xor edx, edx
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], edi
mov word [ebp - 0x98], dx
cmp dword [ebp - 0x68], ebx
jb 0x40df36
mov eax, dword [ebp - 0x7c]
push eax
call fcn.004b1c22
add esp, 4
xor eax, eax
jmp 0x40df7c
cmp dword [ebp - 0x84], ebx
jb 0x40df51
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.004b1c22
add esp, 4
xor edx, edx
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], edi
mov word [ebp - 0x98], dx
cmp dword [ebp - 0x68], ebx
jb 0x40df77
mov eax, dword [ebp - 0x7c]
push eax
call fcn.004b1c22
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1c2d
mov esp, ebp
pop ebp
ret
Function at 0x40ef20
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e69c2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push 0x1a
mov dword [ebp - 4], edi
push edi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40ef87
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
mov ecx, esi
call fcn.00404960
mov dword [ebp - 4], edi
push 8
mov eax, 0x507350
mov ecx, esi
mov dword [ebp - 0x21c], 1
call fcn.00403f00
cmp dword [esi + 0x14], 8
jb 0x40efca
mov eax, dword [esi]
jmp 0x40efcc
mov eax, esi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 1
mov eax, 0x5062dc
mov ecx, esi
call fcn.00403f00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1c2d
mov esp, ebp
pop ebp
ret

Function at 0x40f250
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e696b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x53f1e4]
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
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x220], 7
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.004b9c60
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 0x40f30a
mov dword [esi + 0x10], edi
xor ecx, ecx
mov dword [esi + 0x14], 7
lea edi, [ebp - 0x234]
mov word [esi], cx
call fcn.00404350
cmp dword [ebp - 0x220], 8
jb 0x40f3a1
mov edx, dword [ebp - 0x234]
push edx
jmp 0x40f399
push 0x5072d0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x40f352
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40f330
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00404960
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x40f367
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov dword [esi + 0x10], edi
xor edx, edx
mov dword [esi + 0x14], 7
lea edi, [ebp - 0x234]
mov word [esi], dx
call fcn.00404350
cmp dword [ebp - 0x220], 8
jb 0x40f3a1
mov eax, dword [ebp - 0x234]
push eax
call fcn.004b1c22
add esp, 4
mov eax, esi
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.004b1c2d
mov esp, ebp
pop ebp
ret