Function at 0x409c30
Capabilities:
Encode data using xor
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4288a6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2d0
mov eax, dword [0x439018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x148
lea eax, [ebp - 0x2a8]
push 0
push eax
call fcn.0040fdd0
add esp, 0xc
mov dword [ebp - 0x29c], 0x43593f
mov dword [ebp - 0x2a4], 0x7a120
push 0x7a120
call fcn.0040e234
add esp, 4
mov dword [ebp - 0x2a8], eax
push dword [ebp - 0x2a4]
push 0
push eax
call fcn.0040fdd0
add esp, 0xc
mov dword [ebp - 0x284], 0xfde9
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x274], 0
test eax, eax
je 0x409d13
push eax
call fcn.0040dff1
add esp, 4
mov dword [ebp - 0x27c], 0
push 0x435a50
lea ecx, [ebp - 0x2a8]
call fcn.00401d90
test eax, eax
je 0x409ff2
push 0x104
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0040fdd0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x128], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x124], 0xf
mov byte [ebp - 0x138], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409d81
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x138]
call fcn.00402460
mov byte [ebp - 4], 1
mov eax, dword fs:[0x2c]
mov word [ebp - 0x13c], 0x4b56
mov byte [ebp - 0x2a9], 0x2e
mov ecx, dword [eax]
mov eax, dword [0x43ae58]
cmp eax, dword [ecx + 4]
jle 0x409e2a
push 0x43ae58
call fcn.0040e36f
add esp, 4
cmp dword [0x43ae58], 0xffffffff
jne 0x409e2a
movaps xmm0, xmmword [0x435ca0]
mov ax, word [ebp - 0x13c]
movups xmmword [0x43af40], xmm0
mov word [0x43af60], ax
movaps xmm0, xmmword [0x435c90]
mov al, byte [ebp - 0x2a9]
push 0x429280
movups xmmword [0x43af50], xmm0
mov byte [0x43af62], al
call fcn.0040e796
add esp, 4
push 0x43ae58
call fcn.0040e325
add esp, 4
cmp byte [0x43af62], 0
je 0x409e6f
movaps xmm2, xmmword [str.................]
xor eax, eax
nop dword [eax]
movups xmm0, xmmword [eax + 0x43af40]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [eax + 0x43af40], xmm1
add eax, 0x10
cmp eax, 0x20
jb 0x409e40
cmp eax, 0x23
jae 0x409e6f
xor byte [eax + 0x43af40], 0x2e
inc eax
cmp eax, 0x23
jb 0x409e62
mov ecx, 0x43af40
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0xf
mov byte [ebp - 0x2dc], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409ea0
sub ecx, edx
push ecx
push 0x43af40
lea ecx, [ebp - 0x2dc]
call fcn.00402460
mov byte [ebp - 4], 2
lea eax, [ebp - 0x138]
cmp dword [ebp - 0x124], 0x10
push dword [ebp - 0x128]
cmovae eax, dword [ebp - 0x138]
push eax
push ecx
lea ecx, [ebp - 0x2dc]
call fcn.0040cb50
lea ecx, [ebp - 0x2a8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x2b4], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x2c4]
cmp dword [ebp - 0x2b0], 0x10
cmovae eax, dword [ebp - 0x2c4]
push eax
call fcn.004020c0
mov edx, dword [ebp - 0x2b0]
cmp edx, 0x10
jb 0x409f67
mov ecx, dword [ebp - 0x2c4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409f5d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a03e
push edx
push ecx
call fcn.0040e226
add esp, 8
mov edx, dword [ebp - 0x2c8]
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0xf
mov byte [ebp - 0x2c4], 0
cmp edx, 0x10
jb 0x409fbc
mov ecx, dword [ebp - 0x2dc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409fb2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a03e
push edx
push ecx
call fcn.0040e226
add esp, 8
mov edx, dword [ebp - 0x124]
cmp edx, 0x10
jb 0x409ff2
mov ecx, dword [ebp - 0x138]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409fe8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a043
push edx
push ecx
call fcn.0040e226
add esp, 8
push dword [ebp - 0x2a8]
call fcn.0040dff1
add esp, 4
push dword [ebp - 0x280]
call fcn.0040dff1
add esp, 4
push dword [ebp - 0x27c]
call fcn.0040dff1
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040dfe3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004127f7
call fcn.004127f7
int3