joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4050af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x408028
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00404b7c
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x4010f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4050df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x408034
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00404b7c
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x401180
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40510f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x40803c
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00404b7c
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x404230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40584f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x40817c
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00404b7c
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x404910
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40589f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x4082f4
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00404b7c
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x404a00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4058cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x408310
push ecx
push 8
push 1
push 5
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00404b7c
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x404ae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4058ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x40831c
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00404b7c
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x403f80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4c
mov eax, dword [0x4e5114]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa48], ecx
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0048e340
add esp, 0xc
push str.Config
mov ecx, dword [ebp - 0xa48]
add ecx, 0x28
call fcn.00401c90
push eax
push 0x4cf978
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00401b30
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403ff7
lea eax, [ebp - 0x20c]
push eax
call fcn.0040db40
add esp, 4
push 0x208
push 0
lea ecx, [ebp - 0x61c]
push ecx
call fcn.0048e340
add esp, 0xc
push str.userconfig.ini
lea edx, [ebp - 0x20c]
push edx
push 0x4cf9a4
lea eax, [ebp - 0x61c]
push eax
call fcn.00401b30
add esp, 0x10
lea ecx, [ebp - 0x61c]
push ecx
mov ecx, dword [ebp - 0xa48]
add ecx, 0x88
call fcn.00406c60
push 0x208
push 0
lea edx, [ebp - 0x824]
push edx
call fcn.0048e340
add esp, 0xc
push 0x4cf9b0
lea eax, [ebp - 0x20c]
push eax
push 0x4cf9c8
lea ecx, [ebp - 0x824]
push ecx
call fcn.00401b30
add esp, 0x10
lea edx, [ebp - 0x824]
push edx
mov ecx, dword [ebp - 0xa48]
add ecx, 0xa0
call fcn.00406c60
push 0x208
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.0048e340
add esp, 0xc
push str.XsfyPath
lea ecx, [ebp - 0xa44]
push ecx
call fcn.0040dc90
add esp, 8
mov dword [ebp - 0xa4c], eax
mov ecx, dword [ebp - 0xa4c]
call fcn.00401c90
push eax
push 0x4cf9e8
lea edx, [ebp - 0x414]
push edx
call fcn.00401b30
add esp, 0xc
lea ecx, [ebp - 0xa44]
call fcn.004022e0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40410e
lea ecx, [ebp - 0x414]
push ecx
call fcn.0040db40
add esp, 4
push 0x208
push 0
lea edx, [ebp - 0xa2c]
push edx
call fcn.0048e340
add esp, 0xc
push str.Config.ini
lea eax, [ebp - 0x414]
push eax
push 0x4cfa08
lea ecx, [ebp - 0xa2c]
push ecx
call fcn.00401b30
add esp, 0x10
lea edx, [ebp - 0xa2c]
push edx
mov ecx, dword [ebp - 0xa48]
add ecx, 0xb8
call fcn.00406c60
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b588
mov esp, ebp
pop ebp
ret
Function at 0x404cd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af5c6
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x4e5114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x46c], ecx
mov ecx, dword [ebp - 0x46c]
call fcn.00404f50
push eax
mov ecx, dword [ebp - 0x46c]
add ecx, 0xd0
call fcn.00406c60
push 0x4cfaf4
mov ecx, dword [ebp - 0x46c]
add ecx, 0xd0
call fcn.00405d80
push 0x4cfb10
push 0x4cfb20
push 0x4cfb28
lea eax, [ebp - 0x450]
push eax
mov ecx, dword [ebp - 0x46c]
call fcn.00405a60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x450]
push ecx
mov ecx, dword [ebp - 0x46c]
add ecx, 0xe8
call fcn.00405e10
push 0x4cfb38
mov edx, dword [ebp - 0x46c]
add edx, 0xe8
push edx
call fcn.004017a0
add esp, 8
movzx eax, al
test eax, eax
je 0x404df6
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.0048e340
add esp, 0xc
mov ecx, dword [ebp - 0x46c]
add ecx, 0xd0
call fcn.00401c90
push eax
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x4cfb48
push 0x4cfb58
push 0x4cfb60
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x46c]
add ecx, 0xe8
call fcn.00406c60
push 0x4cfb70
mov ecx, dword [ebp - 0x46c]
add ecx, 0xe8
push ecx
call fcn.004017a0
add esp, 8
movzx edx, al
test edx, edx
je 0x404eae
push 0x208
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.0048e340
add esp, 0xc
mov ecx, dword [ebp - 0x46c]
add ecx, 0x58
push ecx
lea ecx, [ebp - 0x438]
call fcn.004027f0
mov byte [ebp - 4], 1
push 0x4cfb80
lea ecx, [ebp - 0x438]
call fcn.00405d80
lea ecx, [ebp - 0x438]
call fcn.00401c90
push eax
push 0x104
lea edx, [ebp - 0x420]
push edx
push 0x4cfb9c
push 0x4cfbac
push 0x4cfbb4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp - 0x46c]
add ecx, 0xe8
call fcn.00406c60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.004022e0
push 0x4cfbc4
mov ecx, dword [ebp - 0x46c]
add ecx, 0xe8
push ecx
call fcn.004017a0
add esp, 8
movzx edx, al
test edx, edx
je 0x404f19
push str.ftwfgf
push 0x4cfbe4
push 0x4cfbec
lea eax, [ebp - 0x468]
push eax
mov ecx, dword [ebp - 0x46c]
call fcn.004053f0
mov dword [ebp - 0x470], eax
mov ecx, dword [ebp - 0x470]
push ecx
mov ecx, dword [ebp - 0x46c]
add ecx, 0xe8
call fcn.00401560
lea ecx, [ebp - 0x468]
call fcn.004022e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
call fcn.004022e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b588
mov esp, ebp
pop ebp
ret
Function at 0x4052d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af5f8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4e5114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.004020b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00405d30
movzx ecx, al
test ecx, ecx
je 0x40532e
mov ecx, dword [ebp - 0x44]
call fcn.00404f50
push eax
lea ecx, [ebp - 0x28]
call fcn.00406c60
lea ecx, [ebp - 0x28]
call fcn.00401c90
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40535c
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004022e0
mov eax, dword [ebp - 0x48]
jmp 0x4053c8
push 0x4cfd30
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.00406090
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.00401c90
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4053a7
mov dword [ebp - 0x4c], 1
lea ecx, [ebp - 0x40]
call fcn.004022e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004022e0
mov eax, dword [ebp - 0x4c]
jmp 0x4053c8
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x40]
call fcn.004022e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004022e0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b588
mov esp, ebp
pop ebp
ret 4
Function at 0x4053f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af62b
mov eax, dword fs:[0]
push eax
sub esp, 0x870
mov eax, dword [0x4e5114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x864], ecx
mov dword [ebp - 0x870], 0
push 0x800
push 0
lea eax, [ebp - 0x810]
push eax
call fcn.0048e340
add esp, 0xc
mov ecx, dword [ebp - 0x864]
add ecx, 0x88
call fcn.00401c90
push eax
push 0x400
lea ecx, [ebp - 0x810]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x810]
push edx
lea ecx, [ebp - 0x828]
call fcn.004020b0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x860], eax
lea ecx, [ebp - 0x828]
call fcn.00401c90
mov dword [ebp - 0x85c], eax
mov ecx, dword [ebp - 0x85c]
mov dx, word [ecx]
mov word [ebp - 0x866], dx
mov eax, dword [ebp - 0x860]
cmp dx, word [eax]
jne 0x40550a
cmp word [ebp - 0x866], 0
je 0x4054fe
mov ecx, dword [ebp - 0x85c]
mov dx, word [ecx + 2]
mov word [ebp - 0x868], dx
mov eax, dword [ebp - 0x860]
cmp dx, word [eax + 2]
jne 0x40550a
add dword [ebp - 0x85c], 4
add dword [ebp - 0x860], 4
cmp word [ebp - 0x868], 0
jne 0x4054a4
mov dword [ebp - 0x86c], 0
jmp 0x405515
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x86c], ecx
mov edx, dword [ebp - 0x86c]
mov dword [ebp - 0x874], edx
cmp dword [ebp - 0x874], 0
jne 0x4055c0
mov eax, dword [ebp - 0x864]
movzx ecx, byte [eax + 5]
test ecx, ecx
je 0x40557f
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x840]
push edx
mov ecx, dword [ebp - 0x864]
call fcn.00405910
mov dword [ebp - 0x878], eax
mov eax, dword [ebp - 0x878]
push eax
lea ecx, [ebp - 0x828]
call fcn.00401560
lea ecx, [ebp - 0x840]
call fcn.004022e0
jmp 0x4055c0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x858]
push ecx
mov ecx, dword [ebp - 0x864]
call fcn.004058d0
mov dword [ebp - 0x87c], eax
mov edx, dword [ebp - 0x87c]
push edx
lea ecx, [ebp - 0x828]
call fcn.00401560
lea ecx, [ebp - 0x858]
call fcn.004022e0
lea eax, [ebp - 0x828]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401c10
mov ecx, dword [ebp - 0x870]
or ecx, 1
mov dword [ebp - 0x870], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.004022e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b588
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405610
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af66b
mov eax, dword fs:[0]
push eax
sub esp, 0x85c
mov eax, dword [0x4e5114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x85c], ecx
mov ecx, dword [ebp - 0x85c]
add ecx, 0x88
call fcn.00401c90
push eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x860], eax
mov eax, dword [ebp - 0x860]
cmp eax, dword [ebp + 0x10]
jne 0x40579d
push 0x4cfd4c
lea ecx, [ebp - 0x828]
call fcn.004020b0
mov dword [ebp - 4], 0
push 0x800
push 0
lea ecx, [ebp - 0x810]
push ecx
call fcn.0048e340
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
push 0x4cfd50
lea eax, [ebp - 0x810]
push eax
call fcn.00401b30
add esp, 0xc
mov ecx, dword [ebp - 0x85c]
movzx edx, byte [ecx + 5]
test edx, edx
je 0x40572d
lea eax, [ebp - 0x810]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x840]
push eax
mov ecx, dword [ebp - 0x85c]
call fcn.00405910
mov dword [ebp - 0x864], eax
mov ecx, dword [ebp - 0x864]
push ecx
lea ecx, [ebp - 0x828]
call fcn.00401560
lea ecx, [ebp - 0x840]
call fcn.004022e0
lea ecx, [ebp - 0x828]
call fcn.00401c90
push eax
call fcn.00494be6
add esp, 4
mov dword [ebp - 0x860], eax
jmp 0x40578b
lea edx, [ebp - 0x810]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x858]
push edx
mov ecx, dword [ebp - 0x85c]
call fcn.004058d0
mov dword [ebp - 0x868], eax
mov eax, dword [ebp - 0x868]
push eax
lea ecx, [ebp - 0x828]
call fcn.00401560
lea ecx, [ebp - 0x858]
call fcn.004022e0
lea ecx, [ebp - 0x828]
call fcn.00401c90
push eax
call fcn.00494be6
add esp, 4
mov dword [ebp - 0x860], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.004022e0
mov eax, dword [ebp - 0x860]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b588
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d730
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1038
call fcn.0048c500
mov eax, dword [0x4e5114]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call fcn.004065f0
add esp, 4
mov dword [ebp - 0x1038], eax
mov dword [ebp - 0x1034], edx
lea eax, [ebp - 0x1038]
push eax
call fcn.0040d970
add esp, 4
mov dword [ebp - 0x100c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x1024], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1024]
push edx
mov eax, dword [ebp - 0x100c]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x100c]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x100c]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx + 0x10]
add eax, 1
push eax
mov ecx, dword [ebp - 0x100c]
mov edx, dword [ecx + 0x14]
add edx, 0x76c
push edx
push str.__d__d__d__d__d__d___d_:_s
lea eax, [ebp - 0x1004]
push eax
call fcn.0040d940
add esp, 0x28
mov dword [ebp - 0x1020], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d803
mov dword [ebp - 0x1020], 1
push 0x4d08d8
mov edx, dword [ebp + 8]
push edx
call fcn.00494dbc
add esp, 8
mov dword [ebp - 0x1010], eax
cmp dword [ebp - 0x1010], 0
je 0x40d92e
cmp dword [ebp - 0x1020], 0
jne 0x40d856
mov eax, 0xfeff
mov word [ebp - 0x1018], ax
mov ecx, dword [ebp - 0x1010]
push ecx
push 2
push 1
lea edx, [ebp - 0x1018]
push edx
call fcn.0049537f
add esp, 0x10
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x1014], eax
mov ecx, dword [ebp - 0x1014]
add ecx, 2
mov dword [ebp - 0x1028], ecx
mov edx, dword [ebp - 0x1014]
mov ax, word [edx]
mov word [ebp - 0x101a], ax
add dword [ebp - 0x1014], 2
cmp word [ebp - 0x101a], 0
jne 0x40d871
mov ecx, dword [ebp - 0x1014]
sub ecx, dword [ebp - 0x1028]
sar ecx, 1
mov dword [ebp - 0x102c], ecx
mov edx, dword [ebp - 0x102c]
mov dword [ebp - 0x1030], edx
mov eax, dword [ebp - 0x1010]
push eax
mov ecx, dword [ebp - 0x1030]
shl ecx, 1
push ecx
push 1
lea edx, [ebp - 0x1004]
push edx
call fcn.0049537f
add esp, 0x10
mov eax, 0xd
mov word [ebp - 0x1008], ax
mov ecx, dword [ebp - 0x1010]
push ecx
push 2
push 1
lea edx, [ebp - 0x1008]
push edx
call fcn.0049537f
add esp, 0x10
mov eax, 0xa
mov word [ebp - 0x1008], ax
mov ecx, dword [ebp - 0x1010]
push ecx
push 2
push 1
lea edx, [ebp - 0x1008]
push edx
call fcn.0049537f
add esp, 0x10
mov eax, dword [ebp - 0x1010]
push eax
call fcn.00494e74
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b588
mov esp, ebp
pop ebp
ret
Function at 0x40db40
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
add ecx, 2
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x18]
mov ax, word [edx]
mov word [ebp - 6], ax
add dword [ebp - 0x18], 2
cmp word [ebp - 6], 0
jne 0x40db55
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x28]
sar ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048b5fa
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x20]
mov dx, word [ecx]
mov word [ebp - 4], dx
mov eax, dword [ebp - 0x1c]
mov cx, word [ebp - 4]
mov word [eax], cx
mov edx, dword [ebp - 0x20]
add edx, 2
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x1c]
add eax, 2
mov dword [ebp - 0x1c], eax
cmp word [ebp - 4], 0
jne 0x40dbb5
mov byte [ebp - 1], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x34], 0
jmp 0x40dbff
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x24]
jg 0x40dc6d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
cmp edx, 0x5c
jne 0x40dc6b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dx, word [ecx + eax*2]
mov word [ebp - 0xc], dx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dc54
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40dc54
mov byte [ebp - 1], 0
jmp 0x40dc6d
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov cx, word [ebp - 0xc]
mov word [eax + edx*2], cx
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x34], edx
jmp 0x40dbf6
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0048b603
add esp, 4
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x40e390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4e5114]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [0x4e90c8]
test eax, eax
je 0x40e3b5
mov al, byte [0x4e90c8]
jmp 0x40e42d
push 0x208
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0048e340
add esp, 0xc
push 1
push 0x1a
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40e428
lea eax, [ebp - 0x20c]
push eax
call fcn.0049507d
add esp, 4
push str.config_systemprofile
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0040d3f0
add esp, 8
test eax, eax
jne 0x40e421
push str.documents_and_settingslocalservice
lea edx, [ebp - 0x20c]
push edx
call fcn.0040d3f0
add esp, 8
test eax, eax
je 0x40e428
mov byte [0x4e90c8], 1
mov al, byte [0x4e90c8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b588
mov esp, ebp
pop ebp
ret

Function at 0x40e440
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [ebp - 1], 0
call fcn.0040e390
movzx eax, al
test eax, eax
je 0x40e49e
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
call fcn.0040e4d0
add esp, 4
movzx edx, al
test edx, edx
je 0x40e49e
mov eax, dword [ebp + 0xc]
push eax
push 1
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40e48e
mov byte [ebp - 1], 1
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ecx, byte [ebp - 1]
test ecx, ecx
jne 0x40e4c4
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40e4c4
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret