Function at 0x4988d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee9f7
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x521808]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0xa0]
mov edi, dword [ebp + 8]
push ecx
mov ecx, ebx
mov dword [ebp - 0x90], ebx
mov eax, dword [ebx]
call dword [eax + 0x3c]
xor esi, esi
mov eax, dword [eax + 4]
mov dword [ebp - 0x94], eax
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4985c1
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], edi
push ecx
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], 0x4437d0
push ecx
push eax
call fcn.00426bc0
add esp, 0xc
cmp byte [edi + 2], 0xb
jne 0x49875f
mov ecx, edi
call fcn.00449b30
test al, al
je 0x49875f
mov ecx, dword [ebp - 0x94]
push edi
push ebx
call fcn.00469900
mov ecx, eax
mov dword [ebp - 0x98], eax
call fcn.004a0960
test al, al
je 0x49875f
push edi
push ebx
lea ecx, [ebp - 0x58]
call fcn.00466f80
push edi
push ebx
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0
call fcn.00466f80
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0044a240
mov ecx, edi
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x90], eax
call fcn.0044a240
mov ebx, dword [ebp - 0x98]
lea ecx, [ebp - 0x58]
push ecx
mov ecx, ebx
mov eax, dword [eax + 0x18]
add eax, 0x30
mov dword [ebp - 0x8c], eax
mov eax, dword [ebx]
call dword [eax + 0x14]
mov eax, dword [ebx]
lea ecx, [ebp - 0x88]
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0x88]
push edx
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test al, al
jne 0x4986e1
mov ebx, dword [ebp - 0x8c]
nop
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x90]
call fcn.0049af60
lea edi, [eax + 2]
lea eax, [ebp - 0x30]
push eax
push ebx
call fcn.0049b170
add edi, eax
mov ecx, dword [ebp - 0x54]
mov eax, edi
lea edx, [ebp - 0x58]
or eax, 1
add esp, 0x10
bsr eax, eax
push edx
mov dword [ebp - 0x98], eax
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add eax, edi
add esi, eax
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0x88]
push edx
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x498680
mov ecx, dword [ebp - 0x84]
lea edx, [ebp - 0x88]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax + 0x40]
cmp dword [ebp - 0x68], 9
jne 0x498724
mov eax, dword [ebp - 0x6c]
cmp eax, 0x10
jb 0x498712
inc eax
lea ecx, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
call fcn.004040c0
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0x58]
push edx
mov dword [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax + 0x40]
cmp dword [ebp - 0x38], 9
jne case.default.0x4987ec
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x10
jb case.default.0x4987ec
inc ecx
push ecx
push dword [ebp - 0x50]
lea ecx, [ebp - 0x50]
call fcn.004040c0
jmp case.default.0x4987ec
mov al, byte [edi + 1]
xor ebx, ebx
and al, 0x60
cmp al, 0x60
jne 0x498780
mov ecx, dword [ebp - 0x94]
push edi
push dword [ebp - 0x90]
call fcn.00468d40
mov ebx, eax
jmp 0x4987b0
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x14]
mov al, byte [eax + 0x2f]
test al, al
je 0x498794
mov ebx, 1
jmp 0x4987b0
mov ecx, dword [ebp - 0x94]
push edi
push dword [ebp - 0x90]
call fcn.0046aff0
test al, al
mov ecx, 1
cmovne ebx, ecx
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4987de
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], edi
push ecx
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x4437d0
push ecx
push eax
call fcn.00426bc0
add esp, 0xc
movzx eax, byte [edi + 2]
dec eax
cmp eax, 0x11
ja case.default.0x4987ec
jmp dword [eax*4 + 0x498d0c]
mov al, byte [edi + 1]
and al, 0x60
cmp al, 0x60
jne 0x498844
xor eax, eax
mov dword [ebp - 0x8c], eax
test ebx, ebx
je case.default.0x4987ec
nop dword [eax]
mov ecx, dword [ebp - 0x94]
push eax
push edi
push dword [ebp - 0x90]
call fcn.0046a120
push eax
call fcn.004909e0
add esi, eax
add esp, 4
mov eax, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0x8c], eax
cmp eax, ebx
jb 0x498810
jmp case.default.0x4987ec
mov ecx, dword [ebp - 0x94]
push edi
push dword [ebp - 0x90]
call fcn.004696c0
push eax
call fcn.004909e0
add esp, 4
mov esi, eax
jmp case.default.0x4987ec
mov al, byte [edi + 1]
and al, 0x60
cmp al, 0x60
jne 0x4988b5
xor eax, eax
mov dword [ebp - 0x8c], eax
test ebx, ebx
je case.default.0x4987ec
nop
mov ecx, dword [ebp - 0x94]
push eax
push edi
push dword [ebp - 0x90]
call fcn.0046a200
push edx
push eax
call fcn.00495020
add esi, eax
add esp, 8
mov eax, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0x8c], eax
cmp eax, ebx
jb 0x498880
jmp case.default.0x4987ec
mov ecx, dword [ebp - 0x94]
push edi
push dword [ebp - 0x90]
call fcn.004697e0
push edx
push eax
call fcn.00495020
add esp, 8
mov esi, eax
jmp case.default.0x4987ec
mov al, byte [edi + 1]
and al, 0x60
cmp al, 0x60
jne 0x49893a
xor eax, eax
mov dword [ebp - 0x8c], eax
test ebx, ebx
je case.default.0x4987ec
mov ecx, dword [ebp - 0x94]
push eax
push edi
push dword [ebp - 0x90]
call fcn.0046a120
mov ecx, eax
add eax, eax
sar ecx, 0x1f
xor ecx, eax
or ecx, 1
bsr eax, ecx
mov dword [ebp - 0x98], eax
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add esi, eax
mov eax, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0x8c], eax
cmp eax, ebx
jb 0x4988f1
jmp case.default.0x4987ec
mov ecx, dword [ebp - 0x94]
push edi
push dword [ebp - 0x90]
call fcn.004696c0
push eax
call fcn.00494d80
add esp, 4
mov esi, eax
jmp case.default.0x4987ec
mov al, byte [edi + 1]
and al, 0x60
cmp al, 0x60
jne 0x4989aa
xor eax, eax
mov dword [ebp - 0x8c], eax
test ebx, ebx
je case.default.0x4987ec
mov ecx, dword [ebp - 0x94]
push eax
push edi
push dword [ebp - 0x90]
call fcn.0046a200
push edx
push eax
call fcn.00494db0
add esi, eax
add esp, 8
mov eax, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0x8c], eax
cmp eax, ebx
jb 0x498975
jmp case.default.0x4987ec
mov ecx, dword [ebp - 0x94]
push edi
push dword [ebp - 0x90]
call fcn.004697e0
push edx
push eax
call fcn.00494db0
add esp, 8
mov esi, eax
jmp case.default.0x4987ec
mov al, byte [edi + 1]
and al, 0x60
cmp al, 0x60
jne 0x498a26
xor eax, eax
mov dword [ebp - 0x8c], eax
test ebx, ebx
je case.default.0x4987ec
mov ecx, dword [ebp - 0x94]
push eax
push edi
push dword [ebp - 0x90]
call fcn.0046a610
or eax, 1
bsr eax, eax
mov dword [ebp - 0x98], eax
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add esi, eax
mov eax, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0x8c], eax
cmp eax, ebx
jb 0x4989e6
jmp case.default.0x4987ec
mov ecx, dword [ebp - 0x94]
push edi
push dword [ebp - 0x90]
call fcn.0046aa90
or eax, 1
bsr eax, eax
mov dword [ebp - 0x98], eax
lea esi, [eax*8 + 0x49]
add esi, eax
shr esi, 6
jmp case.default.0x4987ec
mov al, byte [edi + 1]
and al, 0x60
cmp al, 0x60
jne 0x498aa5
xor eax, eax
mov dword [ebp - 0x8c], eax
test ebx, ebx
je case.default.0x4987ec
nop
mov ecx, dword [ebp - 0x94]
push eax
push edi
push dword [ebp - 0x90]
call fcn.0046a6f0
push edx
push eax
call fcn.00495020
add esi, eax
add esp, 8
mov eax, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0x8c], eax
cmp eax, ebx
jb 0x498a70
jmp case.default.0x4987ec
mov ecx, dword [ebp - 0x94]
push edi
push dword [ebp - 0x90]
call fcn.0046abb0
push edx
push eax
call fcn.00495020
add esp, 8
mov esi, eax
jmp case.default.0x4987ec
lea esi, [ebx*4]
jmp case.default.0x4987ec
lea esi, [ebx*8]
jmp case.default.0x4987ec
mov esi, ebx
jmp case.default.0x4987ec
mov al, byte [edi + 1]
and al, 0x60
cmp al, 0x60
jne 0x498b32
xor eax, eax
mov dword [ebp - 0x8c], eax
test ebx, ebx
je case.default.0x4987ec
mov ecx, dword [ebp - 0x94]
push eax
push edi
push dword [ebp - 0x90]
call fcn.0046a2e0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
add esi, eax
mov eax, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0x8c], eax
cmp eax, ebx
jb 0x498b00
jmp case.default.0x4987ec
mov ecx, dword [ebp - 0x94]
push 0
push edi
push dword [ebp - 0x90]
call fcn.00469970
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov esi, eax
jmp case.default.0x4987ec
mov al, byte [edi + 1]
and al, 0x60
cmp al, 0x60
jne 0x498ba4
xor eax, eax
mov dword [ebp - 0x8c], eax
test ebx, ebx
je case.default.0x4987ec
nop dword [eax]
mov ecx, dword [ebp - 0x94]
push eax
push edi
push dword [ebp - 0x90]
call fcn.0046a2e0
push eax
call fcn.0048eac0
add esi, eax
add esp, 4
mov eax, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0x8c], eax
cmp eax, ebx
jb 0x498b70
jmp case.default.0x4987ec
mov ecx, dword [ebp - 0x94]
push 0
push edi
push dword [ebp - 0x90]
call fcn.00469970
push eax
call fcn.0048eac0
add esp, 4
mov esi, eax
jmp case.default.0x4987ec
mov al, byte [edi + 1]
and al, 0x60
cmp al, 0x60
jne 0x498c17
xor eax, eax
mov dword [ebp - 0x8c], eax
test ebx, ebx
je case.default.0x4987ec
mov ecx, dword [ebp - 0x94]
push eax
push edi
push dword [ebp - 0x90]
call fcn.00469f30
push dword [eax + 4]
call fcn.004909e0
add esi, eax
add esp, 4
mov eax, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0x8c], eax
cmp eax, ebx
jb 0x498be1
jmp case.default.0x4987ec
mov ecx, dword [ebp - 0x94]
push edi
push dword [ebp - 0x90]
call fcn.00469300
push dword [eax + 4]
call fcn.004909e0
add esp, 4
mov esi, eax
jmp case.default.0x4987ec
xor ecx, ecx
mov dword [ebp - 0x8c], ecx
test ebx, ebx
je case.default.0x4987ec
nop dword [eax + eax]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov al, byte [edi + 1]
and al, 0x60
mov dword [ebp - 4], 4
cmp al, 0x60
lea eax, [ebp - 0x28]
push eax
jne 0x498c8b
push ecx
mov ecx, dword [ebp - 0x94]
push edi
push dword [ebp - 0x90]
call fcn.0046a530
jmp 0x498c9d
mov ecx, dword [ebp - 0x94]
push edi
push dword [ebp - 0x90]
call fcn.0046a950
mov ecx, dword [eax + 0x10]
mov eax, ecx
or eax, 1
mov dword [ebp - 4], 0xffffffff
bsr eax, eax
mov dword [ebp - 0x98], eax
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add eax, ecx
add esi, eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x498cd7
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004040c0
mov ecx, dword [ebp - 0x8c]
inc ecx
mov dword [ebp - 0x8c], ecx
cmp ecx, ebx
jb 0x498c50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af547
mov esp, ebp
pop ebp
ret