Function at 0x46ed00
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
mov dword [esp - 0x2c], edi
sub esp, 8
and esp, 0xfffffff8
add esp, 4
mov dword [esp - 0x18], esp
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
xchg ebx, ebx
mov ebp, esp
sub esp, 0x30
cmp byte [0x4bb19c], 0
push esi
mov dword [esp - 0x30], esi
push edi
je 0x46f4a9
mov ecx, dword [ebx + 0xc]
xor eax, eax
mov dword [esp - 0x10], 0x6c5866b6
xor esi, esi
mov dword [ebp - 0x30], eax
xor edi, edi
mov dword [ebp - 0x2c], eax
mov dword [esp - 0x44], 0x3a108c1c
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [esp - 0x18], ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov ecx, ecx
test ecx, ecx
je 0x46edaf
mov eax, dword [ebx + 8]
xchg edi, edi
add eax, 0xfffffffb
cmp eax, 0x53
ja case.0x46ed8b.6
xchg edi, edi
movzx eax, byte [eax + 0x46f4f2]
jmp dword [eax*4 + 0x46f4de]
mov edi, dword [ebx + 0x10]
push edi
call fcn.0048ba70
mov ecx, ecx
mov esi, eax
add esp, 4
mov dword [ebp - 0x30], esi
test esi, esi
mov esp, esp
je 0x46f05b
mov ecx, dword [0x4bb040]
lea eax, [ebp - 0x18]
mov dword [esp - 0x2c], esi
xor ecx, dword [0x4ba958]
nop
sub esp, 4
mov dword [esp], 0x43e93d1b
mov dword [esp - 0x14], esi
add dword [esp], 0x30450b56
xor dword [esp], 0x46d0d4e0
add dword [esp], 0x235ce506
mov esp, esp
add dword [esp], 0x17dc0bff
sub dword [esp], 0x485fd487
sub dword [esp], 0x25d7b90f
push eax
xchg esi, esi
nop
mov dword [esp - 4], 0x7343c511
xor dword [esp - 4], 0x8df936f
xor dword [esp - 4], 0x78a17b14
mov dword [esp - 0x28], edi
add dword [esp - 4], 0x335adf4f
add dword [esp - 4], 0x268f217e
sub dword [esp - 4], 0x229ab639
mov dword [esp - 0x18], 0x2f40f6e0
xor dword [esp - 4], 0x3a8c77fe
sub esp, 4
push edi
mov ebx, ebx
nop
mov dword [esp - 4], 0x41a5e914
sub dword [esp - 4], 0x2d6ebc5f
mov dword [esp - 0x30], 0x178949dd
add dword [esp - 4], 0xa4212e8
xor dword [esp - 4], 0x3b94dc8d
add dword [esp - 4], 0x3be9090b
mov ebx, ebx
xor dword [esp - 4], 0x569ceb6f
sub dword [esp - 4], 0x374a0774
sub esp, 4
xchg esp, esp
push esi
mov esi, dword [ebx + 8]
mov eax, esi
mov dword [esp - 0x44], edi
cdq
push edx
push eax
mov eax, ecx
mov ebp, ebp
cdq
nop
sub esp, 4
xchg ebp, ebp
mov dword [esp], 0x2f7e06a2
xor dword [esp], 0x342bc986
xor dword [esp], 0x7aa0c42d
sub dword [esp], 0x42a9bb4c
mov ebp, ebp
xor dword [esp], 0xb636305
sub dword [esp], 0x14282cb4
push edx
xchg edx, edx
push eax
call fcn.004892b0
mov edx, dword [ebx + 0xc]
add esp, 0x2c
xchg esp, esp
mov edi, eax
mov dword [ebp - 0x10], edi
test edx, edx
xchg edx, edx
je 0x46f017
cmp esi, 5
je 0x46f198
xchg edi, edi
cmp esi, 0xb
jne 0x46f017
test edi, edi
js 0x46f00a
mov dword [esp - 0x38], 0x208b4fe
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov edi, edi
mov dword [edx], eax
test eax, eax
je 0x46f00a
mov dword [esp - 0x38], 0x4fbcb2ae
xor edi, edi
lea esi, [edx + 0x10]
jmp 0x46ef41
mov ecx, dword [ebp - 0x30]
add ecx, edi
mov dword [esp - 0x20], edi
mov eax, dword [ecx + 0x18]
mov dword [esi - 4], eax
mov eax, dword [ecx + 0x20]
mov dword [esi], eax
mov esp, esp
mov eax, dword [ecx + 0x24]
mov dword [esi + 4], eax
movzx eax, word [ecx + 0x28]
mov word [esi + 8], ax
mov dword [esp - 0x20], 0x160c676a
movzx eax, word [ecx + 0x2a]
mov word [esi + 0xa], ax
movzx eax, word [ecx + 0x2c]
mov word [esi + 0xc], ax
mov dword [esp - 0x2c], 0x1b0a2faf
movzx eax, word [ecx + 0x2e]
mov word [esi + 0xe], ax
lea eax, [ecx + 0x30]
push eax
xchg esp, esp
lea eax, [esi + 0x10]
nop
mov dword [esp - 4], 0x43a9c130
xor dword [esp - 4], 0x29e71914
mov edx, edx
sub dword [esp - 4], 0x532f63bf
add dword [esp - 4], 0x5ce6de24
xor dword [esp - 4], 0x5178c1e2
add dword [esp - 4], 0x641ce70
mov ecx, ecx
xor dword [esp - 4], 0x2bc060db
sub esp, 4
push eax
mov ecx, ecx
call fcn.0048c5c0
add esp, 0xc
lea esi, [esi + 0x11c]
add edi, 0x128
mov dword [esp - 0x14], 0x273491cd
sub dword [ebp - 4], 1
jne 0x46ef41
mov edi, dword [ebp - 0x10]
mov dword [esp - 0x24], 0x36a20eb1
push dword [ebp - 0x30]
call fcn.0048b8d0
add esp, 4
mov esp, esp
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x46f027
mov eax, dword [ebp - 0x18]
mov dword [esp - 0x40], edx
mov dword [ecx], eax
mov eax, edi
pop edi
mov dword [esp - 0x2c], ecx
pop esi
mov esp, ebp
pop ebp
mov dword [esp - 0xc], ebx
mov esp, ebx
pop ebx
ret 0x10
mov edi, dword [ebx + 0x10]
push edi
call fcn.0048ba70
mov esi, eax
mov dword [esp - 0x34], edx
add esp, 4
mov dword [ebp - 0x30], esi
test esi, esi
xchg ebp, ebp
jne 0x46edaf
mov eax, 0x13b19d12
xor eax, 0x480ce45d
mov edi, edi
add eax, 0x1c78a24b
xor eax, 0x4e5414e6
xor eax, 0xf6620fe6
mov dword [esp - 0x30], ebx
pop edi
pop esi
mov esp, ebp
pop ebp
mov dword [esp - 0x44], esp
mov esp, ebx
pop ebx
ret 0x10
mov edi, dword [ebx + 0x10]
mov esi, ecx
jmp 0x46edaf
cmp dword [ebx + 0x10], 0xc
je 0x46f0d0
mov eax, 0x6d25ba66
sub eax, 0x491e32bf
mov dword [esp - 0x3c], ebp
add eax, 0x3aed4852
xor eax, 0x1d1d3586
xor eax, 0x7d26992f
add eax, 0x81309cb4
mov dword [esp - 0x30], 0x2e0e1dcb
pop edi
pop esi
mov esp, ebp
xchg edx, edx
pop ebp
mov esp, ebx
pop ebx
ret 0x10
mov eax, dword [ecx]
lea esi, [ebp - 0x30]
cdq
xchg edi, edi
mov edi, 0x756cb3f2
sub edi, 0x4a5e92d4
xor edi, 0x1bea14fe
add edi, 0x4b494be
mov dword [esp - 0x28], ebx
sub edi, 0x3598ca86
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
xchg ecx, ecx
add ecx, 4
je 0x46edaf
movzx eax, word [ecx]
mov word [ebp - 0x28], ax
xchg ebx, ebx
movzx eax, word [ecx + 2]
mov word [ebp - 0x26], ax
mov eax, dword [ecx + 4]
mov dword [esp - 0x40], edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x571fbe81
sub dword [ebp - 0x1c], 0x2040b8a5
sub dword [ebp - 0x1c], 0x18a63c3a
mov dword [esp - 0x24], 0x12d5fa26
sub dword [ebp - 0x1c], 0xcec6f4a
sub dword [ebp - 0x1c], 0x212c8c
sub dword [ebp - 0x1c], 0x112b2dcc
jmp 0x46edaf
mov eax, 0x203590d9
add eax, 0x10f5bbcd
xor eax, 0x21d04fe1
add eax, 0x8e7f00b
mov dword [esp - 0x20], 0x264bfb3c
add eax, 0x63209128
sub eax, 0x76dbc34d
xor eax, 0xc627c12f
mov esi, esi
pop edi
pop esi
mov esp, ebp
mov dword [esp - 0x24], esp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
test edi, edi
js 0x46f00a
mov esi, dword [ebp - 0x30]
mov ebx, ebx
mov edi, edx
mov dword [ebp - 0xc], edx
mov eax, dword [esi]
mov dword [esp - 0x34], esp
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov dword [esp - 0x3c], 0x301954bd
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov dword [esp - 0x28], esp
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [esp - 0x34], ecx
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov dword [edi + 0x18], eax
mov edx, edx
mov dword [edi + 0x1c], ecx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov dword [esp - 0x1c], ebx
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ecx
mov eax, dword [esi + 0x28]
mov dword [esp - 0x24], 0x6c3249b4
mov ecx, dword [esi + 0x2c]
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], ecx
mov edi, edi
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov dword [edi + 0x30], eax
xchg edi, edi
mov dword [edi + 0x34], ecx
mov ax, word [esi + 0x38]
mov word [edi + 0x38], ax
xchg esi, esi
movzx eax, word [esi + 0x3a]
mov ecx, eax
mov word [edi + 0x3a], ax
mov esi, esi
mov dword [ebp - 8], ecx
mov ecx, dword [esi + 0x40]
mov eax, ecx
xchg ebp, ebp
or eax, dword [esi + 0x44]
mov dword [ebp - 4], esi
je 0x46f275
mov ebx, ebx
sub ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 8]
add ecx, edx
movzx eax, ax
mov dword [esp - 0x44], 0x218df542
push eax
mov dword [edi + 0x3c], ecx
push dword [esi + 0x40]
push ecx
mov dword [esp - 0x14], edi
call fcn.0048bb50
add esp, 0xc
jmp 0x46f2b0
mov dword [edi + 0x3c], 0x348d42ca
sub dword [edi + 0x3c], 0xed74f6a
add dword [edi + 0x3c], 0x4cdcc2ae
xchg edx, edx
sub dword [edi + 0x3c], 0x4b15741
sub dword [edi + 0x3c], 0x40850796
add dword [edi + 0x3c], 0x1324e67f
mov dword [esp - 0x14], 0x753fa14
xor dword [edi + 0x3c], 0x40813db6
mov eax, dword [esi + 0x48]
mov dword [edi + 0x40], eax
mov eax, dword [esi + 0x50]
mov dword [esp - 0x2c], 0x7b536399
mov dword [edi + 0x44], eax
mov eax, dword [esi + 0x58]
mov dword [edi + 0x48], eax
mov dword [esp - 0x14], edx
mov eax, dword [esi + 0x60]
mov dword [edi + 0x4c], eax
mov eax, dword [esi + 0x64]
mov ebx, ebx
mov dword [edi + 0x50], eax
mov eax, dword [esi + 0x68]
nop
sub esp, 4
xchg edx, edx
mov dword [esp], 0x22b8b962
sub dword [esp], 0x11027b53
add dword [esp], 0x43bfa07
mov edi, edi
add dword [esp], 0x57897e28
sub dword [esp], 0x6d7bb612
mov dword [edi + 0x54], eax
lea eax, [edi + 0x58]
mov edx, edx
nop
sub esp, 4
mov dword [esp], 0x131c4ba6
add dword [esp], 0x115c48ce
mov ecx, ecx
add dword [esp], 0x4baadedd
xor dword [esp], 0x96164c1
xor dword [esp], 0x3d3d7ad5
sub dword [esp], 0x4342f83a
xchg ecx, ecx
sub dword [esp], 0x13c750b
push eax
call fcn.0048bba0
mov dword [esp - 0x44], 0x7177e9ed
add edi, 0x88
mov dword [ebp - 8], 0x42b1dd90
xor dword [ebp - 8], 0x57784ff1
xor dword [ebp - 8], 0x7f1d652d
mov ecx, ecx
sub dword [ebp - 8], 0x3be83eec
add dword [ebp - 8], 0x47f380c4
xor dword [ebp - 8], 0x7a8b040f
xchg ebp, ebp
sub dword [ebp - 8], 0xc6b3d2b
add esi, 0xc8
mov ecx, 0x7989a9bd
sub ecx, 0x26842246
mov dword [esp - 0x10], ebp
sub ecx, 0x33a591d4
add ecx, 0x539f38b1
xor ecx, 0x72ff2e58
rep movsd dword es:[edi], dword [esi]
mov dword [esp - 0x44], esi
mov edi, dword [ebp - 0xc]
add esp, 0xc
cmp dword [edi + 4], 0
mov dword [esp - 0x38], 0x26d5712a
jbe 0x46f47b
mov eax, dword [ebp - 4]
lea esi, [edi + 0xc8]
add eax, 0x108
mov dword [esp - 0xc], 0x6b07d51b
mov ecx, dword [eax - 0x10]
lea esi, [esi + 0x40]
mov edx, dword [eax - 0xc]
mov edx, edx
lea eax, [eax + 0x50]
mov dword [esi - 0x50], ecx
mov dword [esi - 0x4c], edx
mov ecx, dword [eax - 0x58]
xchg ebx, ebx
mov edx, dword [eax - 0x54]
mov dword [esi - 0x48], ecx
mov dword [esi - 0x44], edx
mov ecx, dword [eax - 0x50]
xchg esp, esp
mov edx, dword [eax - 0x4c]
mov dword [esi - 0x40], ecx
mov dword [esi - 0x3c], edx
mov esp, esp
mov ecx, dword [eax - 0x48]
mov dword [esi - 0x38], ecx
mov ecx, dword [eax - 0x40]
mov dword [esp - 0x18], 0x4ea0e326
mov dword [esi - 0x18], ecx
mov ecx, dword [eax - 0x38]
mov dword [esi - 0x34], ecx
mov ecx, dword [eax - 0x30]
mov edi, edi
mov dword [esi - 0x30], ecx
mov ecx, dword [eax - 0x28]
mov dword [esi - 0x2c], ecx
mov ecx, dword [eax - 0x20]
mov edi, edi
mov dword [esi - 0x28], ecx
mov ecx, dword [eax - 0x1c]
mov dword [esi - 0x24], ecx
mov edx, edx
mov ecx, dword [eax - 0x18]
mov dword [esi - 0x20], ecx
mov ecx, dword [eax - 0x14]
mov dword [esi - 0x1c], ecx
mov esi, esi
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp - 8], ecx
mov dword [esp - 0x14], edi
cmp ecx, dword [edi + 4]
jb 0x46f3ef
mov esi, dword [ebp - 4]
mov esi, esi
mov eax, dword [esi]
test eax, eax
je 0x46efff
mov edx, dword [ebx + 0xc]
mov dword [esp - 0x3c], 0x624821ba
add esi, eax
add edi, dword [edi]
mov dword [ebp - 0xc], edi
mov dword [esp - 0x38], 0x2ee8ace6
jmp 0x46f1aa
push dword [ebx + 0x14]
mov eax, dword [0x4bb040]
xchg ebp, ebp
push dword [ebx + 0x10]
xor eax, dword [0x4ba958]
push dword [ebx + 0xc]
xchg esp, esp
push dword [ebx + 8]
call eax
pop edi
pop esi
mov dword [esp - 0x44], 0x7a18d235
mov esp, ebp
pop ebp
mov esp, ebx
mov ebp, ebp
pop ebx
ret 0x10