Function at 0x412d60
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x522773
push eax
mov eax, 0x1024
mov dword fs:[0], esp
call fcn.0041ea50
push ebx
push ebp
push esi
lea eax, [esp + 0x18]
push edi
mov ebp, ecx
push eax
mov dword [esp + 0x34], ebp
call fcn.004174d0
add esp, 4
add ebp, 0x20
push eax
mov ecx, ebp
mov dword [esp + 0x1040], 0
call fcn.0041e360
lea ecx, [esp + 0x1c]
mov dword [esp + 0x103c], 0xffffffff
call fcn.0041e354
push 0
nop
call 0x7c80b741
mov ebx, eax
mov eax, dword [ebx + 0x38]
add ebx, 0x38
test eax, eax
je 0x413181
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x34]
push 0x1000
push ecx
push 0
stosb byte es:[edi], al
nop
call 0x7c80b56f
lea edx, [esp + 0x34]
lea ecx, [esp + 0x20]
push edx
call fcn.0041e3de
mov eax, dword [esp + 0x20]
mov edi, dword [0x53df44]
push 0x5cd38c
push eax
mov dword [esp + 0x1044], 1
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x412ebc
push 0x5dc6dc
lea ecx, [esp + 0x1c]
push 0x5dc6e0
push ecx
call fcn.0041e606
push 0x5cdb58
lea edx, [esp + 0x20]
push eax
push edx
mov byte [esp + 0x1048], 2
call fcn.0041e5ac
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1040], 3
call fcn.0041e360
lea ecx, [esp + 0x1c]
mov byte [esp + 0x103c], 2
call fcn.0041e354
lea ecx, [esp + 0x18]
mov byte [esp + 0x103c], 1
call fcn.0041e354
mov eax, dword [esp + 0x20]
push 0x5cd38c
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x412ebc
push 1
push eax
call fcn.00487cd0
add esp, 8
jmp 0x41316d
mov ecx, dword [ebx]
push 0
push ecx
push esi
nop
call 0x77c4139c
push esi
push 4
lea edx, [esp + 0x40]
push 1
push edx
mov dword [esp + 0x48], 0
nop
call 0x77c411fb
add esp, 0x1c
lea ecx, [esp + 0x28]
call fcn.0041e36c
lea ecx, [esp + 0x10]
mov byte [esp + 0x103c], 4
call fcn.0041e36c
mov eax, dword [ebp]
lea ecx, [esp + 0x34]
push ecx
push 0
push 0x5cdb50
push eax
mov byte [esp + 0x104c], 5
nop
call 0x7c861967
mov edi, dword [0x53df38]
test eax, eax
jne 0x412f79
nop
call 0x7c90fe21
push eax
call edi
push eax
call edi
push eax
lea edx, [esp + 0x34]
push 0x5cdb3c
push edx
call fcn.0041e3c6
add esp, 0x14
lea eax, [esp + 0x28]
lea ecx, [esp + 0x18]
push eax
push ebp
push ecx
call fcn.0041e606
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1040], 6
call fcn.0041e360
lea ecx, [esp + 0x18]
mov byte [esp + 0x103c], 5
call fcn.0041e354
jmp 0x412f87
lea edx, [esp + 0x34]
lea ecx, [esp + 0x10]
push edx
call fcn.0041e3cc
mov eax, dword [esp + 0x10]
push eax
nop
call 0x7c831edd
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041e35a
push esi
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x1048], 7
call fcn.0041e35a
mov ebx, dword [esp + 0x38]
mov ecx, ebx
call fcn.00413840
lea eax, [esp + 0x14]
lea ecx, [ebx + 0x24]
push eax
call fcn.0041e360
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], 0
test eax, eax
jle 0x4130ba
mov eax, dword [ebp]
lea ecx, [esp + 0x34]
push ecx
push 0
push 0x5cdb50
push eax
nop
call 0x7c861967
test eax, eax
jne 0x413054
nop
call 0x7c90fe21
push eax
call edi
push eax
call edi
push eax
lea edx, [esp + 0x34]
push 0x5cdb3c
push edx
call fcn.0041e3c6
add esp, 0x14
lea eax, [esp + 0x28]
lea ecx, [esp + 0x18]
push eax
push ebp
push ecx
call fcn.0041e606
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1040], 8
call fcn.0041e360
lea ecx, [esp + 0x18]
mov byte [esp + 0x103c], 7
call fcn.0041e354
jmp 0x413062
lea edx, [esp + 0x34]
lea ecx, [esp + 0x10]
push edx
call fcn.0041e3cc
mov eax, dword [esp + 0x10]
push eax
nop
call 0x7c831edd
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041e360
push esi
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.0041e35a
mov ecx, ebx
call fcn.00413840
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0041e7e6
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x412fe6
push esi
mov ecx, ebx
call fcn.004139c0
push esi
push 4
lea eax, [esp + 0x2c]
push 1
push eax
mov dword [esp + 0x34], 0
nop
call 0x77c411fb
mov eax, dword [esp + 0x34]
mov dword [ebx + 8], eax
inc eax
push eax
call fcn.0041e210
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x413130
mov ecx, dword [esp + 0x24]
xor eax, eax
inc ecx
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x24]
xor edi, edi
test eax, eax
mov dword [ebx + 4], ebp
jbe 0x413130
mov ebx, dword [0x53df50]
push esi
call ebx
xor al, 0xcc
add esp, 4
mov byte [ebp], al
mov eax, dword [esp + 0x24]
inc ebp
inc edi
cmp edi, eax
jb 0x41311b
push esi
nop
call 0x77c40ab1
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x103c], 5
call fcn.0041e354
lea ecx, [esp + 0x10]
mov byte [esp + 0x103c], 4
call fcn.0041e354
lea ecx, [esp + 0x28]
mov byte [esp + 0x103c], 1
call fcn.0041e354
lea ecx, [esp + 0x20]
mov dword [esp + 0x103c], 0xffffffff
call fcn.0041e354
mov ecx, dword [esp + 0x1034]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1030
ret