Function at 0x4036f0
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Link many functions at runtime
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x427bed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00403ca0
push 0x433ae8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
push 0x431880
lea ecx, [esp + 0x20]
mov dword [esp + 0x14c], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x148], 1
call fcn.004273b0
lea eax, [esp + 0x10]
mov byte [esp + 0x148], 2
push eax
call fcn.004033f0
add esp, 4
lea ecx, [esp + 0x40]
push ecx
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x403966
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
push str.nbcodedatapath
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x43], 0x5c
jne 0x4037a6
lea edx, [esp + 0x44]
lea eax, [esp + 0x14]
push edx
push str._s_s_
push eax
jmp 0x4037b5
lea ecx, [esp + 0x44]
lea edx, [esp + 0x14]
push ecx
push 0x431860
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0x10
push eax
call fcn.00401400
add esp, 4
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
mov byte [esp + 0x1b], 0
push str.replace.opt
push ecx
push edx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x150], 3
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], 2
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40381a
mov byte [esp + 0x1b], 1
jmp 0x403873
mov ecx, dword [esp + 0x150]
lea eax, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x150], 4
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], 2
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x403991
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 8]
push 0x43184c
push 0x87
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x403950
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4038e2
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push 0x431848
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
lea ecx, [esp + 0x14]
mov esi, eax
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x40390b
lea ecx, [esp + 0x40]
push pe_nt_image_headers32
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x403991
lea edx, [esp + 0x40]
lea eax, [esp + 0x10]
push edx
push 0x431844
push eax
jmp 0x403989
push esi
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov al, byte [esp + 0x2f]
add esp, 0x14
cmp al, 1
jne 0x403991
lea ecx, [esp + 0x10]
push str.replace.opt
lea edx, [esp + 0x18]
push ecx
push edx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x403991
lea eax, [esp + 0x40]
push pe_nt_image_headers32
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x403991
jmp 0x40397a
lea eax, [esp + 0x40]
push pe_nt_image_headers32
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x403991
lea ecx, [esp + 0x40]
lea edx, [esp + 0x10]
push ecx
push 0x431844
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::Close
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [esp + 0x14]
mov dword [0x433f7c], eax
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x433f7c]
test eax, eax
jne 0x403a4a
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x24]
mov bl, 5
push ecx
push edx
mov byte [esp + 0x154], bl
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push eax
push 0x4317ec
push ecx
mov byte [esp + 0x154], 6
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
push 0x40
push 0x4313d8
push edx
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], 2
call sub.MFC42.DLL_CString::CString
jmp 0x403c42
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CheckRegister
push eax
call esi
mov dword [0x433f78], eax
mov eax, dword [0x433f7c]
push str.Register
push eax
call esi
mov ecx, dword [0x433f7c]
push str.FastRegister
push ecx
mov dword [0x433f74], eax
call esi
mov edx, dword [0x433f7c]
push str.GetDLLVersion
push edx
mov dword [0x433f70], eax
call esi
mov dword [0x433f6c], eax
mov eax, dword [0x433f7c]
push str.PollRegister
push eax
call esi
mov ecx, dword [0x433f7c]
push str.SelfTest
push ecx
mov dword [0x433f68], eax
call esi
mov edx, dword [0x433f7c]
push str.GetCurrentUsername
push edx
mov dword [0x433f64], eax
call esi
mov dword [0x433f60], eax
mov eax, dword [0x433f7c]
push str.GetErrorString
push eax
call esi
mov ecx, dword [0x433f7c]
push str.GetDLLPath
push ecx
mov dword [0x433f5c], eax
call esi
mov edx, dword [0x433f7c]
push str.DoBASE64
push edx
mov dword [0x433f58], eax
call esi
mov dword [0x433f54], eax
mov eax, dword [0x433f7c]
push str.MD5_Ex
push eax
call esi
mov ecx, dword [0x433f7c]
push str.Do3DES
push ecx
mov dword [0x433f50], eax
call esi
mov edx, dword [0x433f7c]
push str.DoDES
push edx
mov dword [0x433f4c], eax
call esi
mov dword [0x433f48], eax
mov eax, dword [0x433f7c]
push str.DoAES
push eax
call esi
mov ecx, dword [0x433f7c]
push str.Exclusive_OR
push ecx
mov dword [0x433f44], eax
call esi
mov edx, dword [0x433f7c]
push str.MessageBox_nb
push edx
mov dword [0x433f40], eax
call esi
mov dword [0x433f3c], eax
push str.DoCode
mov eax, dword [0x433f7c]
push eax
call esi
mov ecx, dword [0x433f7c]
push str.GetValueInt
push ecx
mov dword [0x433f38], eax
call esi
mov edx, dword [0x433f7c]
push str.GetValueStr
push edx
mov dword [0x433f34], eax
call esi
mov dword [0x433f30], eax
mov eax, dword [0x433f7c]
push str.GetFixPassword
push eax
call esi
mov ecx, dword [0x433f7c]
push str.Shift_Data
push ecx
mov dword [0x433f2c], eax
call esi
mov edx, dword [0x433f7c]
push str.GetExePath_nb
push edx
mov dword [0x433f28], eax
call esi
mov dword [0x433f24], eax
mov eax, dword [0x433f7c]
push str.SubSafeInt_nb
push eax
call esi
mov ecx, dword [0x433f7c]
push str.ViewAuthorization
push ecx
mov dword [0x433f20], eax
call esi
mov edx, dword [0x433f7c]
push str.RegisterO
push edx
mov dword [0x433f1c], eax
call esi
mov dword [0x433f18], eax
mov eax, dword [0x433f7c]
push str.RegisterOEx
push eax
call esi
mov ecx, dword [0x433f7c]
push str.GetLocalCode
push ecx
mov dword [0x433f14], eax
call esi
mov dword [0x433f10], eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x148], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x13c
ret 4