Function at 0x4716e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x79c5b2
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa0], ecx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x100], 0
mov dword [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 2
lea esi, [ecx + 0xf0]
mov al, byte [ecx + 0x138]
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x47177a
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x47176e
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x2c]
push eax
call fcn.004044f0
push 0x70
lea eax, [ebp - 0x9c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x9c]
push dword [ebp - 0xa4]
call fcn.00430200
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0xa0]
add eax, 0x120
cmp ecx, eax
je 0x4717c9
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4717bf
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.004044f0
push 1
xor eax, eax
mov dword [ebp - 0x1b0], 0
push 0x7d9bdc
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x1ac], 7
mov word [ebp - 0x1c0], ax
call fcn.004044f0
push esi
lea ecx, [ebp - 0x1a8]
mov byte [ebp - 4], 4
call fcn.00404120
mov byte [ebp - 4], 5
xor ecx, ecx
mov dword [ebp - 0xc4], 7
mov dword [ebp - 0xc0], 0xcb00d9
mov dword [ebp - 0xbc], 0xd800d9
mov dword [ebp - 0xb8], 0xcb00c3
mov dword [ebp - 0xb4], 0xb000dd
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0xc0], ax
inc ecx
mov eax, dword [ebp - 0xc4]
cmp ecx, eax
jb 0x471840
xor ecx, ecx
mov word [ebp + eax*2 - 0xc0], cx
xor eax, eax
mov dword [ebp - 0x180], ecx
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x17c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x190], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471885
sub ecx, edx
lea eax, [ebp - 0xc0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x190]
call fcn.004044f0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x178]
mov esi, dword [ebp - 0xa0]
lea eax, [esi + 0xa4]
push eax
call fcn.00404120
mov byte [ebp - 4], 7
xor ecx, ecx
mov dword [ebp - 0xd8], 3
mov dword [ebp - 0xd4], 0xc300dc
mov dword [ebp - 0xd0], 0xac00cf
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0xd4], ax
inc ecx
mov eax, dword [ebp - 0xd8]
cmp ecx, eax
jb 0x4718f0
xor ecx, ecx
mov word [ebp + eax*2 - 0xd4], cx
xor eax, eax
mov dword [ebp - 0x150], ecx
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x14c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x160], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471935
sub ecx, edx
lea eax, [ebp - 0xd4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x160]
call fcn.004044f0
push esi
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 8
call fcn.00404120
mov byte [ebp - 4], 9
cmp byte [esi + 0x138], 0
je 0x4719cb
mov eax, 4
mov dword [ebp - 0xe8], 0xd800dd
mov dword [ebp - 0xec], eax
xor ecx, ecx
mov dword [ebp - 0xe4], 0xc900de
mov dword [ebp - 0xe0], 0xad
nop
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0xe8], ax
inc ecx
mov eax, dword [ebp - 0xec]
cmp ecx, eax
jb 0x4719a0
xor ecx, ecx
mov word [ebp + eax*2 - 0xe8], cx
lea eax, [ebp - 0xe8]
jmp 0x471a29
mov dword [ebp - 0xfc], 5
xor eax, eax
mov dword [ebp - 0xf8], 0xcb00cf
mov dword [ebp - 0xf4], 0xdf00c7
mov dword [ebp - 0xf0], 0xae00c8
nop word [eax + eax]
lea ecx, [eax + 0xa9]
xor word [ebp + eax*2 - 0xf8], cx
inc eax
mov ecx, dword [ebp - 0xfc]
cmp eax, ecx
jb 0x471a00
xor eax, eax
mov word [ebp + ecx*2 - 0xf8], ax
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa0]
push eax
push ecx
lea ecx, [ebp - 0x130]
call fcn.0046f0b0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x100]
push dword [ebp - 0xdc]
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0
push eax
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0xac], 0
push eax
mov dword [ebp - 0xa8], 0
call fcn.0046f1e0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x50]
push dword [ebp - 0xdc]
push dword [ebp - 0xac]
push dword [ebp - 0xb0]
push dword [ebp - 0x4c]
call fcn.00473350
lea ecx, [ebp - 0xb0]
call fcn.00420a90
push fcn.00420a60
push 4
push 0x30
lea eax, [ebp - 0x1c0]
mov byte [ebp - 4], 3
push eax
call fcn.0076e7c5
mov dword [edi], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
lea esi, [edi + 0x38]
push eax
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xa4], esi
call fcn.00404120
movzx eax, byte [ebp - 0x14]
mov byte [ebp - 0xb4], al
mov dword [esi + 0x24], 0
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0xe
call fcn.0046f620
lea ecx, [ebp - 0xcc]
mov dword [esi + 0x24], eax
call fcn.00404490
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x60], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [edi + 0x64]
call fcn.00404120
movzx eax, byte [ebp - 0x14]
mov byte [edi + 0x7c], al
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 0x11
lea ecx, [edi + 0x80]
push eax
call fcn.00430200
mov byte [ebp - 4], 0x12
lea esi, [edi + 0xf0]
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 7
xor eax, eax
lea ecx, [ebp - 0xc8]
push eax
push 0x7cf388
mov word [ebp - 0xc8], ax
call fcn.004044f0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0xb0]
mov ecx, esi
push eax
call fcn.0042e370
lea ecx, [ebp - 0xb0]
call fcn.00404220
lea ecx, [ebp - 0xc8]
call fcn.00404490
mov ecx, dword [ebp + 0x14]
mov dword [edi + 0x184], 0
mov dword [edi + 0x188], 0
mov dword [edi + 0x18c], 0
test ecx, ecx
je 0x471c17
lock inc dword [ecx + 4]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x188], eax
mov dword [edi + 0x18c], ecx
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x100], 1
call fcn.00430170
lea ecx, [ebp - 0x2c]
call fcn.00404490
mov dword [ebp - 4], 0x15
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x471c72
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x471c72
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x471c72
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 0x14