Function at 0x407980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cfc2
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x4bf100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x170], edx
mov edi, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x184], eax
xor eax, eax
movups xmmword [ebp - 0xbc], xmm0
mov dword [ebp - 0x18c], esi
mov dword [ebp - 0x180], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 7
mov word [ebp - 0xbc], ax
mov dword [ebp - 4], eax
movups xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x8c], 0x4b35dc
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], al
mov byte [ebp - 4], 1
mov eax, dword [edx + 0x28]
or eax, dword [edx + 0x2c]
je 0x4082e1
cmp dword [edi + 0x10], 0
je 0x4082e1
lea eax, [ebp - 0x70]
mov dword [ebp - 0x60], 0
movups xmmword [ebp - 0x70], xmm0
push eax
movups xmmword [ebp - 0x58], xmm0
mov ecx, esi
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.00403910
lea eax, [ebp - 0x58]
lea ecx, [esi + 0x18]
push eax
call fcn.00403910
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x407aad
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407aa3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40833c
push ecx
push edx
call fcn.00471b8b
add esp, 8
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0xf
jbe 0x407af3
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407ae9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40833c
push ecx
push edx
call fcn.00471b8b
add esp, 8
mov esi, dword [ebp - 0x184]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
test esi, esi
je 0x407b17
mov dword [ebp - 0x174], esi
jmp 0x407b5e
push 0x14
call fcn.00471b56
add esp, 4
mov ecx, eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [ebp - 0x174], eax
call fcn.00405a10
test al, al
je 0x4082e1
mov esi, dword [ebp - 0x174]
lea eax, [ebp - 0x184]
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x1a0], ecx
mov byte [ebp - 4], 2
mov esi, dword [esi + 0xc]
mov ecx, esi
push 4
push 0
call dword [0x4a1398]
call esi
cmp eax, 1
jne 0x407b9c
mov byte [ebp - 0x165], 0
jmp 0x40827b
lea eax, [ebp - 0x174]
mov dword [ebp - 0x194], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x174]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x17c]
push eax
push 0x4b426c
mov ecx, esi
call dword [0x4a1398]
call esi
test eax, eax
jne 0x40825d
mov eax, dword [ebp - 0x174]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x178]
push eax
push 0x4b425c
mov ecx, esi
call dword [0x4a1398]
call esi
test eax, eax
jne 0x40825d
mov eax, dword [ebp - 0x174]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x198]
push eax
push 0x4b42ac
mov ecx, esi
call dword [0x4a1398]
call esi
test eax, eax
jne 0x40825d
cmp dword [edi + 0x14], 7
mov ecx, dword [ebp - 0x17c]
mov eax, dword [ecx]
mov esi, dword [eax + 0xf0]
jbe 0x407c37
mov edi, dword [edi]
push 0
push 0
push edi
push ecx
mov ecx, esi
call dword [0x4a1398]
call esi
test eax, eax
jne 0x40825d
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x19c], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x178]
push 0x1388
push 0
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x174]
mov ecx, esi
call dword [0x4a1398]
call esi
test eax, eax
jne 0x408238
mov ecx, dword [ebp - 0x17c]
mov eax, dword [ecx]
mov esi, dword [eax + 0x88]
lea eax, [ebp - 0x8c]
push eax
push ecx
mov ecx, esi
call dword [0x4a1398]
call esi
test eax, eax
jne 0x408238
mov ecx, dword [ebp - 0x17c]
mov eax, dword [ecx]
mov esi, dword [eax + 0x8c]
lea eax, [ebp - 0x190]
push eax
push ecx
mov ecx, esi
call dword [0x4a1398]
call esi
test eax, eax
jne 0x408238
mov eax, dword [ebp - 0x178]
xorps xmm0, xmm0
mov edx, 0xef291fb3
xor esi, esi
mov eax, dword [eax]
movq qword [ebp - 0x2c], xmm0
mov word [ebp - 0x24], 0
mov dword [ebp - 0x188], 0x4b4394
mov edi, dword [eax + 0x108]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x16c], eax
nop dword [eax]
mov eax, dword [ebp - 0x188]
mov ecx, dword [eax + esi]
mov eax, dword [ebp - 0x16c]
xor ecx, edx
mov dword [eax + esi], ecx
mov ecx, edx
shr ecx, 7
add esi, 4
xor ecx, edx
mov eax, ecx
shl eax, 9
xor ecx, eax
mov edx, ecx
shr edx, 0xd
xor edx, ecx
not edx
cmp esi, 8
jb 0x407d10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x16c], 0x4b4394
mov dword [ebp - 0x188], eax
mov esi, 8
nop dword [eax + eax]
mov eax, dword [ebp - 0x16c]
mov cl, byte [eax + esi]
mov eax, dword [ebp - 0x188]
xor cl, dl
shr edx, 8
mov byte [eax + esi], cl
inc esi
cmp esi, 0xa
jb 0x407d60
push 2
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
push eax
push 1
push dword [ebp - 0x178]
mov ecx, edi
call dword [0x4a1398]
call edi
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2c]
mov ecx, 0xa
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x407da5
sub esp, 0x18
lea ecx, [ebp - 0x8c]
lea edx, [ebp - 0x114]
push esp
call fcn.00405900
mov ecx, edx
call fcn.00406f90
add esp, 0x18
test al, al
je 0x408238
mov eax, dword [ebp - 0x170]
mov eax, dword [eax + 0x24]
cmp dword [ebp - 0x114], eax
jne 0x407df5
cmp dword [ebp - 0x110], 0
jne 0x407df5
mov al, 1
jmp 0x407df7
xor al, al
test al, al
je 0x408238
mov eax, dword [ebp - 0x178]
push 0x4d
push 0
mov eax, dword [eax]
mov edi, dword [eax + 0x108]
lea eax, [ebp - 0x164]
push eax
call fcn.00473b60
lea eax, [ebp - 0x164]
mov dword [ebp - 0x170], 0x4b42c0
add esp, 0xc
mov dword [ebp - 0x16c], eax
mov edx, 0xfa53699b
xor esi, esi
nop dword [eax]
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + esi]
mov eax, dword [ebp - 0x16c]
xor ecx, edx
imul edx, edx, 0x41c64e6d
mov dword [eax + esi], ecx
add esi, 4
add edx, 0x3039
bswap edx
cmp esi, 0x4c
jb 0x407e40
mov dword [ebp - 0x170], 0x4b42c0
lea eax, [ebp - 0x164]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x170]
mov cl, byte [eax + 0x4c]
mov eax, dword [ebp - 0x16c]
xor cl, dl
mov byte [eax + 0x4c], cl
push 2
lea eax, [ebp - 0x164]
mov byte [ebp - 4], 0xb
push eax
push 1
push dword [ebp - 0x178]
mov ecx, edi
call dword [0x4a1398]
call edi
mov ecx, 0x4d
lea eax, [ebp - 0x164]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x407ec0
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00405900
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x94], 0
je 0x408001
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
lea eax, [ebp - 0x20]
mov word [ebp - 0x14], 0
mov edx, 0xe817c633
mov dword [ebp - 0x170], 0x4b43a0
xor esi, esi
mov dword [ebp - 0x16c], eax
nop dword [eax]
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + esi]
mov eax, dword [ebp - 0x16c]
xor ecx, edx
mov dword [eax + esi], ecx
mov ecx, edx
shl ecx, 0xd
add esi, 4
xor ecx, edx
mov eax, ecx
shr eax, 0x11
xor ecx, eax
mov eax, ecx
shl eax, 5
xor ecx, eax
mov edx, ecx
shr ecx, 1
shl edx, 0x1f
or edx, ecx
cmp esi, 0xc
jb 0x407f20
lea eax, [ebp - 0x20]
mov dword [ebp - 0x170], 0x4b43a0
mov dword [ebp - 0x16c], eax
mov esi, 0xc
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0x170]
mov cl, byte [eax + esi]
mov eax, dword [ebp - 0x16c]
xor cl, dl
shr edx, 8
mov byte [eax + esi], cl
inc esi
cmp esi, 0xe
jb 0x407f80
cmp dword [ebp - 0x90], 0xf
lea edi, [ebp - 0xa4]
mov dword [ebp - 0x180], 1
cmova edi, dword [ebp - 0xa4]
mov al, byte [edi]
test al, al
je 0x408001
mov ah, byte [ebp - 0x20]
lea ecx, [ebp - 0x20]
mov esi, edi
or ah, 0x20
sub esi, ecx
nop
or al, 0x20
lea edx, [ebp - 0x20]
cmp al, ah
jne 0x407ff8
nop dword [eax]
mov cl, byte [edx + 1]
inc edx
test cl, cl
je 0x408065
mov al, byte [edx + esi]
or cl, 0x20
or al, 0x20
cmp al, cl
je 0x407fe0
mov al, byte [edi + 1]
inc edi
inc esi
test al, al
jne 0x407fd0
xor dl, dl
test byte [ebp - 0x180], 1
je 0x40801f
mov ecx, 0xe
lea eax, [ebp - 0x20]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x408014
test dl, dl
je 0x40822d
mov ecx, dword [ebp - 0x17c]
mov eax, dword [ecx]
mov esi, dword [eax + 0x90]
mov eax, dword [ebp - 0x190]
and eax, 0xfffffff3
push eax
push ecx
mov ecx, esi
call dword [0x4a1398]
call esi
test eax, eax
je 0x408069
lea ecx, [ebp - 0xa4]
mov byte [ebp - 0x165], 0
call fcn.004038c0
jmp 0x40823f
mov dl, 1
jmp 0x408003
mov ecx, dword [ebp - 0x178]
push 2
push 0x4b41d0
push 1
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0x108]
mov ecx, esi
call dword [0x4a1398]
call esi
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00405900
mov edi, dword [ebp - 0x18c]
push eax
lea ecx, [edi + 0x18]
call fcn.00403910
lea ecx, [ebp - 0xd4]
call fcn.004038c0
cmp dword [edi + 0x2c], 0xf
lea ecx, [edi + 0x18]
jbe 0x4080c3
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x28]
push 1
push 0x4b41d4
push 0
call fcn.00404540
add esp, 0xc
cmp eax, 0xffffffff
je 0x40810a
mov ecx, dword [edi + 0x28]
cmp eax, ecx
jae 0x40810a
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0xec]
push eax
lea ecx, [edi + 0x18]
call fcn.00403860
push eax
lea ecx, [edi + 0x18]
call fcn.00403910
lea ecx, [ebp - 0xec]
call fcn.004038c0
mov eax, dword [ebp - 0x178]
xorps xmm0, xmm0
mov dword [ebp - 0x180], 0x9d03671e
xor edx, edx
mov eax, dword [eax]
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x30], 0
mov edi, dword [eax + 0x108]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x170], 0x4b427c
mov dword [ebp - 0x16c], eax
nop word [eax + eax]
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + edx]
xor ecx, dword [ebp - 0x180]
mov eax, dword [ebp - 0x16c]
mov dword [eax + edx], ecx
mov ecx, 0xffce35e7
imul eax, dword [ebp - 0x180], 0x2031
add edx, 4
sub ecx, eax
mov dword [ebp - 0x180], ecx
cmp edx, 0xc
jb 0x408150
mov dword [ebp - 0x170], 0x4b427c
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x170]
mov cl, byte [eax + 0xc]
mov eax, dword [ebp - 0x16c]
xor cl, byte [ebp - 0x180]
mov byte [eax + 0xc], cl
push 2
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0xe
push eax
push 1
push dword [ebp - 0x178]
mov ecx, edi
call dword [0x4a1398]
call edi
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x3c]
mov ecx, 0xd
nop word [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4081e0
sub esp, 0x18
lea ecx, [ebp - 0x8c]
push esp
call fcn.00405900
lea ecx, [ebp - 0x58]
call fcn.00407480
mov ecx, dword [ebp - 0x18c]
add esp, 0x18
push eax
call fcn.00403910
lea ecx, [ebp - 0x58]
call fcn.004038c0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 0x165], 1
call fcn.004038c0
jmp 0x40823f
lea ecx, [ebp - 0xa4]
call fcn.004038c0
mov byte [ebp - 0x165], 0
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x17c]
push 0
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x68]
mov ecx, esi
call dword [0x4a1398]
call esi
jmp 0x408264
mov byte [ebp - 0x165], 0
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x174]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x4a1398]
call esi
cmp dword [ebp - 0x184], 0
jne 0x4082e8
mov esi, dword [ebp - 0x174]
mov eax, dword [esi]
test eax, eax
je 0x408297
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 4]
test eax, eax
je 0x4082a5
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
movups xmm0, xmmword [ebp - 0x40]
push 0x14
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
push dword [ebp - 0x174]
call fcn.00471b8b
add esp, 8
jmp 0x4082e8
mov byte [ebp - 0x165], 0
mov ecx, dword [ebp - 0x74]
cmp ecx, 0xf
jbe 0x40831b
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408311
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40833c
push ecx
push edx
call fcn.00471b8b
add esp, 8
mov al, byte [ebp - 0x165]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00471b48
mov esp, ebp
pop ebp
ret
call fcn.00477334
int3