Function at 0x409480
Capabilities:
Encode data using xor

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 0x440f88
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x158
mov eax, dword [0x4af040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x144], esi
push 0x104
mov dword [ebp - 4], 0
lea eax, [ebp - 0x120]
push 0
mov dword [ebp - 0x150], esi
push eax
mov dword [ebp - 0x138], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
mov ecx, esi
push 0
movups xmmword [esi], xmm0
push 0x45416d
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.0040d7f0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov eax, 1
mov dword [ebp - 0x138], 1
movq qword [ebp - 0x12c], xmm0
xor ecx, ecx
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], 0x82dd
nop
lea eax, [ecx - 0x7f]
xor byte [ebp + ecx - 0x130], al
inc ecx
mov eax, dword [ebp - 0x134]
cmp ecx, eax
jb 0x409570
sub esp, 0x18
mov byte [ebp + eax - 0x130], 0
mov edx, esp
mov dword [ebp - 0x144], esp
xorps xmm0, xmm0
lea ecx, [ebp - 0x130]
lea edi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4095b5
sub ecx, edi
lea eax, [ebp - 0x130]
push ecx
push eax
mov ecx, edx
call fcn.0040d7f0
sub esp, 0x18
mov dword [ebp - 4], 1
mov edx, esp
lea ecx, [ebp - 0x120]
xorps xmm0, xmm0
lea edi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4095f6
sub ecx, edi
lea eax, [ebp - 0x120]
push ecx
push eax
mov ecx, edx
call fcn.0040d7f0
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 0
call fcn.004105c0
add esp, 0x30
xor ecx, ecx
mov dword [ebp - 4], 2
mov edi, dword [ebp - 0x12c]
mov eax, 0x2aaaaaab
mov dword [ebp - 0x13c], ecx
mov ecx, dword [ebp - 0x128]
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, 0xffffffff
je 0x4097b3
xor eax, eax
mov dword [ebp - 0x140], eax
nop
mov edx, dword [eax + edi + 0x10]
lea ecx, [eax + edi]
mov eax, closesocket
sub eax, edx
cmp eax, 1
jb 0x409837
cmp dword [ecx + 0x14], 0xf
jbe 0x40967f
mov ecx, dword [ecx]
push 1
push 0x454248
push edx
push ecx
push ecx
push dword [ebp - 0x150]
lea ecx, [ebp - 0x168]
call fcn.0040de70
or dword [ebp - 0x138], 2
mov byte [ebp - 4], 3
lea edx, [ebp - 0x168]
cmp dword [ebp - 0x154], 0xf
mov ecx, dword [esi + 0x10]
mov edi, dword [ebp - 0x168]
cmova edx, edi
mov eax, dword [esi + 0x14]
sub eax, ecx
mov dword [ebp - 0x148], ecx
mov ecx, dword [ebp - 0x158]
cmp ecx, eax
ja 0x40971b
mov eax, dword [ebp - 0x148]
add eax, ecx
mov dword [ebp - 0x130], esi
cmp dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
jbe 0x4096f2
mov eax, dword [esi]
mov dword [ebp - 0x130], eax
mov esi, dword [ebp - 0x130]
add esi, dword [ebp - 0x148]
push ecx
push edx
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x158]
add esp, 0xc
mov byte [esi + eax], 0
mov esi, dword [ebp - 0x14c]
jmp 0x409738
push ecx
push edx
mov byte [ebp - 0x144], 0
push dword [ebp - 0x144]
push ecx
mov ecx, esi
call fcn.0040db00
mov edi, dword [ebp - 0x168]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x154]
cmp eax, 0xf
jbe 0x409772
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x409768
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409807
push ecx
push edi
call fcn.0043ff31
add esp, 8
mov ecx, dword [ebp - 0x128]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x12c]
sub ecx, edi
inc dword [ebp - 0x13c]
add dword [ebp - 0x140], 0x18
imul ecx
mov ecx, dword [ebp - 0x13c]
sar edx, 2
mov eax, edx
shr eax, 0x1f
dec eax
add eax, edx
cmp ecx, eax
mov eax, dword [ebp - 0x140]
jb 0x409660
test edi, edi
je 0x409817
mov edx, dword [ebp - 0x128]
push ecx
mov ecx, edi
call fcn.0040d8e0
mov ecx, dword [ebp - 0x124]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x12c]
add esp, 4
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x40980d
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40980d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.0043ff31
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043fbc2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00408430
int3