Function at 0x1001f7f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd0
mov edi, ecx
lea ecx, [esp + 0x40]
mov ebx, edx
call fcn.10040b00
push 0x803f0f3
push 0
call fcn.10004200
add esp, 8
push edi
push 0
push 0x47a
call eax
test eax, eax
je 0x1001fba9
mov esi, eax
mov dword [esp + 0x3c], 0
push 0xcc9ba45
push 0
call fcn.10004200
add esp, 8
lea ecx, [esp + 0x3c]
push 2
push 0
push 0
push ecx
push esi
push ebx
push 0xffffffffffffffff
call eax
cmp eax, 1
jne 0x1001f8d3
lea ecx, [esp + 0x1c]
call fcn.10044260
push 0xffffffffffffffff
call fcn.10001010
add esp, 4
test al, al
je 0x1001f884
push esi
call fcn.10001010
add esp, 4
test al, al
je 0x1001f906
mov eax, dword [0x1004cd84]
test eax, eax
je 0x1001f897
lea ecx, [esp + 0x1c]
push eax
call fcn.10042ec0
xor ebx, ebx
lea ecx, [esp + 0x1c]
call fcn.100414d0
test al, al
je 0x1001f8ea
test bl, bl
je 0x1001fb40
mov ecx, dword [esp + 0x18]
mov eax, ecx
or eax, edx
je 0x1001fb85
push 0x8000
push 0
push edx
push ecx
push esi
call fcn.100011c0
add esp, 0x14
jmp 0x1001fb85
push 0xb8e7db5
push 0
call fcn.10004200
add esp, 8
push esi
call eax
jmp 0x1001fba9
test bl, bl
je 0x1001f935
lea ecx, [esp + 0x1c]
call fcn.10043510
push eax
call fcn.10015980
add esp, 4
test eax, eax
jne 0x1001f963
jmp 0x1001f8a6
mov eax, dword [0x1004e398]
or eax, dword [0x1004e39c]
je 0x1001fb5e
mov eax, dword [0x1004c1cc]
mov bl, 1
test eax, eax
je 0x1001f899
lea ecx, [esp + 0x1c]
push eax
call fcn.10042ec0
jmp 0x1001f899
mov dword [esp + 8], ebx
mov ebx, edi
mov edi, 0xef9e0c0f
sub edi, dword [0x1004e380]
push 0xb7b38ca0
call fcn.10008470
add esp, 4
add eax, edi
mov edi, ebx
mov ebx, dword [esp + 8]
test eax, eax
je 0x1001f8a6
test bl, bl
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], edi
je 0x1001f991
lea ecx, [esp + 0x1c]
call fcn.10043290
push 0x40
push 0x3000
push eax
push 0
push 0
push esi
call fcn.10015d70
add esp, 0x18
mov edi, eax
jmp 0x1001f9bc
push 0x8cae838
push 0
call fcn.10004200
add esp, 8
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.10043290
push 0x40
push 0x3000
push eax
push 0
push esi
call edi
mov edi, eax
xor edx, edx
mov eax, edi
or eax, edx
je 0x1001fb4a
mov dword [esp + 8], ebx
push 0x97d1c052
mov ebx, edx
call fcn.10008470
add esp, 4
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.10012e80
add esp, 8
movzx eax, word [0x1004defc]
mov byte [esp + 0x5c], 1
mov dword [esp + 0x67], ebx
mov dword [esp + 0x63], edi
mov dword [esp + 0x18], edi
mov edi, dword [0x1004e380]
mov dword [esp + 0xc], ebx
mov word [esp + 0x5d], ax
mov eax, dword [0x1004def8]
mov dword [esp + 0x5f], eax
push 0x7b0b7abf
push 0x10038930
call fcn.100050e0
add esp, 8
sub eax, edi
add eax, 0x84f48541
mov dword [esp + 0x7b], eax
push 0x9b187a44
call fcn.10008470
add esp, 4
push eax
push 0
call fcn.10004200
add esp, 8
lea ecx, [esp + 0x6b]
push 2
push 0
push 0
push ecx
push esi
push dword [0x1004e358]
push 0xffffffffffffffff
call eax
test eax, eax
je 0x1001fb30
push 0xcc9ba45
push 0
call fcn.10004200
add esp, 8
lea ecx, [esp + 0x73]
push 2
push 0
push 0
push ecx
push esi
push dword [0x1004e370]
push 0xffffffffffffffff
call eax
test eax, eax
je 0x1001fb30
mov ebx, dword [esp + 8]
test bl, bl
je 0x1001fbba
mov ecx, dword [0x1004c1cc]
call fcn.10043290
push 4
push 0x1000
push eax
push 0
push 0
push esi
call fcn.10015d70
add esp, 0x18
mov ecx, eax
or ecx, edx
je 0x1001fb07
mov ecx, dword [0x1004c1cc]
mov ebx, edx
mov edi, eax
call fcn.10043290
mov ecx, dword [0x1004c1cc]
mov dword [esp + 4], eax
call fcn.10043510
push 0
push dword [esp + 8]
push eax
push ebx
push edi
push esi
call fcn.1000f480
add esp, 0x18
mov dword [esp + 0x8b], ebx
mov dword [esp + 0x87], edi
mov ecx, dword [0x1004cd84]
call fcn.10043290
push 4
push 0x1000
push eax
push 0
push 0
push esi
call fcn.10015d70
add esp, 0x18
mov ebx, dword [esp + 8]
jmp 0x1001fbe5
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
test bl, bl
jne 0x1001f8ae
mov edi, dword [esp + 0x18]
or edx, edi
jne 0x1001fb5e
jmp 0x1001fb85
mov dword [esp + 0x18], 0
xor edx, edx
test bl, bl
jne 0x1001f8ae
jmp 0x1001fb40
push 0xfd100d8
push 0
call fcn.10004200
add esp, 8
mov ebx, edi
mov edi, eax
push 0x97d14001
call fcn.10008470
add esp, 4
push eax
push 0
push ebx
push esi
call edi
push 0x9c5fbdb4
call fcn.10008470
add esp, 4
push eax
push 0
call fcn.10004200
add esp, 8
push esi
call eax
lea ecx, [esp + 0x1c]
call fcn.10044180
lea ecx, [esp + 0x40]
call fcn.10040470
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x8cae838
push 0
call fcn.10004200
add esp, 8
mov ecx, dword [0x1004cd84]
mov edi, eax
call fcn.10043290
push 4
push 0x1000
push eax
push 0
push esi
call edi
xor edx, edx
mov ecx, eax
or ecx, edx
je 0x1001fc7b
test bl, bl
mov dword [esp + 0x14], edx
mov dword [esp + 4], eax
je 0x1001fc2c
mov ecx, dword [0x1004cd84]
call fcn.10043290
mov ecx, dword [0x1004cd84]
mov edi, eax
call fcn.10043510
push 0
push edi
push eax
mov ebx, dword [esp + 0x20]
push ebx
mov edi, dword [esp + 0x14]
push edi
push esi
call fcn.1000f480
add esp, 0x18
jmp 0x1001fc70
push 0x9d9970f8
call fcn.10008470
add esp, 4
push eax
push 0
call fcn.10004200
add esp, 8
mov ecx, dword [0x1004cd84]
mov edi, eax
call fcn.10043290
mov ecx, dword [0x1004cd84]
mov ebx, eax
call fcn.10043510
push 0
push ebx
push eax
mov ebx, dword [esp + 0x10]
push ebx
push esi
call edi
mov edi, ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x7f], edi
mov dword [esp + 0x83], ebx
lea eax, [esp + 0xb4]
push eax
push 0x1004abfc
call fcn.1000a030
add esp, 8
lea edi, [esp + 0x40]
mov ecx, edi
push eax
call fcn.10043f70
mov ecx, edi
call fcn.10040cf0
mov ecx, edi
mov ebx, eax
call fcn.10042e00
cmp ebx, eax
je 0x1001fcd3
mov edi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movsx eax, byte [ebx]
push eax
call fcn.1003e270
add esp, 4
mov byte [ebx], al
inc ebx
cmp edi, ebx
jne 0x1001fcc0
cmp byte [esp + 8], 0
mov eax, 0x1004c1b0
mov ecx, 0x1004cd70
cmovne ecx, eax
mov edi, dword [ecx]
test edi, edi
je 0x1001fcfa
lea ecx, [esp + 0x1c]
call fcn.10043510
mov ebx, eax
add ebx, edi
jmp 0x1001fd37
lea edi, [esp + 0x40]
mov ecx, edi
call fcn.10043290
mov ecx, edi
mov dword [esp + 4], eax
call fcn.10040cf0
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.10043290
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.10043510
push dword [esp + 4]
push edi
push ebx
push eax
call fcn.1003d600
add esp, 0x10
mov ebx, eax
mov edx, dword [esp + 0xc]
test ebx, ebx
je 0x1001fb34
lea ecx, [esp + 0x1c]
call fcn.10043510
mov dword [esp + 4], eax
push 0x748e6d7f
push ebx
call fcn.100076e0
add esp, 8
mov edi, eax
sub edi, dword [esp + 4]
add edi, 0x748e6d7f
push 0x97d1c052
call fcn.10008470
add esp, 4
push eax
lea eax, [esp + 0x50]
push eax
push ebx
call fcn.1001e260
add esp, 0xc
cmp byte [esp + 8], 0
je 0x1001fdd9
lea ecx, [esp + 0x1c]
mov dword [0x1004c1b0], edi
call fcn.10043510
mov ebx, dword [esp + 0xc]
push ebx
mov edi, dword [esp + 0x1c]
push edi
push eax
call fcn.1002ed70
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.10043290
lea ecx, [esp + 0x1c]
mov dword [esp + 4], eax
call fcn.10043510
push 0
push dword [esp + 8]
push eax
push ebx
push edi
push esi
call fcn.1000f480
add esp, 0x18
jmp 0x1001fe27
lea ebx, [esp + 0x1c]
mov dword [0x1004cd70], edi
mov ecx, ebx
call fcn.10043510
mov edi, dword [esp + 0x18]
push edi
push eax
call fcn.1002d120
add esp, 8
push 0xa48b0f9
push 0
call fcn.10004200
add esp, 8
mov ecx, ebx
mov dword [esp + 4], eax
call fcn.10043290
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.10043510
push 0
push ebx
push eax
push edi
push esi
call dword [esp + 0x18]
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0x28]
test eax, eax
je 0x100200a7
mov eax, dword [esp + 0xc]
add ecx, edi
mov dword [esp + 0x2c], 0
adc eax, 0
add ecx, 0x2b865bef
adc eax, 0x67c43150
push 0x983bceaf
push 0xd479a411
push eax
push ecx
call fcn.10007540
add esp, 0x10
mov edi, eax
test bl, bl
mov dword [esp + 0x28], eax
mov dword [esp + 4], edx
je 0x1001fe8b
lea eax, [esp + 0x2c]
push eax
push 0x20
push 8
push edx
push edi
push esi
call fcn.1000fb40
add esp, 0x18
jmp 0x1001fea7
push 0xd1a4de8
push 0
call fcn.10004200
add esp, 8
lea ecx, [esp + 0x2c]
push ecx
push 0x20
push 4
push edi
push esi
call eax
mov eax, dword [esp + 0x10]
xor ebx, ebx
push eax
call fcn.1002f9b0
add esp, 4
mov edi, eax
inc edi
cmp edi, 2
ja 0x1001ff19
cmp ebx, 0x64
je 0x1001fefa
push 0xff3621f9
call fcn.10008470
add esp, 4
sub ebx, eax
add ebx, 0x68e7e1f9
push 0x97abebc1
call fcn.10008470
add esp, 4
push eax
push 0
call fcn.10004200
add esp, 8
push 0xa
call eax
mov eax, dword [esp + 0x10]
jmp 0x1001fead
push 0x97d1c003
call fcn.10008470
add esp, 4
push eax
push edi
call fcn.10002d30
add esp, 8
test al, 1
jne 0x100200a3
mov ebx, dword [esp + 8]
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
test bl, bl
je 0x10020057
mov dword [esp + 0x14], esi
push 0
push dword [0x1004cd18]
call fcn.1000c150
add esp, 8
test al, 1
je 0x1001ffe2
mov ebx, 0x35fae3d7
xor edi, edi
push 0x800
push 0x10049075
call fcn.10009650
add esp, 8
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
xor byte [eax + edi], bl
push 0x97d1c009
call fcn.10008470
add esp, 4
mov esi, ebx
mov ecx, eax
shl esi, cl
push 0x97d1c019
call fcn.10008470
add esp, 4
mov ecx, eax
shr ebx, cl
or ebx, esi
push 1
push edi
inc edi
call fcn.100050e0
add esp, 8
push 0x97d1c801
call fcn.10008470
add esp, 4
cmp edi, eax
jne 0x1001ff6e
push 0
mov esi, dword [esp + 0x14]
push esi
call fcn.10005f60
add esp, 8
mov dword [0x1004cd18], eax
push esi
call fcn.1002c820
add esp, 4
cmp dword [0x1004cd18], 0
je 0x1002009f
lea eax, [esp + 0xa0]
push eax
push 0x10045fa8
call fcn.1000a030
add esp, 8
push eax
push dword [0x1004cd18]
call fcn.1003bc10
add esp, 8
mov esi, dword [0x1004e398]
mov ebx, dword [0x1004e39c]
mov edi, eax
push 0x97d1c006
call fcn.10008470
add esp, 4
lea ecx, [esp + 0x30]
push 0
push ecx
push 0
push 0
push 0
push 0
push dword [esp + 0x1c]
push dword [esp + 0x44]
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [esp + 0x48]
push ecx
push eax
push ebx
push esi
mov esi, ecx
call edi
add esp, 0x44
mov ebx, dword [esp + 8]
jmp 0x1002007a
push 0x68b1574
push 0
call fcn.10004200
add esp, 8
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push dword [esp + 0x34]
push 0
push 0
push esi
call eax
mov edi, eax
mov edx, dword [esp + 0xc]
test edi, edi
je 0x1001f8a6
push 0xb8e7db5
push 0
call fcn.10004200
add esp, 8
push edi
call eax
jmp 0x1001fb85
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test bl, bl
jne 0x1001f8ae
jmp 0x1001fb40