Function at 0x403350
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push str.RebuildFile
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBegin]
push 0x41e23c
push 0x66
push 0
mov dword [ebp - 0x38], 0x3d202d4a
mov dword [ebp - 0x34], 0x30aaab6d
mov dword [ebp - 0x30], 0x30cc0747
mov dword [ebp - 0x2c], 0xa62284bd
mov dword [ebp - 0x28], 0x6b759de9
mov dword [ebp - 0x24], 0x3ba6e228
mov dword [ebp - 0x20], 0xb75d149c
mov dword [ebp - 0x1c], 0x4103f2ad
mov dword [ebp - 0x18], 0xad09f2f6
mov dword [ebp - 0x14], 0xa80262ea
mov dword [ebp - 0x10], 0x3eff7d05
mov dword [ebp - 0xc], 0x3d7afe2c
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40363d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40363d
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov dword [ebp - 0x2c8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40363d
mov ecx, dword [ebp - 0x2c8]
lea edx, [ebp - 0x2c4]
movups xmm0, xmmword [ecx]
movups xmmword [ebp - 0x2c4], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [ebp - 0x2b4], xmm0
cmp dword [edx], 0x50383635
jne 0x403636
cmp word [edx + 4], 0x414c
jne 0x403636
cmp byte [edx + 6], 0x59
jne 0x403636
sub edi, 0x20
add ecx, 0x20
push edi
mov dword [ebp - 0x2c8], ecx
call fcn.0040823e
add esp, 4
mov dword [ebp - 0x2cc], eax
push edi
call fcn.0040823e
mov esi, dword [ebp - 0x2a8]
add esp, 4
mov ecx, edi
mov dword [ebp - 0x2d0], eax
sub ecx, esi
mov dword [ebp - 0x3c], 0
push ecx
mov ecx, dword [ebp - 0x2c8]
add ecx, esi
push ecx
push dword [ebp - 0x2cc]
call fcn.0040ac40
mov eax, dword [ebp - 0x2cc]
add esp, 0xc
add eax, esi
push esi
push dword [ebp - 0x2c8]
push eax
call fcn.0040ac40
add esp, 0xc
mov dword [ebp - 0x2c8], 0
call section..text
push ecx
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x2a4]
call fcn.00402d30
mov esi, dword [ebp - 0x2d0]
lea eax, [ebp - 0x18]
push eax
push edi
push esi
push dword [ebp - 0x2cc]
lea eax, [ebp - 0x38]
xorps xmm0, xmm0
sub esp, 0xc
lea ecx, [ebp - 0x2a4]
movups xmmword [ebp - 0x18], xmm0
push eax
call fcn.00402f80
add esp, 0x24
xorps xmm4, xmm4
xor eax, eax
xorps xmm3, xmm3
movd xmm2, dword [ebp + eax - 0x2b8]
xorps xmm0, xmm0
movd xmm1, dword [ebp + eax - 0x18]
punpcklbw xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [ebp + eax - 0x14]
orps xmm4, xmm2
punpcklbw xmm1, xmm0
movd xmm2, dword [ebp + eax - 0x2b4]
add eax, 8
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp eax, 0x10
jb 0x403513
orps xmm3, xmm4
movaps xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd eax, xmm3
test eax, eax
je 0x403597
push edi
push 0
push esi
call fcn.004096f0
add esp, 0xc
jmp 0x4035f6
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push str.META_INF_AIR_appeasy
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4035f6
sub edi, dword [ebp - 0x2bc]
lea eax, [ebp - 0x3c]
push 0
push eax
push edi
push dword [ebp - 0x2d0]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4035f6
cmp dword [ebp - 0x3c], edi
jne 0x4035f6
push esi
mov dword [ebp - 0x2c8], 1
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebp - 0x2d0]
call fcn.00408239
add esp, 4
push dword [ebp - 0x2cc]
call fcn.00408239
add esp, 4
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
mov eax, dword [ebp - 0x2c8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040802b
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040802b
mov esp, ebp
pop ebp
ret