Function at 0x4272f0
Capabilities:
Delete file
Extract resource via kernel32 functions
Print debug messages
Read .ini file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e66c
mov eax, dword fs:[0]
push eax
mov eax, 0x20c0
call fcn.00449780
mov eax, dword [0x471644]
xor eax, ebp
mov dword [ebp - 0x60], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20a4], ecx
push 0x466f0c
push 0x85
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x427a26
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x20a4]
call fcn.00427dd0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0042a350
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x20a4]
add ecx, 0x6044
call fcn.00429200
lea ecx, [ebp - 0x2c]
call fcn.0042d191
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x30]
call fcn.0042a350
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042d229
test eax, eax
jne 0x4279bb
push 1
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [ebp - 0x5c], 0xc
lea edx, [ebp - 0x48]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], 0
push str._0xFEFF_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 0x80
push 2
lea eax, [ebp - 0x5c]
push eax
push 3
push 0xc0000000
lea ecx, [ebp - 0x30]
call fcn.0042a350
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x427421
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x427451
mov dword [ebp - 0x2084], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0042d1ba
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0042a380
mov eax, dword [ebp - 0x2084]
jmp 0x427a2f
mov dword [ebp - 0x2068], 0
mov dword [ebp - 0x2068], 0
push 0
lea ecx, [ebp - 0x2068]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x427596
lea ecx, [ebp - 0x2070]
call fcn.0042a4e0
mov byte [ebp - 4], 2
push 0x6a
lea edx, [ebp - 0x2088]
push edx
call fcn.00429af0
add esp, 8
mov dword [ebp - 0x20a8], eax
mov eax, dword [ebp - 0x20a8]
mov dword [ebp - 0x20ac], eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00424a80
add esp, 4
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x20ac]
call fcn.0042a350
push eax
lea edx, [ebp - 0x2070]
push edx
call fcn.0042a320
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2088]
call fcn.0042a380
push 0x69
lea eax, [ebp - 0x208c]
push eax
call fcn.00429af0
add esp, 8
mov dword [ebp - 0x20b0], eax
push 0
mov ecx, dword [ebp - 0x20b0]
call fcn.0042a350
push eax
lea ecx, [ebp - 0x2070]
call fcn.0042a350
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x208c]
call fcn.0042a380
push 0
call fcn.00448b8c
mov dword [ebp - 0x2090], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2070]
call fcn.0042a380
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0042d1ba
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0042a380
mov eax, dword [ebp - 0x2090]
jmp 0x427a2f
push 0x466f34
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
push edx
call fcn.00429790
lea ecx, [ebp - 0x30]
call fcn.0042a350
push eax
push 1
push 0x466f60
push 0x466f7c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x20a4]
mov dword [ecx + 0x6038], eax
lea ecx, [ebp - 0x50]
call fcn.0042a4e0
mov byte [ebp - 4], 4
xor edx, edx
mov word [ebp - 0x2064], dx
push 0x1ffe
push 0
lea eax, [ebp - 0x2062]
push eax
call fcn.004493d0
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.0042a350
push eax
push 0x2000
lea ecx, [ebp - 0x2064]
push ecx
push 0x466f98
push 0x466f9c
push str.Encode
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x2064]
push edx
lea ecx, [ebp - 0x50]
call fcn.004296f0
push str._strEncode__is_______5.10_cbm
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x50]
call fcn.0042a350
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.UTF_8
lea eax, [ebp - 0x50]
push eax
call fcn.00429150
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4278f3
lea ecx, [ebp - 0x30]
call fcn.0042a350
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 2
lea edx, [ebp - 0x5c]
push edx
push 3
push 0xc0000000
lea ecx, [ebp - 0x30]
call fcn.0042a350
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2078], eax
cmp dword [ebp - 0x2078], 0
je 0x4276bf
cmp dword [ebp - 0x2078], 0xffffffff
jne 0x4276fb
mov dword [ebp - 0x2094], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.0042a380
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0042d1ba
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0042a380
mov eax, dword [ebp - 0x2094]
jmp 0x427a2f
mov dword [ebp - 0x207c], 0
mov eax, 0xfeff
mov word [ebp - 0x2074], ax
push 0
lea ecx, [ebp - 0x207c]
push ecx
push 2
lea edx, [ebp - 0x2074]
push edx
mov eax, dword [ebp - 0x2078]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.00428b00
add esp, 4
mov dword [ebp - 0x20b4], eax
mov edx, dword [ebp - 0x20b4]
add edx, 2
mov dword [ebp - 0x20b8], edx
mov eax, dword [ebp - 0x20b4]
mov cx, word [eax]
mov word [ebp - 0x20ba], cx
add dword [ebp - 0x20b4], 2
cmp word [ebp - 0x20ba], 0
jne 0x427758
mov edx, dword [ebp - 0x20b4]
sub edx, dword [ebp - 0x20b8]
sar edx, 1
mov dword [ebp - 0x20c0], edx
push 0
lea eax, [ebp - 0x207c]
push eax
mov ecx, dword [ebp - 0x20c0]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.00428b00
add esp, 4
push eax
mov eax, dword [ebp - 0x2078]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4278d2
lea ecx, [ebp - 0x2080]
call fcn.0042a4e0
mov byte [ebp - 4], 5
push 0x6a
lea ecx, [ebp - 0x2098]
push ecx
call fcn.00429af0
add esp, 8
mov dword [ebp - 0x20c4], eax
mov edx, dword [ebp - 0x20c4]
mov dword [ebp - 0x20c8], edx
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00424a80
add esp, 4
push eax
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x20c8]
call fcn.0042a350
push eax
lea ecx, [ebp - 0x2080]
push ecx
call fcn.0042a320
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2098]
call fcn.0042a380
push 0x69
lea edx, [ebp - 0x209c]
push edx
call fcn.00429af0
add esp, 8
mov dword [ebp - 0x20cc], eax
push 0
mov ecx, dword [ebp - 0x20cc]
call fcn.0042a350
push eax
lea ecx, [ebp - 0x2080]
call fcn.0042a350
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x209c]
call fcn.0042a380
push 0
call fcn.00448b8c
mov dword [ebp - 0x20a0], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2080]
call fcn.0042a380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.0042a380
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0042d1ba
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0042a380
mov eax, dword [ebp - 0x20a0]
jmp 0x427a2f
push str.CloseHandle_hFile__bf
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x2078]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00429790
mov edx, dword [ebp - 0x20a4]
add edx, 0x603c
push edx
lea ecx, [ebp - 0x34]
call fcn.00429e20
mov byte [ebp - 4], 7
push str.Modify.ini
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x206c]
push ecx
call fcn.00429e40
add esp, 0xc
mov edx, dword [ebp - 0x20a4]
cmp dword [edx + 0x6038], 0
je 0x427956
lea ecx, [ebp - 0x206c]
call fcn.0042a350
push eax
push 0x467054
push 0x467058
push 0x467074
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x427977
lea ecx, [ebp - 0x206c]
call fcn.0042a350
push eax
push 0x467090
push 0x467094
push 0x4670b0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x4670e8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x30]
call fcn.0042a350
push eax
mov ecx, dword [ebp - 0x20a4]
call fcn.00427230
lea ecx, [ebp - 0x206c]
call fcn.0042a380
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.0042a380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.0042a380
jmp 0x427a09
lea ecx, [ebp - 0x30]
call fcn.0042a350
push eax
push 1
push 0x4670cc
push str.CanModifyFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x20a4]
mov dword [ecx + 0x6038], eax
push str.MarkDecryptedFile_strINI__bf11111
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x30]
call fcn.0042a350
push eax
mov ecx, dword [ebp - 0x20a4]
call fcn.00427230
lea ecx, [ebp - 0x2c]
call fcn.0042cdab
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0042d1ba
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0042a380
jmp 0x427a2a
xor eax, eax
jmp 0x427a2f
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x60]
xor ecx, ebp
call fcn.00446d08
mov esp, ebp
pop ebp
ret