Function at 0x419140
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x457d3a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
mov eax, dword [0x472340]
xor eax, esp
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb0]
push edi
push 0xffffffffffffffff
mov ebx, ecx
xor edi, edi
push edi
push esi
lea ecx, [ebx + 0x38]
mov dword [esp + 0xac], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], esi
call fcn.0040a7c0
mov eax, dword [esp + 0xb8]
cmp eax, edi
mov dword [ebx + 0x34], eax
jne 0x41940a
push 0x45cb50
lea eax, [esp + 0x88]
push esi
push eax
call fcn.0041a250
add esp, 0xc
mov eax, dword [esp + 0x9c]
mov esi, 8
cmp eax, esi
mov eax, dword [esp + 0x88]
mov dword [esp + 0xac], edi
jae 0x4191d9
lea eax, [esp + 0x88]
push 0x45cb5c
push eax
call fcn.00437adb
mov ebp, eax
add esp, 8
cmp ebp, edi
jne 0x419206
cmp dword [esp + 0x9c], esi
jb 0x419821
mov ecx, dword [esp + 0x88]
jmp 0x419818
push ebp
push 1
push 0x18
push ebx
call fcn.0043728e
mov eax, dword [ebx + 0x10]
add esp, 0x10
cmp eax, edi
mov dword [esp + 0x1c], edi
jbe 0x4193da
jmp 0x419230
xor eax, eax
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], eax
mov word [esp + 0x50], ax
push ebp
push 1
lea edx, [esp + 0x20]
push 2
push edx
mov byte [esp + 0xbc], 1
call fcn.0043728e
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp ax, 0xaa
je 0x419294
xor eax, 0xaa
push eax
push 1
lea ecx, [esp + 0x54]
call fcn.00419fd0
push ebp
push 1
lea eax, [esp + 0x20]
push 2
push eax
call fcn.0043728e
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp ax, 0xaa
jne 0x419267
push ebp
push 1
lea ecx, [esp + 0x30]
push 0x24
push ecx
call fcn.0043728e
add esp, 0x10
lea edx, [esp + 0x4c]
push edx
lea ecx, [ebx + 0x18]
call fcn.0041b100
mov edi, eax
mov ecx, 9
lea esi, [esp + 0x28]
push 0x45cb64
rep movsd dword es:[edi], dword [esi]
call fcn.00435c89
add esp, 4
push eax
push 0
push 0x45cb64
lea ecx, [esp + 0x58]
call fcn.00413290
xor edi, edi
cmp eax, 0xffffffff
je 0x419399
push eax
push edi
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x58]
call fcn.00413500
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x28]
lea esi, [ebx + 0x78]
push edx
mov ecx, esi
mov byte [esp + 0xb4], 2
call fcn.0041a0a0
mov eax, dword [eax]
cmp eax, dword [ebx + 0x7c]
je 0x41932b
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [eax + 0x28]
call fcn.004115f0
jmp 0x41936e
push 0x10
call fcn.0044cda7
add esp, 4
cmp eax, edi
je 0x419348
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov edi, eax
jmp 0x41934a
xor edi, edi
lea edx, [esp + 0x4c]
push edx
mov ecx, edi
mov byte [esp + 0xb0], 2
call fcn.004115f0
lea eax, [esp + 0x68]
push eax
mov ecx, esi
call fcn.0041b220
mov dword [eax], edi
xor edi, edi
cmp dword [esp + 0x80], 8
jb 0x419385
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0044cdd7
add esp, 4
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], edi
mov word [esp + 0x6c], di
cmp dword [esp + 0x64], 8
mov byte [esp + 0xac], 0
jb 0x4193b5
mov edx, dword [esp + 0x50]
push edx
call fcn.0044cdd7
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
mov word [esp + 0x50], di
mov dword [esp + 0x1c], eax
jb 0x419230
push ebp
call fcn.0043674c
mov eax, dword [esp + 0xa0]
add esp, 4
cmp eax, 8
jb 0x41977f
mov eax, dword [esp + 0x88]
push eax
call fcn.0044cdd7
add esp, 4
mov al, 1
jmp 0x419823
push 0x45cb68
lea ecx, [esp + 0x50]
push esi
push ecx
call fcn.0041a250
add esp, 0xc
mov eax, dword [esp + 0x64]
mov ebp, 8
cmp eax, ebp
mov eax, dword [esp + 0x50]
mov dword [esp + 0xac], 4
jae 0x41943d
lea eax, [esp + 0x50]
push 0x45cb74
push eax
call fcn.00437adb
add esp, 8
cmp eax, edi
mov dword [esp + 0x20], eax
je 0x419786
mov esi, dword [esp + 0x18]
mov edx, eax
push edx
push 1
push 0x18
push esi
call fcn.0043728e
mov eax, dword [esi + 0x10]
add esp, 0x10
xor ebx, ebx
test eax, eax
jbe 0x419561
mov ebp, esi
add ebp, 0x18
lea ecx, [ecx]
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], eax
mov word [esp + 0x6c], ax
mov esi, dword [esp + 0x20]
push esi
push 1
lea eax, [esp + 0x24]
push 2
push eax
mov byte [esp + 0xbc], 5
call fcn.0043728e
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp ax, 0xaa
je 0x4194ed
mov edi, edi
xor eax, 0xaa
push eax
push 1
lea ecx, [esp + 0x70]
call fcn.00419fd0
push esi
push 1
lea ecx, [esp + 0x24]
push 2
push ecx
call fcn.0043728e
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp ax, 0xaa
jne 0x4194c0
mov edx, dword [esp + 0x20]
push edx
push 1
lea eax, [esp + 0x30]
push 0x24
push eax
call fcn.0043728e
add esp, 0x10
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebp
call fcn.0041b100
mov edi, eax
mov ecx, 9
lea esi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x80], 8
mov byte [esp + 0xac], 4
jb 0x41953b
mov edx, dword [esp + 0x6c]
push edx
call fcn.0044cdd7
add esp, 4
xor eax, eax
mov dword [esp + 0x7c], eax
mov word [esp + 0x6c], ax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x10]
inc ebx
cmp ebx, ecx
mov dword [esp + 0x80], 7
jb 0x419480
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp + 8]
xor ebx, ebx
test eax, 0xfffffff8
jbe 0x41962d
lea esi, [ebp + 0x24]
mov ecx, dword [esp + 0x20]
push ecx
push 1
lea edx, [esp + 0x1f]
push 1
push edx
call fcn.0043728e
add esp, 0x10
xor edi, edi
mov ecx, edi
mov eax, 1
shl eax, cl
test byte [esp + 0x17], al
je 0x4195d4
mov ecx, dword [esi + 4]
test ecx, ecx
mov byte [esp + 0x16], 1
jne 0x4195af
xor edx, edx
jmp 0x4195b4
mov edx, dword [esi + 8]
sub edx, ecx
test ecx, ecx
je 0x4195cd
mov eax, dword [esi + 0xc]
sub eax, ecx
cmp edx, eax
jae 0x4195cd
mov eax, dword [esi + 8]
mov byte [eax], 1
inc eax
mov dword [esi + 8], eax
jmp 0x419614
lea ecx, [esp + 0x16]
push ecx
jmp 0x419607
mov edx, dword [esi + 4]
test edx, edx
mov byte [esp + 0x16], 0
jne 0x4195e4
xor ecx, ecx
jmp 0x4195e9
mov ecx, dword [esi + 8]
sub ecx, edx
test edx, edx
je 0x419602
mov eax, dword [esi + 0xc]
sub eax, edx
cmp ecx, eax
jae 0x419602
mov eax, dword [esi + 8]
mov byte [eax], 0
inc eax
mov dword [esi + 8], eax
jmp 0x419614
lea edx, [esp + 0x16]
push edx
mov eax, dword [esi + 8]
push 1
mov ecx, esi
push eax
call fcn.0041a300
inc edi
cmp edi, 8
jb 0x419590
mov eax, dword [ebp + 8]
inc ebx
shr eax, 3
cmp ebx, eax
jb 0x419578
mov ebx, dword [esp + 0x20]
push ebx
push 1
lea ecx, [esp + 0x1f]
push 1
push ecx
call fcn.0043728e
mov eax, dword [ebp + 8]
add esp, 0x10
xor edi, edi
test eax, 7
jbe 0x4196f5
lea esi, [ebp + 0x24]
jmp 0x419660
mov al, byte [esp + 0x17]
mov edx, 1
mov ecx, edi
shl edx, cl
test dl, al
je 0x4196a6
mov ecx, dword [esi + 4]
test ecx, ecx
mov byte [esp + 0x16], 1
jne 0x419681
xor edx, edx
jmp 0x419686
mov edx, dword [esi + 8]
sub edx, ecx
test ecx, ecx
je 0x41969f
mov eax, dword [esi + 0xc]
sub eax, ecx
cmp edx, eax
jae 0x41969f
mov eax, dword [esi + 8]
mov byte [eax], 1
inc eax
mov dword [esi + 8], eax
jmp 0x4196e6
lea ecx, [esp + 0x16]
push ecx
jmp 0x4196d9
mov edx, dword [esi + 4]
test edx, edx
mov byte [esp + 0x16], 0
jne 0x4196b6
xor ecx, ecx
jmp 0x4196bb
mov ecx, dword [esi + 8]
sub ecx, edx
test edx, edx
je 0x4196d4
mov eax, dword [esi + 0xc]
sub eax, edx
cmp ecx, eax
jae 0x4196d4
mov eax, dword [esi + 8]
mov byte [eax], 0
inc eax
mov dword [esi + 8], eax
jmp 0x4196e6
lea edx, [esp + 0x16]
push edx
mov eax, dword [esi + 8]
push 1
mov ecx, esi
push eax
call fcn.0041a300
mov eax, dword [ebp + 8]
inc edi
and eax, 7
cmp edi, eax
jb 0x419660
push ebx
call fcn.0043674c
mov ecx, dword [esp + 0x28]
push 0x45cb7c
push ecx
lea edx, [esp + 0x90]
push edx
call fcn.0041a250
add esp, 0x10
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0xb8], 6
call fcn.0040a7c0
mov eax, dword [esp + 0x9c]
mov esi, 8
cmp eax, esi
jb 0x41974b
mov eax, dword [esp + 0x88]
push eax
call fcn.0044cdd7
add esp, 4
cmp dword [esp + 0x64], esi
mov eax, dword [esp + 0x50]
jae 0x419759
lea eax, [esp + 0x50]
push 0x45cb88
push eax
call fcn.00437adb
mov dword [ebp + 0x54], eax
mov eax, dword [esp + 0x6c]
add esp, 8
cmp eax, esi
jb 0x41977f
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0044cdd7
add esp, 4
mov al, 1
jmp 0x419823
mov ecx, dword [esp + 0xbc]
xor edx, edx
mov eax, ebx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
push 0x45cb90
lea edx, [esp + 0x6c]
push esi
push edx
mov dword [ebx], 1
mov dword [ebx + 4], ecx
mov byte [ebx + 0x58], 1
call fcn.0041a250
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0xb8], 7
call fcn.0040a7c0
cmp dword [esp + 0x80], ebp
jb 0x4197ed
mov eax, dword [esp + 0x6c]
push eax
call fcn.0044cdd7
add esp, 4
cmp dword [esp + 0x64], ebp
mov eax, dword [esp + 0x50]
jae 0x4197fb
lea eax, [esp + 0x50]
push 0x45cb9c
push eax
call fcn.00437adb
mov dword [ebx + 0x54], eax
mov eax, dword [esp + 0x6c]
add esp, 8
cmp eax, ebp
jb 0x419821
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0044cdd7
add esp, 4
xor al, al
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x94]
pop ebx
xor ecx, esp
call fcn.004351f1
add esp, 0xa0
ret 0xc