Function at 0x100474f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d58bd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x1017de48]
mov ecx, dword [0x100fbfac]
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [0x1017de4c]
push esi
add eax, 4
mov byte [ebp - 0xd], 0
push edi
mov edi, dword [0x1017de54]
add edi, eax
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x18], edi
mov esi, dword [eax + ecx*4]
mov eax, dword [0x1017ebbc]
cmp eax, dword [esi + 4]
jle 0x100475b2
push 0x1017ebbc
call fcn.100d136a
add esp, 4
cmp dword [0x1017ebbc], 0xffffffff
jne 0x100475b2
mov dword [ebp - 4], 0
push 0x18
mov dword [0x1017ebfc], 0
mov dword [0x1017ec00], 0
call fcn.100d1440
push 0x100d7380
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x1017ebfc], eax
call fcn.100d1775
push 0x1017ebbc
mov dword [ebp - 4], 0xffffffff
call fcn.100d1320
add esp, 0xc
mov eax, dword [0x1017eba4]
cmp eax, dword [esi + 4]
jle 0x10047628
push 0x1017eba4
call fcn.100d136a
add esp, 4
cmp dword [0x1017eba4], 0xffffffff
jne 0x10047628
mov dword [ebp - 4], 1
push 0x18
mov dword [0x1017ebb4], 0
mov dword [0x1017ebb8], 0
call fcn.100d1440
push 0x100d7370
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x1017ebb4], eax
call fcn.100d1775
push 0x1017eba4
mov dword [ebp - 4], 0xffffffff
call fcn.100d1320
add esp, 0xc
mov ebx, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], ebx
call fcn.10056f70
cmp byte [eax], 0
je 0x1004764d
cmp byte [0x1017de68], 0
jne 0x1004764d
mov esi, dword [ebp + 0xc]
add esi, 4
jmp 0x10047695
mov eax, dword [ebp + 0xc]
xor esi, esi
lea ecx, [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ecx]
sub ecx, eax
sar ecx, 3
test ecx, ecx
je 0x10047673
mov edx, dword [ebx]
cmp dword [eax], edx
je 0x10047675
inc esi
add eax, 8
cmp esi, ecx
jb 0x10047667
xor esi, esi
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
call fcn.10057050
mov dword [eax], esi
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], ebx
call fcn.10056f70
mov esi, dword [ebp - 0x1c]
mov byte [eax], 1
mov eax, dword [0x1017eb98]
mov ecx, dword [0x1017eb9c]
cmp eax, dword [ebp - 0x14]
jle 0x10047717
mov edx, dword [ebp - 0x14]
add edx, 0x2d
cmp eax, edx
jge 0x10047717
cmp ecx, edi
jle 0x10047717
lea edx, [edi + 0xe]
cmp ecx, edx
jge 0x10047717
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
call fcn.10057050
cmp dword [eax], 0
jle 0x10047710
cmp dword [0x1017e79c], 1
jne 0x100476f2
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
call fcn.10057050
mov byte [ebp - 0xd], 1
dec dword [eax]
mov ecx, dword [eax]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + ecx*8]
mov dword [ebx], eax
mov ecx, dword [ebp - 0x14]
lea eax, [edi + 0xe]
push 1
push 0x100f9824
push 0x100f92f4
push eax
lea eax, [ecx + 0x2d]
push eax
push edi
push ecx
call fcn.100cd430
mov edi, esi
jmp 0x100477b1
mov edx, dword [ebp - 0x14]
mov edi, esi
add edx, 0x2d
cmp eax, edx
jle 0x100477b1
mov edx, dword [ebp - 0x14]
add edx, 0x5a
mov dword [ebp - 0x20], edx
cmp eax, edx
jge 0x100477b1
mov eax, dword [ebp - 0x18]
cmp ecx, eax
jle 0x100477b1
add eax, 0xe
mov dword [ebp - 0x1c], eax
cmp ecx, eax
jge 0x100477b1
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 4]
lea edi, [eax + 4]
mov dword [ebp + 8], ebx
sub esi, dword [eax]
lea eax, [ebp + 8]
push eax
sar esi, 3
call fcn.10057050
mov ecx, eax
lea eax, [esi - 1]
cmp dword [ecx], eax
jge 0x100477b1
cmp dword [0x1017e79c], 1
jne 0x1004778f
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
call fcn.10057050
mov byte [ebp - 0xd], 1
inc dword [eax]
mov ecx, dword [eax]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + ecx*8]
mov dword [ebx], eax
mov eax, dword [ebp - 0x18]
push 1
push 0x100f92f4
push 0x100f9824
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x2d
push eax
call fcn.100cd430
movzx eax, byte [0x100f92ff]
mov ecx, dword [0x100fc31c]
push eax
movzx eax, byte [0x100f92fe]
push eax
mov eax, dword [0x100f92fc]
mov esi, dword [ecx]
movzx edx, ah
movzx eax, al
push edx
push eax
mov eax, dword [esi + 0x2c]
call eax
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [0x100fc31c]
add eax, 0x5a
mov dword [ebp + 8], eax
lea eax, [esi + 0xe]
push eax
push dword [ebp + 8]
mov edx, dword [ecx]
push esi
push dword [ebp - 0x14]
mov eax, dword [edx + 0x38]
call eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi]
mov eax, dword [ecx]
cmp eax, edx
je 0x1004781f
mov ecx, dword [ebx]
nop dword [eax]
cmp dword [eax], ecx
je 0x10047911
add eax, 8
cmp eax, edx
jne 0x10047810
xor eax, eax
mov dword [ebp - 0x3c], 0x487049d
mov dword [ebp - 0x38], 0x4850481
xor ecx, ecx
mov dword [ebp - 0x34], 0x49a0483
mov dword [ebp - 0x30], 0x4900480
mov dword [ebp - 0x2c], 0x4850499
mov dword [ebp - 0x28], 0x49e0497
mov word [ebp - 0x24], ax
mov byte [ebp - 0x22], 1
nop word [eax + eax]
lea eax, [ecx + 0x4c8]
xor word [ebp + ecx*2 - 0x3c], ax
inc ecx
cmp ecx, 0xc
jb 0x10047860
mov byte [ebp - 0x22], 0
lea eax, [ebp - 0x3c]
mov edi, dword [ebp - 0x14]
add esi, 7
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 1
push eax
push 0x100f92ec
push esi
lea eax, [edi + 0x2d]
mov dword [ebp + 8], 8
push eax
lea eax, [ebp + 8]
push eax
push 0x1017dbc8
call fcn.100cd120
push dword [ebx + 4]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 2
push eax
push 0x100f92ec
push esi
lea eax, [edi + 0x5e]
mov dword [ebp + 8], 8
push eax
lea eax, [ebp + 8]
push eax
push 0x1017dbc8
call fcn.100cd120
mov eax, dword [ebp - 0x18]
add esp, 0x38
mov ecx, dword [ebp - 0xc]
mov dword [0x1017de48], edi
mov dword [0x1017de4c], eax
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov dword [0x1017de50], 0x5a
mov dword [0x1017de54], 0xe
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [eax + 4]
jmp 0x10047878