Function at 0x1005f964
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fe400
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x1015f1d4]
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 - 0x8c], ebx
mov eax, dword [ebx]
call dword [eax + 0x3c]
mov ecx, edi
xor esi, esi
mov eax, dword [eax + 4]
mov dword [ebp - 0x90], eax
call fcn.1004b7b0
cmp eax, 0xb
jne 0x1005f7ea
mov ecx, edi
call fcn.100963e0
test al, al
je 0x1005f7ea
mov ecx, dword [ebp - 0x90]
push edi
push ebx
call fcn.100569f0
mov ecx, eax
mov dword [ebp - 0x94], eax
call fcn.1009c5c0
test al, al
je 0x1005f7ea
push edi
push ebx
lea ecx, [ebp - 0x58]
call fcn.10054220
push edi
push ebx
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], esi
call fcn.10054220
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.10096480
mov ecx, edi
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x8c], eax
call fcn.10096480
mov ebx, dword [ebp - 0x94]
lea ecx, [ebp - 0x58]
push ecx
mov ecx, ebx
mov eax, dword [eax + 0x18]
add eax, 0x30
mov dword [ebp - 0x98], 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 0x1005f72e
mov ebx, dword [ebp - 0x98]
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x8c]
call fcn.10062c20
lea edi, [eax + 2]
lea eax, [ebp - 0x30]
push eax
push ebx
call fcn.10062e00
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
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 0x1005f6d3
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 0x1005f790
mov edx, dword [ebp - 0x6c]
cmp edx, 0x10
jb 0x1005f77e
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005f774
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005fded
push edx
push ecx
call fcn.1004716b
add esp, 8
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
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.0x1005f84a
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb case.default.0x1005f84a
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005f7db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005fded
push edx
push ecx
call fcn.1004716b
add esp, 8
jmp case.default.0x1005f84a
mov al, byte [edi + 1]
xor ebx, ebx
and al, 0x60
cmp al, 0x60
jne 0x1005f80b
mov ecx, dword [ebp - 0x90]
push edi
push dword [ebp - 0x8c]
call fcn.10055f30
mov ebx, eax
jmp 0x1005f839
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x14]
cmp byte [eax + 0x2f], bl
je 0x1005f81d
mov ebx, 1
jmp 0x1005f839
mov ecx, dword [ebp - 0x90]
push edi
push dword [ebp - 0x8c]
call fcn.10057da0
test al, al
mov ecx, 1
cmovne ebx, ecx
mov ecx, edi
call fcn.1004b7b0
dec eax
cmp eax, 0x11
ja case.default.0x1005f84a
jmp dword [eax*4 + 0x1005fdf4]
mov al, byte [edi + 1]
and al, 0x60
cmp al, 0x60
jne 0x1005f8ae
xor eax, eax
mov dword [ebp - 0x98], eax
test ebx, ebx
je case.default.0x1005f84a
mov ecx, dword [ebp - 0x90]
push eax
push edi
push dword [ebp - 0x8c]
call fcn.10057170
mov ecx, eax
or ecx, 1
mov eax, ecx
cdq
test edx, edx
jne 0x1005f88a
bsr eax, ecx
jmp 0x1005f890
bsr eax, edx
add eax, 0x20
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add esi, eax
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x98], eax
cmp eax, ebx
jb 0x1005f866
jmp case.default.0x1005f84a
mov ecx, dword [ebp - 0x90]
push edi
push dword [ebp - 0x8c]
call fcn.100567e0
push eax
call fcn.1005f3d0
add esp, 4
mov esi, eax
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.100476aa
mov esp, ebp
pop ebp
ret
mov al, byte [edi + 1]
and al, 0x60
cmp al, 0x60
jne 0x1005f943
xor eax, eax
mov dword [ebp - 0x98], eax
test ebx, ebx
je case.default.0x1005f84a
nop
mov ecx, dword [ebp - 0x90]
push eax
push edi
push dword [ebp - 0x8c]
call fcn.10057220
or eax, 1
test edx, edx
jne 0x1005f91f
bsr eax, eax
jmp 0x1005f925
bsr eax, edx
add eax, 0x20
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add esi, eax
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x98], eax
cmp eax, ebx
jb 0x1005f900
jmp case.default.0x1005f84a
mov ecx, dword [ebp - 0x90]
push edi
push dword [ebp - 0x8c]
call fcn.100568f0
push edx
push eax
call fcn.10060ae0
add esp, 8
jmp 0x1005f8c9
mov al, byte [edi + 1]
and al, 0x60
cmp al, 0x60
jne 0x1005f9c3
xor eax, eax
mov dword [ebp - 0x98], eax
test ebx, ebx
je case.default.0x1005f84a
nop dword [eax]
mov ecx, dword [ebp - 0x90]
push eax
push edi
push dword [ebp - 0x8c]
call fcn.10057170
mov ecx, eax
add eax, eax
sar ecx, 0x1f
xor ecx, eax
or ecx, 1
bsr eax, ecx
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add esi, eax
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x98], eax
cmp eax, ebx
jb 0x1005f980
jmp case.default.0x1005f84a
mov ecx, dword [ebp - 0x90]
push edi
push dword [ebp - 0x8c]
call fcn.100567e0
push eax
call fcn.100631a0
jmp 0x1005f8c6
mov al, byte [edi + 1]
and al, 0x60
cmp al, 0x60
jne 0x1005fa66
xor eax, eax
mov dword [ebp - 0x94], eax
test ebx, ebx
je case.default.0x1005f84a
nop dword [eax]
mov ecx, dword [ebp - 0x90]
push eax
push edi
push dword [ebp - 0x8c]
call fcn.10057220
mov ecx, edx
mov dword [ebp - 0x98], edx
sar dword [ebp - 0x98], 0x1f
shld edx, eax, 1
sar ecx, 0x1f
add eax, eax
xor ecx, eax
mov eax, dword [ebp - 0x98]
or ecx, 1
xor eax, edx
jne 0x1005fa3f
bsr eax, ecx
jmp 0x1005fa45
bsr eax, eax
add eax, 0x20
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add esi, eax
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
cmp eax, ebx
jb 0x1005fa00
jmp case.default.0x1005f84a
mov ecx, dword [ebp - 0x90]
push edi
push dword [ebp - 0x8c]
call fcn.100568f0
push edx
push eax
call fcn.100631c0
add esp, 8
jmp 0x1005f8c9
mov al, byte [edi + 1]
and al, 0x60
cmp al, 0x60
jne 0x1005fada
xor eax, eax
mov dword [ebp - 0x94], eax
test ebx, ebx
je case.default.0x1005f84a
mov ecx, dword [ebp - 0x90]
push eax
push edi
push dword [ebp - 0x8c]
call fcn.10057550
or eax, 1
bsr eax, eax
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add esi, eax
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
cmp eax, ebx
jb 0x1005faa0
jmp case.default.0x1005f84a
mov ecx, dword [ebp - 0x90]
push edi
push dword [ebp - 0x8c]
call fcn.10057980
or eax, 1
bsr eax, eax
lea esi, [eax*8 + 0x49]
add esi, eax
shr esi, 6
jmp case.default.0x1005f84a
mov al, byte [edi + 1]
and al, 0x60
cmp al, 0x60
jne 0x1005fb66
xor eax, eax
mov dword [ebp - 0x94], eax
test ebx, ebx
je case.default.0x1005f84a
nop dword [eax]
mov ecx, dword [ebp - 0x90]
push eax
push edi
push dword [ebp - 0x8c]
call fcn.10057600
or eax, 1
test edx, edx
jne 0x1005fb3f
bsr eax, eax
jmp 0x1005fb45
bsr eax, edx
add eax, 0x20
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add esi, eax
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
cmp eax, ebx
jb 0x1005fb20
jmp case.default.0x1005f84a
mov ecx, dword [ebp - 0x90]
push edi
push dword [ebp - 0x8c]
call fcn.10057a70
push edx
push eax
call fcn.10060ae0
add esp, 8
jmp 0x1005f8c9
lea esi, [ebx*4]
jmp case.default.0x1005f84a
lea esi, [ebx*8]
jmp case.default.0x1005f84a
mov esi, ebx
jmp case.default.0x1005f84a
mov al, byte [edi + 1]
and al, 0x60
cmp al, 0x60
jne 0x1005fbf2
xor eax, eax
mov dword [ebp - 0x94], eax
test ebx, ebx
je case.default.0x1005f84a
nop
mov ecx, dword [ebp - 0x90]
push eax
push edi
push dword [ebp - 0x8c]
call fcn.100572e0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
add esi, eax
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
cmp eax, ebx
jb 0x1005fbc0
jmp case.default.0x1005f84a
mov ecx, dword [ebp - 0x90]
push 0
push edi
push dword [ebp - 0x8c]
call fcn.10056a40
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
jmp 0x1005f8c9
mov al, byte [edi + 1]
and al, 0x60
cmp al, 0x60
jne 0x1005fc75
xor eax, eax
mov dword [ebp - 0x94], eax
test ebx, ebx
je case.default.0x1005f84a
nop dword [eax + eax]
mov ecx, dword [ebp - 0x90]
push eax
push edi
push dword [ebp - 0x8c]
call fcn.100572e0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov ecx, eax
or ecx, 1
bsr ecx, ecx
lea ecx, [ecx + ecx*8]
add ecx, 0x49
shr ecx, 6
add ecx, eax
mov eax, dword [ebp - 0x94]
inc eax
add esi, ecx
mov dword [ebp - 0x94], eax
cmp eax, ebx
jb 0x1005fc30
jmp case.default.0x1005f84a
mov ecx, dword [ebp - 0x90]
push 0
push edi
push dword [ebp - 0x8c]
call fcn.10056a40
push eax
call fcn.1005b080
jmp 0x1005f8c6
mov al, byte [edi + 1]
and al, 0x60
cmp al, 0x60
jne 0x1005fcfc
xor eax, eax
mov dword [ebp - 0x94], eax
test ebx, ebx
je case.default.0x1005f84a
nop dword [eax]
mov ecx, dword [ebp - 0x90]
push eax
push edi
push dword [ebp - 0x8c]
call fcn.10056f60
mov ecx, dword [eax + 4]
or ecx, 1
mov eax, ecx
cdq
test edx, edx
jne 0x1005fcd5
bsr eax, ecx
jmp 0x1005fcdb
bsr eax, edx
add eax, 0x20
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add esi, eax
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
cmp eax, ebx
jb 0x1005fcb0
jmp case.default.0x1005f84a
mov ecx, dword [ebp - 0x90]
push edi
push dword [ebp - 0x8c]
call fcn.10056440
mov eax, dword [eax + 4]
push eax
call fcn.1005f3d0
jmp 0x1005f8c6
xor ecx, ecx
mov dword [ebp - 0x94], ecx
test ebx, ebx
je case.default.0x1005f84a
nop dword [eax]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
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 0x1005fd72
push ecx
mov ecx, dword [ebp - 0x90]
push edi
push dword [ebp - 0x8c]
call fcn.100574a0
jmp 0x1005fd84
mov ecx, dword [ebp - 0x90]
push edi
push dword [ebp - 0x8c]
call fcn.10057840
mov ecx, dword [eax + 0x10]
mov eax, ecx
or eax, 1
mov edx, dword [ebp - 0x14]
bsr eax, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [eax + eax*8]
add eax, 0x49
shr eax, 6
add eax, ecx
add esi, eax
cmp edx, 0x10
jb 0x1005fdd3
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005fdc9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005fded
push edx
push ecx
call fcn.1004716b
add esp, 8
mov ecx, dword [ebp - 0x94]
inc ecx
mov dword [ebp - 0x94], ecx
cmp ecx, ebx
jb 0x1005fd30
jmp case.default.0x1005f84a
call fcn.100d847f
nop
xchg ebx, eax
sti
add eax, 0x5fb8710
adc cl, ch
clc
add eax, 0x5fb0310
adc byte [ecx - 8], dl
add eax, 0x5fb9310
adc byte [edi - 0x60effa05], al
sti
add eax, 0x5fd1c10
adc byte [esi + 0x121005fb], ah
cld
add eax, 0x5fd1c10
adc byte [edi - 0x6beffa06], al
cld
add eax, 0x5fb8710
adc byte [ebx + 0x641005fb], dl
stc
add eax, 0x5f9e010
adc ah, cl
int3