Function at 0x4960f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, eax
movzx eax, byte [ebx + 0x1ba]
push esi
mov esi, dword [ebx]
test dword [esi + 0x18], 0x80000
mov dword [ebp - 8], esi
mov dword [ebp - 0x28], eax
je 0x4966ce
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ecx + 0x44]
mov dword [ebp - 0xc], 0xfff0bdc0
test edi, edi
je 0x496152
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x496152
mov eax, dword [esi + 0x10]
add eax, 0xc
lea esp, [esp]
cmp dword [eax], edi
je 0x496152
mov edx, dword [ebp - 0xc]
inc edx
add eax, 0x10
mov dword [ebp - 0xc], edx
cmp edx, ecx
jl 0x496140
mov edx, dword [ebp - 0xc]
mov eax, dword [esi + 0x10]
add edx, edx
mov ecx, dword [eax + edx*8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x496342
mov esi, eax
jmp 0x496178
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
cmp edi, eax
je 0x4961ba
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push eax
push edx
call fcn.0044f8b0
add esp, 8
test eax, eax
je 0x4961ba
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov eax, esi
call fcn.00495fb0
add esp, 8
test eax, eax
je 0x496331
cmp byte [ebx + 0x1ba], 0
je 0x4961df
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push edx
mov edx, dword [ebp - 8]
push ecx
push edx
call fcn.00448140
add esp, 0xc
jmp 0x4963a7
mov edi, dword [esi + 8]
mov esi, dword [ebx]
cmp byte [esi + 0x89], 0
jne 0x49635b
lea eax, [ebx + 4]
push eax
call fcn.00446190
add esp, 4
test eax, eax
je 0x49635b
inc dword [ebx + 0x44]
mov dword [ebx + 0xc], eax
xor esi, esi
cmp dword [ebp - 0x28], 0
je 0x4966cd
mov eax, dword [ebp - 8]
cmp byte [eax + 0x40], 0
jne 0x4966cd
test esi, esi
jne 0x496331
mov esi, dword [ebx + 8]
test esi, esi
jne 0x49625b
call fcn.00478a80
mov esi, eax
mov dword [ebx + 8], eax
test esi, esi
je 0x49624e
push 0x9a
call fcn.00478be0
add esp, 4
cmp dword [ebx + 0x19c], 0
jne 0x49625b
mov byte [ebx + 0x19], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x14]
mov edx, dword [esi + 0x20]
lea edx, [eax + edx + 1]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 0
test eax, eax
jle 0x4962e6
add ecx, 0x24
mov dword [ebp - 0x1c], ecx
lea esp, [esp]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ebp + 0xc]
mov edi, dword [esi + 0x20]
lea eax, [ecx + edx + 1]
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x24], eax
cmp dword [ecx + 0x58], edi
jg 0x4962a7
push esi
call fcn.00478b00
add esp, 4
test eax, eax
jne 0x4962d3
mov eax, dword [esi + 4]
inc dword [esi + 0x20]
mov ecx, dword [ebp - 0x24]
lea edx, [edi + edi*2]
lea eax, [eax + edx*8]
mov edx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x4c
mov dword [eax + 0x14], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
add dword [ebp - 0x1c], 8
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ecx + 0x14]
jl 0x496280
movzx eax, byte [ecx + 0x18]
mov edi, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x24], eax
cmp dword [ecx + 0x58], edi
jg 0x496305
push esi
call fcn.00478b00
add esp, 4
test eax, eax
jne 0x496331
mov eax, dword [esi + 4]
xor ecx, ecx
inc dword [esi + 0x20]
lea edx, [edi + edi*2]
lea eax, [eax + edx*8]
mov edx, dword [ebp - 0x24]
mov byte [eax + 3], cl
mov dword [eax + 4], edx
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x81
mov dword [eax + 0x14], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
test eax, eax
jne 0x496175
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov eax, ecx
test ecx, ecx
jne 0x4964df
xor edi, edi
mov dword [ebp - 0x24], edi
jmp 0x4964f6
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebx]
push esi
push edi
push ecx
call fcn.00448140
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4963a7
push edi
test esi, esi
je 0x49638d
push esi
push str.no_such_table
push str._s:__s._s
push ebx
call fcn.0044f750
add esp, 0x14
jmp 0x4963a0
push str.no_such_table
push str._s:__s
push ebx
call fcn.0044f750
add esp, 0x10
mov eax, dword [ebp - 0x24]
mov byte [ebx + 0x11], 1
mov esi, eax
test esi, esi
je 0x49620d
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
push eax
push esi
push ebx
lea eax, [ebp - 0x18]
call fcn.004949c0
add esp, 0x10
test eax, eax
jne 0x49620d
cmp dword [ebp - 0x18], eax
je 0x4963d8
mov edi, dword [ebp - 0x18]
jmp 0x4963e4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0x2c], edx
lea edi, [ebp - 0x2c]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ecx + 0x14], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], eax
jle 0x49646b
jmp 0x496400
mov edx, dword [ebp + 8]
movsx edx, word [edx + 0x24]
cmp dword [edi + eax*4], edx
jne 0x496413
mov dword [edi + eax*4], 0xffffffff
mov edx, dword [ebp - 8]
cmp dword [edx + 0x114], 0
je 0x49645f
test ecx, ecx
je 0x49642c
mov ecx, dword [ecx + 4]
movsx eax, word [ecx + eax*2]
jmp 0x496430
movsx eax, word [esi + 0x24]
mov ecx, dword [ebp - 0xc]
lea edx, [eax + eax*2]
mov eax, dword [esi + 4]
mov eax, dword [eax + edx*8]
mov edx, dword [esi]
push ecx
push eax
push edx
mov edi, ebx
call fcn.004918c0
mov edi, dword [ebp - 0x24]
xor ecx, ecx
add esp, 0xc
cmp eax, 2
mov eax, dword [ebp - 0x14]
sete cl
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [edx + 0x14]
jl 0x496400
mov eax, dword [esi]
mov ecx, dword [esi + 0x20]
mov edx, dword [ebp - 0xc]
push eax
push 0
push ecx
push edx
mov eax, ebx
call fcn.00447af0
mov eax, dword [ebp + 0xc]
inc dword [ebx + 0x48]
add esp, 0x10
test eax, eax
je 0x4964aa
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0xc]
push 0xffffffffffffffff
push eax
mov eax, dword [ebp - 0x10]
push edi
push edx
push eax
push esi
push ecx
push ebx
call fcn.00494c10
add esp, 0x24
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4964cf
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
push edx
mov edx, dword [ebp - 0xc]
push 1
push eax
mov eax, dword [ebp - 4]
push edi
push eax
push ecx
push esi
push edx
push ebx
call fcn.00494c10
add esp, 0x24
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
call fcn.0044f250
jmp 0x496331
cmp byte [ecx], 0
je 0x4964ea
inc eax
cmp byte [eax], 0
jne 0x4964e4
sub eax, ecx
and eax, 0x3fffffff
mov edi, eax
mov dword [ebp - 0x24], eax
mov esi, dword [edx + 0x44]
add esi, 0x38
xor eax, eax
mov dword [ebp - 0x2c], esi
cmp dword [esi + 0xc], eax
je 0x49653a
mov edx, edi
test edi, edi
jle 0x496531
lea esp, [esp]
movzx esi, byte [ecx]
movzx esi, byte [esi + 0x548ae0]
lea edi, [eax*8]
xor esi, edi
dec edx
xor eax, esi
inc ecx
test edx, edx
jg 0x496510
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x2c]
xor edx, edx
div dword [esi]
mov eax, edx
mov edx, dword [ebp + 8]
mov edx, dword [edx]
push edi
push edx
mov edx, eax
mov eax, esi
call fcn.004478c0
add esp, 8
test eax, eax
je 0x4966cd
mov edi, dword [eax + 8]
test edi, edi
je 0x4966cd
mov esi, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
cmp esi, eax
je 0x496587
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
push ecx
push esi
push edx
mov eax, edi
call fcn.00496000
add esp, 0xc
test eax, eax
je 0x4966c2
cmp byte [edi + 0x18], 0
jne 0x4965ac
mov eax, dword [ebp - 8]
test dword [eax + 0x18], 0x1000000
jne 0x4965ac
cmp dword [ebx + 0x19c], 0
jne 0x4965ac
cmp byte [ebx + 0x16], 0
je 0x4966c2
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
push edi
push edx
push ebx
lea eax, [ebp - 0x18]
call fcn.004949c0
add esp, 0x10
test eax, eax
je 0x4965e1
cmp dword [ebp - 0x28], 0
je 0x4966cd
mov eax, dword [ebp - 8]
cmp byte [eax + 0x40], 0
jne 0x4966cd
jmp 0x4966c2
mov esi, dword [ebp - 8]
mov ecx, 0x58
call fcn.0044f470
mov esi, eax
test esi, esi
je 0x4966b4
push 0x58
push 0
push esi
call fcn.004fbb00
mov edx, dword [ebp - 8]
mov dword [esi + 4], 1
mov ecx, dword [esi]
push ecx
push 1
push edx
mov eax, esi
call fcn.0044ca60
mov esi, eax
mov eax, dword [ebp - 8]
add esp, 0x18
cmp byte [eax + 0x40], 0
jne 0x4966ab
mov eax, dword [esi]
lea ecx, [eax + eax*4]
add ecx, ecx
lea eax, [esi + ecx*8 - 0x48]
xor edx, edx
mov dword [eax + 8], edx
mov dword [eax + 4], edx
mov eax, dword [edi]
mov dword [esi + 0x18], eax
mov ecx, dword [edi]
mov eax, dword [ecx]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
mov ecx, 1
add word [eax + 0x28], cx
mov eax, dword [ebx + 0x48]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 0x10]
add dword [ebx + 0x48], ecx
cmp eax, edx
je 0x496680
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
push 0xffffffffffffffff
push eax
mov eax, dword [ebp + 8]
push ecx
push edi
push edx
push eax
push esi
push ebx
call fcn.00495610
add esp, 0x20
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4966a1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
push 1
push eax
mov eax, dword [ebp + 8]
push ecx
push edi
push edx
push eax
push esi
push ebx
call fcn.00495610
add esp, 0x20
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], 0
push esi
call fcn.0044cc80
add esp, 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
call fcn.0044f250
mov esi, dword [ebp + 0x14]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x496560
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret