Function at 0x45d340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5be9a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
push ebx
mov ebx, dword [eax + 4]
push esi
mov esi, dword [ecx + 8]
push edi
mov edi, dword [ecx + 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
test edi, edi
js 0x45d49b
test ebx, ebx
js 0x45d606
mov eax, dword [ebp + 8]
cmp edi, ebx
jl 0x45d404
cmp dword [eax], edi
jge 0x45d3ba
push edi
push eax
call fcn.00460100
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 8]
mov esi, dword [eax + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
mov ecx, edx
mov edx, dword [ebp - 0xc]
add esp, 8
cmp edx, esi
je 0x45d3d9
mov eax, edi
sub eax, ebx
push eax
lea ecx, [esi + ebx*4]
push ecx
lea edx, [edx + ebx*4]
push edx
call fcn.00460010
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
add esp, 0xc
dec ebx
js 0x45d46c
sub ecx, esi
mov dword [ebp - 0x14], ecx
mov ecx, edx
lea eax, [esi + ebx*4]
sub ecx, esi
lea esp, [esp]
mov esi, dword [ebp - 0x14]
mov esi, dword [esi + eax]
xor esi, dword [eax]
sub eax, 4
dec ebx
mov dword [ecx + eax + 4], esi
jns 0x45d3f0
jmp 0x45d46c
cmp dword [eax], ebx
jge 0x45d42f
push ebx
push eax
call fcn.00460100
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 8]
mov esi, dword [eax + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
mov ecx, edx
mov edx, dword [ebp - 0xc]
add esp, 8
cmp edx, ecx
je 0x45d44e
mov eax, ebx
sub eax, edi
push eax
lea ecx, [ecx + edi*4]
push ecx
lea edx, [edx + edi*4]
push edx
call fcn.00460010
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
add esp, 0xc
dec edi
js 0x45d46a
sub ecx, esi
lea eax, [esi + edi*4]
sub edx, esi
mov esi, dword [eax + ecx]
xor esi, dword [eax]
sub eax, 4
dec edi
mov dword [eax + edx + 4], esi
jns 0x45d458
mov edx, dword [ebp - 0xc]
mov edi, ebx
test edi, edi
jle 0x45d481
lea edx, [edx + edi*4 - 4]
cmp dword [edx], 0
jne 0x45d481
dec edi
sub edx, 4
test edi, edi
jg 0x45d474
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc40c
mov esp, ebp
pop ebp
ret
test ebx, ebx
jns 0x45d5f8
neg edi
lea eax, [edi*4]
neg ebx
cmp eax, 0x10000
jge 0x45d4bf
call fcn.004bd130
mov dword [ebp - 8], esp
jmp 0x45d4cf
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.0045f700
add esp, 8
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push esi
push edx
mov ecx, 1
mov eax, edi
call fcn.0045d2a0
mov esi, dword [ebp - 8]
lea eax, [ebx*4]
add esp, 8
cmp eax, 0x10000
jge 0x45d4fe
call fcn.004bd130
mov dword [ebp - 8], esp
jmp 0x45d50e
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0045f700
add esp, 8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
push ecx
push edx
mov ecx, 1
mov eax, ebx
call fcn.0045d2a0
add esp, 8
mov eax, edi
cmp edi, ebx
jg 0x45d52d
mov eax, ebx
mov ecx, dword [ebp + 8]
cmp dword [ecx], eax
jge 0x45d549
push eax
push ecx
call fcn.00460100
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add esp, 8
mov dword [ebp - 0xc], eax
jmp 0x45d54c
mov eax, dword [ebp - 0xc]
cmp edi, ebx
jle 0x45d591
mov ecx, edi
sub ecx, ebx
push ecx
lea edx, [esi + ebx*4]
push edx
lea eax, [eax + ebx*4]
push eax
call fcn.00460010
lea ecx, [ebx - 1]
add esp, 0xc
test ecx, ecx
js 0x45d5d1
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
sub edx, esi
lea eax, [esi + ecx*4]
sub ebx, esi
lea esp, [esp]
mov esi, dword [edx + eax]
xor esi, dword [eax]
sub eax, 4
dec ecx
mov dword [eax + ebx + 4], esi
jns 0x45d580
jmp 0x45d5d1
mov edx, dword [ebp - 8]
mov ecx, ebx
sub ecx, edi
push ecx
lea ecx, [edx + edi*4]
push ecx
lea edx, [eax + edi*4]
push edx
call fcn.00460010
lea ecx, [edi - 1]
add esp, 0xc
test ecx, ecx
js 0x45d5cf
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
sub edx, esi
lea eax, [esi + ecx*4]
sub edi, esi
lea ecx, [ecx]
mov esi, dword [eax + edx]
xor esi, dword [eax]
sub eax, 4
dec ecx
mov dword [eax + edi + 4], esi
jns 0x45d5c0
mov edi, ebx
test edi, edi
jle 0x45d5ed
mov eax, dword [ebp - 0xc]
lea eax, [eax + edi*4 - 4]
lea esp, [esp]
cmp dword [eax], 0
jne 0x45d5ed
dec edi
sub eax, 4
test edi, edi
jg 0x45d5e0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edi
jmp 0x45d728
mov dword [ebp + 0xc], eax
mov eax, edi
mov dword [ebp - 0x10], esi
mov edi, ebx
mov esi, ecx
mov ebx, eax
neg ebx
lea eax, [ebx*4]
mov dword [ebp - 0x14], ebx
cmp eax, 0x10000
jge 0x45d623
call fcn.004bd130
mov dword [ebp - 8], esp
jmp 0x45d633
push eax
lea edx, [ebp - 0x18]
push edx
call fcn.0045f700
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
push eax
push ecx
mov ecx, 1
mov eax, ebx
call fcn.0045d2a0
add esp, 8
cmp edi, ebx
jle 0x45d650
mov ebx, edi
lea eax, [ebx + 1]
mov ebx, dword [ebp + 8]
cmp dword [ebx], eax
jge 0x45d66f
push eax
push ebx
call fcn.00460100
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + 8]
mov ebx, dword [ebx + 8]
add esp, 8
jmp 0x45d672
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
cmp edi, eax
jle 0x45d6ba
mov ecx, edi
sub ecx, eax
add eax, eax
add eax, eax
push ecx
lea edx, [eax + esi]
push edx
add eax, ebx
push eax
call fcn.00460010
mov ecx, dword [ebp - 0x14]
add esp, 0xc
dec ecx
js 0x45d6f2
mov edx, dword [ebp - 8]
sub edx, esi
mov dword [ebp - 0x14], edx
mov edx, ebx
lea eax, [esi + ecx*4]
sub edx, esi
mov esi, dword [ebp - 0x14]
mov esi, dword [esi + eax]
xor esi, dword [eax]
sub eax, 4
dec ecx
mov dword [eax + edx + 4], esi
jns 0x45d6a6
jmp 0x45d6f2
sub eax, edi
push eax
mov eax, dword [ebp - 8]
lea ecx, [eax + edi*4]
push ecx
lea edx, [ebx + edi*4]
push edx
call fcn.00460010
add esp, 0xc
dec edi
js 0x45d6ef
mov ecx, dword [ebp - 8]
mov edx, ebx
sub ecx, esi
lea eax, [esi + edi*4]
sub edx, esi
nop
mov esi, dword [eax + ecx]
xor esi, dword [eax]
sub eax, 4
dec edi
mov dword [eax + edx + 4], esi
jns 0x45d6e0
mov edi, dword [ebp - 0x14]
push ebx
push ebx
mov edx, 1
mov eax, edi
call fcn.0045d210
add esp, 8
test eax, eax
je 0x45d70b
mov dword [ebx + edi*4], eax
inc edi
test edi, edi
jle 0x45d720
lea ebx, [ebx + edi*4 - 4]
cmp dword [ebx], 0
jne 0x45d720
dec edi
sub ebx, 4
test edi, edi
jg 0x45d713
mov eax, dword [ebp + 8]
neg edi
mov dword [eax + 4], edi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x45d738
push eax
call fcn.0045f730
add esp, 4
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc40c
mov esp, ebp
pop ebp
ret