Function at 0x403b50
Capabilities:
Contain obfuscated stackstrings
Create directory
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6f0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [0x42f8c8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x2d4], ax
lea eax, [ebp - 0x2d2]
push eax
call fcn.004164b0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x6e4], ax
lea eax, [ebp - 0x6e2]
push eax
call fcn.004164b0
add esp, 0x18
lea eax, [ebp - 0x6e4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x2d4]
push eax
push 0
push 0x425d70
lea eax, [ebp - 0x6e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor eax, eax
mov dword [ebp - 0xcc], 0x4f0053
push 0x92
push eax
mov word [ebp - 0x98], ax
lea eax, [ebp - 0x96]
push eax
mov dword [ebp - 0xc8], 0x540046
mov dword [ebp - 0xc4], 0x410057
mov dword [ebp - 0xc0], 0x450052
mov dword [ebp - 0xbc], 0x5c005c
mov dword [ebp - 0xb8], 0x650054
mov dword [ebp - 0xb4], 0x63006e
mov dword [ebp - 0xb0], 0x6e0065
mov dword [ebp - 0xac], 0x5c0074
mov dword [ebp - 0xa8], 0x51005c
mov dword [ebp - 0xa4], 0x500051
mov dword [ebp - 0xa0], 0x4d0043
mov dword [ebp - 0x9c], 0x720067
call fcn.004164b0
add esp, 0xc
lea eax, [ebp - 0x6e8]
push eax
push 0x20019
push 0
lea eax, [ebp - 0xcc]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403cae
push dword [ebp - 0x6e8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x425ccc
push 0x81
jmp 0x403cb8
push 0x425ccc
push 0x12d
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x403e1a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x6ec], eax
test eax, eax
je 0x403e1a
push 0
push 0x80
push 2
push 0
push 2
push 0x40000004
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403e1a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x6e8], eax
lea ecx, [eax + 1]
push ecx
call fcn.0040c42d
mov esi, eax
add esp, 4
test esi, esi
je 0x403e1a
push dword [ebp - 0x6e8]
push dword [ebp - 0x6ec]
push esi
call fcn.0040fcd0
add esp, 0xc
lea eax, [ebp - 0x6f0]
push 0
push eax
push dword [ebp - 0x6e8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0040bbdc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x4dc], ax
lea eax, [ebp - 0x4da]
push eax
call fcn.004164b0
add esp, 0x10
lea eax, [ebp - 0x4dc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
push 0
push 0x425d40
lea eax, [ebp - 0x4dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x425d78
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x2d4]
call fcn.00404920
mov ebx, eax
test edi, edi
jne 0x403dd8
xor esi, esi
jmp 0x403de1
mov ecx, edi
call fcn.00404920
mov esi, eax
mov edx, esi
mov ecx, ebx
call fcn.00403910
test ebx, ebx
je 0x403df7
push ebx
call fcn.0040bbdc
add esp, 4
test esi, esi
je 0x403e04
push esi
call fcn.0040bbdc
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b999
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b999
mov esp, ebp
pop ebp
ret