Function at 0x4079e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49dd52
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x4c0100]
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 - 0x188], 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], 0x4b45ec
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 0x408341
cmp dword [edi + 0x10], 0
je 0x408341
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 0x407b0d
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407b03
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40839c
push ecx
push edx
call fcn.0047292b
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 0x407b53
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407b49
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40839c
push ecx
push edx
call fcn.0047292b
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 0x407b77
mov dword [ebp - 0x174], esi
jmp 0x407bbe
push 0x14
call fcn.004728f6
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 0x408341
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 [0x4a2398]
call esi
cmp eax, 1
jne 0x407bfc
mov byte [ebp - 0x165], 0
jmp 0x4082db
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 - 0x180]
push eax
push 0x4b5190
mov ecx, esi
call dword [0x4a2398]
call esi
test eax, eax
jne 0x4082bd
mov eax, dword [ebp - 0x174]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x178]
push eax
push 0x4b5180
mov ecx, esi
call dword [0x4a2398]
call esi
test eax, eax
jne 0x4082bd
mov eax, dword [ebp - 0x174]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x198]
push eax
push 0x4b51d8
mov ecx, esi
call dword [0x4a2398]
call esi
test eax, eax
jne 0x4082bd
cmp dword [edi + 0x14], 7
mov ecx, dword [ebp - 0x180]
mov eax, dword [ecx]
mov esi, dword [eax + 0xf0]
jbe 0x407c97
mov edi, dword [edi]
push 0
push 0
push edi
push ecx
mov ecx, esi
call dword [0x4a2398]
call esi
test eax, eax
jne 0x4082bd
lea eax, [ebp - 0x180]
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 [0x4a2398]
call esi
test eax, eax
jne 0x408298
mov ecx, dword [ebp - 0x180]
mov eax, dword [ecx]
mov esi, dword [eax + 0x88]
lea eax, [ebp - 0x8c]
push eax
push ecx
mov ecx, esi
call dword [0x4a2398]
call esi
test eax, eax
jne 0x408298
mov ecx, dword [ebp - 0x180]
mov eax, dword [ecx]
mov esi, dword [eax + 0x8c]
lea eax, [ebp - 0x190]
push eax
push ecx
mov ecx, esi
call dword [0x4a2398]
call esi
test eax, eax
jne 0x408298
mov eax, dword [ebp - 0x178]
xorps xmm0, xmm0
mov edx, 0x3315bd10
xor esi, esi
mov eax, dword [eax]
movq qword [ebp - 0x2c], xmm0
mov word [ebp - 0x24], 0
mov dword [ebp - 0x17c], 0x4b51cc
mov edi, dword [eax + 0x108]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x16c], eax
nop dword [eax]
mov eax, dword [ebp - 0x17c]
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 eax, ecx
shr eax, 0xd
xor ecx, eax
mov edx, ecx
shr ecx, 1
shl edx, 0x1f
or edx, ecx
cmp esi, 8
jb 0x407d70
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x16c], 0x4b51cc
mov dword [ebp - 0x17c], eax
mov esi, 8
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0x16c]
mov cl, byte [eax + esi]
mov eax, dword [ebp - 0x17c]
xor cl, dl
shr edx, 8
mov byte [eax + esi], cl
inc esi
cmp esi, 0xa
jb 0x407dd0
push 2
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
push eax
push 1
push dword [ebp - 0x178]
mov ecx, edi
call dword [0x4a2398]
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 0x407e15
sub esp, 0x18
lea ecx, [ebp - 0x8c]
lea edx, [ebp - 0x114]
push esp
call fcn.00405900
mov ecx, edx
call fcn.00406ff0
add esp, 0x18
test al, al
je 0x408298
mov eax, dword [ebp - 0x170]
mov eax, dword [eax + 0x24]
cmp dword [ebp - 0x114], eax
jne 0x407e65
cmp dword [ebp - 0x110], 0
jne 0x407e65
mov al, 1
jmp 0x407e67
xor al, al
test al, al
je 0x408298
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.004748f0
lea eax, [ebp - 0x164]
mov dword [ebp - 0x170], 0x4b5238
add esp, 0xc
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x17c], 0x79008506
xor edx, edx
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + edx]
xor ecx, dword [ebp - 0x17c]
mov eax, dword [ebp - 0x16c]
mov dword [eax + edx], ecx
mov ecx, 0xff3c613d
imul eax, dword [ebp - 0x17c], 0x43fd43fd
add edx, 4
sub ecx, eax
mov dword [ebp - 0x17c], ecx
cmp edx, 0x4c
jb 0x407ec0
mov dword [ebp - 0x170], 0x4b5238
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, byte [ebp - 0x17c]
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 [0x4a2398]
call edi
mov ecx, 0x4d
lea eax, [ebp - 0x164]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x407f50
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00405900
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x94], 0
je 0x40807d
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
lea eax, [ebp - 0x20]
mov word [ebp - 0x14], 0
mov edx, 0x99cbca7b
mov dword [ebp - 0x170], 0x4b515c
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 eax, edx
shl eax, 0xd
add esi, 4
xor edx, eax
mov eax, edx
shr eax, 0x11
xor edx, eax
mov eax, edx
shl eax, 5
xor edx, eax
neg edx
cmp esi, 0xc
jb 0x407fb0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x170], 0x4b515c
mov dword [ebp - 0x16c], eax
mov esi, 0xc
nop dword [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 0x408000
cmp dword [ebp - 0x90], 0xf
lea edi, [ebp - 0xa4]
mov dword [ebp - 0x188], 1
cmova edi, dword [ebp - 0xa4]
mov al, byte [edi]
test al, al
je 0x40807d
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 0x408074
nop dword [eax]
mov cl, byte [edx + 1]
inc edx
test cl, cl
je 0x4080e1
mov al, byte [edx + esi]
or cl, 0x20
or al, 0x20
cmp al, cl
je 0x408060
mov al, byte [edi + 1]
inc edi
inc esi
test al, al
jne 0x408050
xor dl, dl
test byte [ebp - 0x188], 1
je 0x40809b
mov ecx, 0xe
lea eax, [ebp - 0x20]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x408090
test dl, dl
je 0x40828d
mov ecx, dword [ebp - 0x180]
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 [0x4a2398]
call esi
test eax, eax
je 0x4080e5
lea ecx, [ebp - 0xa4]
mov byte [ebp - 0x165], 0
call fcn.004038c0
jmp 0x40829f
mov dl, 1
jmp 0x40807f
mov ecx, dword [ebp - 0x178]
push 2
push 0x4b5120
push 1
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0x108]
mov ecx, esi
call dword [0x4a2398]
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 0x40813f
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x28]
push 1
push 0x4b5124
push 0
call fcn.00404540
add esp, 0xc
cmp eax, 0xffffffff
je 0x408186
mov ecx, dword [edi + 0x28]
cmp eax, ecx
jae 0x408186
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 edx, 0x5ceba67b
xor esi, esi
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], 0x4b5200
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + esi]
mov eax, dword [ebp - 0x16c]
xor ecx, edx
mov dword [eax + esi], ecx
add esi, 4
imul eax, edx, 0x43fd43fd
add eax, 0xc39ec3
mov edx, eax
add eax, eax
shr edx, 0x1f
or edx, eax
cmp esi, 0xc
jb 0x4081c1
mov dword [ebp - 0x170], 0x4b5200
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, dl
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 [0x4a2398]
call edi
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x3c]
mov ecx, 0xd
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x408240
sub esp, 0x18
lea ecx, [ebp - 0x8c]
push esp
call fcn.00405900
lea ecx, [ebp - 0x58]
call fcn.00407500
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 0x40829f
lea ecx, [ebp - 0xa4]
call fcn.004038c0
mov byte [ebp - 0x165], 0
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x180]
push 0
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x68]
mov ecx, esi
call dword [0x4a2398]
call esi
jmp 0x4082c4
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 [0x4a2398]
call esi
cmp dword [ebp - 0x184], 0
jne 0x408348
mov esi, dword [ebp - 0x174]
mov eax, dword [esi]
test eax, eax
je 0x4082f7
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 4]
test eax, eax
je 0x408305
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.0047292b
add esp, 8
jmp 0x408348
mov byte [ebp - 0x165], 0
mov ecx, dword [ebp - 0x74]
cmp ecx, 0xf
jbe 0x40837b
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408371
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40839c
push ecx
push edx
call fcn.0047292b
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.004728e8
mov esp, ebp
pop ebp
ret
call fcn.004780c4
int3