Function at 0x40b2a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xdf0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xdec], eax
push ebx
push ebp
mov eax, edx
push esi
mov dword [esp + 0x20], eax
push edi
mov dword [eax], 0
mov edi, ecx
mov eax, dword [edi + 4]
mov dword [eax + 0x74], 0
mov esi, dword [edi + 4]
movzx eax, byte [esi + 0x1258]
movzx ecx, byte [esi + 0x1259]
movzx edx, word [eax*2 + 0x48b080]
mov eax, edx
shr eax, 8
xor ecx, eax
movzx eax, dl
shl eax, 8
movzx ebx, word [ecx*2 + 0x48b080]
mov ecx, dword [esi + 0x2c]
xor ebx, eax
mov eax, dword [ecx + 0x10]
mov dword [ecx + 0x1c], eax
mov eax, dword [ecx + 0x14]
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x20], eax
mov ecx, edi
call fcn.0040ba60
test eax, eax
je 0x40b865
mov eax, dword [edi]
cmp dword [eax], 2
je 0x40ba4d
mov edx, dword [edi + 4]
mov ecx, edi
push dword [edx + 0x478]
push dword [edx + 0x470]
mov edx, dword [edx + 0x468]
call fcn.00409b20
add esp, 8
test eax, eax
je 0x40b865
mov eax, dword [edi + 4]
xor esi, esi
cmp dword [eax + 0x470], esi
jbe 0x40b3ce
mov ecx, dword [eax + 0x478]
mov eax, dword [eax + 0x474]
sub eax, 1
je 0x40b394
sub eax, 1
je 0x40b388
sub eax, 1
jne 0x40b39a
lea eax, [ecx + 1]
cmp esi, 1
cmovne eax, ecx
mov ecx, eax
jmp 0x40b39a
lea eax, [ecx + 1]
test esi, esi
cmovne eax, ecx
mov ecx, eax
jmp 0x40b39a
cmp esi, 1
jne 0x40b39a
inc ecx
push ecx
push ecx
mov edx, esi
mov ecx, edi
call fcn.0040c250
mov ecx, dword [edi]
add esp, 8
mov ecx, dword [ecx]
test eax, eax
je 0x40b3c3
cmp ecx, 3
jne 0x40b3ce
mov eax, dword [edi + 4]
inc esi
cmp esi, dword [eax + 0x470]
jb 0x40b360
jmp 0x40b3d5
cmp ecx, 4
jne 0x40b865
jmp 0x40b445
mov eax, dword [edi]
cmp dword [eax], 4
je 0x40b445
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ecx + 0x14]
and edx, 7
je 0x40b445
mov eax, 8
mov dword [esp + 0x14], 0
sub eax, edx
lea edx, [esp + 0x14]
push eax
call fcn.0040dc20
add esp, 4
test eax, eax
je 0x40b865
cmp dword [esp + 0x14], 0
je 0x40b445
mov eax, dword [edi + 4]
cmp dword [eax + 0x1284], 0
jne 0x40b43d
mov dword [eax + 0x20d4], 1
mov esi, dword [edi + 4]
push dword [esi + 0x24]
mov esi, dword [esi + 0x20]
mov ecx, esi
push 0
push edi
call dword [0x48013c]
call esi
add esp, 0xc
mov eax, dword [edi]
mov dword [eax], 2
mov eax, dword [edi]
cmp dword [eax], 3
jne 0x40b4ee
mov eax, dword [edi + 4]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call fcn.0040d8c0
mov ebp, dword [esi + 0x14]
test ebp, ebp
je 0x40b4c2
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov ecx, dword [edx + eax*8]
mov eax, dword [edx + eax*8 + 4]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
cmp edx, ebp
jae 0x40b4c2
mov ebx, dword [esi + 0x18]
movq xmm1, qword [esp + 0x18]
mov eax, 0x38
sub eax, edx
add edx, 8
movd xmm0, eax
psrlq xmm1, xmm0
movd eax, xmm1
movzx ecx, al
mov eax, ebx
shr eax, 8
xor ecx, eax
movzx ebx, bl
shl ebx, 8
movzx ecx, word [ecx*2 + 0x48b080]
xor ebx, ecx
cmp edx, ebp
jb 0x40b482
mov dword [esi + 0x20], edx
mov dword [esi + 0x18], ebx
mov ecx, dword [edi + 4]
lea edx, [esp + 0x14]
movzx ebx, word [esi + 0x18]
push 0x10
mov ecx, dword [ecx + 0x2c]
call fcn.0040dc20
add esp, 4
test eax, eax
jne 0x40b4ee
mov eax, dword [edi]
cmp dword [eax], 4
jne 0x40b865
jmp 0x40b5f5
mov eax, dword [edi]
cmp dword [eax], 3
jne 0x40b5f5
cmp ebx, dword [esp + 0x14]
jne 0x40b5be
mov ecx, edi
call fcn.0040d500
mov eax, dword [edi + 4]
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp dword [eax + 0x470], ecx
jbe 0x40b5f5
nop
mov ebp, dword [eax + 0x468]
xor edx, edx
test ebp, ebp
je 0x40b5a8
mov esi, dword [eax + ecx*4 + 0x30]
mov ebx, 0x80000000
mov ecx, 0x20
mov dword [esp + 0x18], esi
sub ecx, dword [eax + 0x478]
sar ebx, cl
nop word [eax + eax]
mov esi, dword [esi + edx*4]
cmp esi, ebx
jl 0x40b56d
mov eax, 0x7fffffff
sar eax, cl
cmp esi, eax
jg 0x40b56d
mov esi, dword [esp + 0x18]
inc edx
cmp edx, ebp
jb 0x40b550
jmp 0x40b5a4
mov eax, dword [edi + 4]
cmp dword [eax + 0x1284], 0
jne 0x40b59c
mov dword [eax + 0x20d4], 1
mov esi, dword [edi + 4]
push dword [esi + 0x24]
mov esi, dword [esi + 0x20]
mov ecx, esi
push 2
push edi
call dword [0x48013c]
call esi
add esp, 0xc
mov eax, dword [edi]
mov dword [eax], 2
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 4]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [eax + 0x470]
jb 0x40b520
jmp 0x40b5f5
mov eax, dword [edi + 4]
cmp dword [eax + 0x1284], 0
jne 0x40b5ed
mov dword [eax + 0x20d4], 1
mov esi, dword [edi + 4]
push dword [esi + 0x24]
mov esi, dword [esi + 0x20]
mov ecx, esi
push 2
push edi
call dword [0x48013c]
call esi
add esp, 0xc
mov eax, dword [edi]
mov dword [eax], 2
mov ecx, dword [edi + 4]
cmp dword [ecx + 0x20a8], 0
je 0x40b8ad
mov eax, dword [edi]
cmp dword [eax], 3
jne 0x40b8ad
cmp dword [ecx + 0x1284], 0
jne 0x40b8ad
mov esi, dword [ecx + 0x12f8]
xor eax, eax
mov ebp, dword [ecx + 0x1310]
mov edx, esi
mov ebx, dword [ecx + 0x480]
add edx, ebp
adc eax, dword [ecx + 0x1314]
cmp eax, dword [ecx + 0x484]
ja 0x40b8ad
jb 0x40b651
cmp edx, ebx
jae 0x40b8ad
sub ebx, esi
sub ebx, ebp
cmp dword [ecx + 0x20d4], 0
jne 0x40b681
mov dword [ecx + 0x20d4], 1
mov esi, dword [edi + 4]
push dword [esi + 0x24]
mov esi, dword [esi + 0x20]
mov ecx, esi
push 0
push edi
call dword [0x48013c]
call esi
add esp, 0xc
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 0x12fc]
cmp eax, dword [ecx + 0x46c]
jne 0x40b8ad
mov eax, dword [ecx + 0x1300]
cmp eax, dword [ecx + 0x470]
jne 0x40b8ad
mov eax, dword [ecx + 0x1308]
cmp eax, dword [ecx + 0x478]
jne 0x40b8ad
cmp dword [ecx + 0x12f8], 0x10
jb 0x40b8ad
xorps xmm0, xmm0
mov dword [esp + 0xddc], 0
movups xmmword [esp + 0xde0], xmm0
xor eax, eax
mov dword [esp + 0xdf8], 0
movq qword [esp + 0xdf0], xmm0
xor esi, esi
movups xmm1, xmmword [ecx + 0x12f8]
movups xmmword [esp + 0x28], xmm1
movups xmm0, xmmword [ecx + 0x1308]
psrldq xmm1, 8
movd edx, xmm1
movups xmmword [esp + 0x38], xmm0
movq xmm0, qword [ecx + 0x1318]
movq qword [esp + 0x48], xmm0
mov word [esp + 0xdd0], ax
test edx, edx
je 0x40b767
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40b745
push 4
push eax
call fcn.00464c51
add esp, 8
jmp 0x40b74f
push 1
call fcn.00464c46
add esp, 4
mov dword [esp + esi*4 + 0xddc], eax
test eax, eax
je 0x40b82c
mov edx, dword [esp + 0x30]
inc esi
cmp esi, edx
jb 0x40b730
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
lea eax, [eax + eax*4]
cmp ebx, eax
cmova ebx, eax
imul esi, ecx, 0x32
cmp ebx, esi
cmovbe esi, ebx
test esi, esi
je 0x40b884
nop word [eax + eax]
add dword [esp + 0x40], ecx
mov eax, dword [edi]
adc dword [esp + 0x44], 0
cmp esi, ecx
cmovb ecx, esi
xor edx, edx
mov dword [esp + 0x28], ecx
sub esi, ecx
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x28]
add ecx, dword [esp + 0x40]
mov eax, dword [edi + 4]
adc edx, dword [esp + 0x44]
mov dword [eax + 0xe8], ecx
xor ecx, ecx
mov dword [eax + 0xec], edx
cmp dword [esp + 0x30], ecx
jbe 0x40b801
lea eax, [esp + 0x58]
mov dword [eax - 8], 0
lea eax, [eax + 0x1b0]
mov dword [eax - 0x1b0], 0
inc ecx
mov dword [eax - 0x1ac], 0
mov dword [eax - 0x10], 0
cmp ecx, dword [esp + 0x30]
jb 0x40b7d2
lea eax, [esp + 0xddc]
mov ecx, edi
push eax
lea edx, [esp + 0x2c]
call fcn.0040d680
add esp, 4
test eax, eax
jne 0x40b982
test esi, esi
je 0x40b880
mov ecx, dword [esp + 0x28]
jmp 0x40b790
mov ecx, dword [esp + 0x30]
xor esi, esi
test ecx, ecx
je 0x40b85d
nop word [eax + eax]
mov eax, dword [esp + esi*4 + 0xddc]
test eax, eax
je 0x40b858
push eax
call fcn.0046187c
mov ecx, dword [esp + 0x34]
add esp, 4
inc esi
cmp esi, ecx
jb 0x40b840
mov eax, dword [edi]
mov dword [eax], 8
xor eax, eax
mov ecx, dword [esp + 0xdfc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00457d6e
add esp, 0xdf0
ret
mov edx, dword [esp + 0x30]
xor esi, esi
test edx, edx
je 0x40b8ad
nop word [eax + eax]
mov eax, dword [esp + esi*4 + 0xddc]
test eax, eax
je 0x40b8a8
push eax
call fcn.0046187c
mov edx, dword [esp + 0x34]
add esp, 4
inc esi
cmp esi, edx
jb 0x40b890
mov eax, dword [edi + 4]
mov dword [eax + 0x20d4], 0
mov eax, dword [edi]
mov eax, dword [eax]
cmp eax, 2
je 0x40b9c2
cmp eax, 4
je 0x40b9c2
mov eax, dword [esp + 0x24]
mov dword [eax], 1
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0xe4]
test ecx, ecx
je 0x40b8ed
mov dword [eax + 0xe0], ecx
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [eax + 0x470]
mov dword [ecx + 8], eax
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [eax + 0x474]
mov dword [ecx + 0xc], eax
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [eax + 0x478]
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [eax + 0x46c]
mov dword [ecx + 0x14], eax
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [eax + 0x468]
mov dword [ecx + 0x18], eax
xor ecx, ecx
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x468]
add eax, dword [edx + 0x480]
adc ecx, dword [edx + 0x484]
mov dword [edx + 0xe8], eax
mov dword [edx + 0xec], ecx
mov ecx, edi
mov edx, dword [edi + 4]
lea eax, [edx + 0x30]
add edx, 0x468
push eax
call fcn.0040d680
add esp, 4
test eax, eax
je 0x40ba45
mov eax, dword [edi]
mov dword [eax], 7
jmp 0x40b865
mov eax, dword [edi]
xor esi, esi
mov dword [eax], 7
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x40b865
nop dword [eax + eax]
mov eax, dword [esp + esi*4 + 0xddc]
test eax, eax
je 0x40b9b8
push eax
call fcn.0046187c
mov ecx, dword [esp + 0x34]
add esp, 4
inc esi
cmp esi, ecx
jb 0x40b9a0
jmp 0x40b865
mov eax, dword [edi + 4]
mov edx, dword [eax + 0x2c]
mov ecx, dword [edx + 0x2c]
cmp ecx, 0xffffffff
jne 0x40ba33
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov ecx, dword [edi + 4]
mov esi, dword [ecx + 8]
test esi, esi
je 0x40ba45
mov ebx, dword [ecx + 0x20b8]
mov eax, ebx
mov edx, dword [ecx + 0x20bc]
or eax, edx
je 0x40ba45
push dword [ecx + 0x24]
mov ecx, esi
push edx
push ebx
push edi
call dword [0x48013c]
call esi
add esp, 0x10
cmp eax, 1
jne 0x40ba1f
mov eax, dword [edi]
mov dword [eax], 6
jmp 0x40b865
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 0x2c]
call fcn.0040dbe0
test eax, eax
jne 0x40ba45
jmp 0x40b85d
inc ecx
mov eax, ecx
and eax, 7
shl eax, 3
shr ecx, 3
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], eax
mov eax, dword [edi]
mov dword [eax], 2
mov eax, 1
jmp 0x40b867