Function at 0x10059d60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b6e48
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [section..data]
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, edx
mov eax, dword [ebp + 8]
mov edi, dword [ecx + 4]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
mov eax, dword [ecx]
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x4c], 0
test ecx, ecx
je 0x10059dbe
mov ecx, dword [ecx + 0x84]
jmp 0x10059dc0
xor ecx, ecx
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.10097c50
mov edx, dword [ebx + 4]
mov ecx, dword [ebp - 0x4c]
cmp ecx, edx
jbe 0x10059ddd
mov ecx, edx
test al, al
je 0x1005a0e0
cmp ecx, dword [ebp - 0x40]
jbe 0x1005a0e0
test ecx, ecx
je 0x1005a0e0
cmp ecx, edi
ja 0x1005a0e0
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x10059e0d
mov ecx, dword [ecx + 0x84]
jmp 0x10059e0f
xor ecx, ecx
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
sar eax, 2
cmp si, ax
jae 0x1005a0e0
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
movzx esi, si
sar eax, 2
cmp esi, eax
jae 0x10059e39
mov eax, dword [ecx + 8]
mov esi, dword [eax + esi*4]
jmp 0x10059e3b
xor esi, esi
cmp byte [esi + 0x24], 0
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x40], ecx
jne 0x10059e53
mov ecx, esi
call fcn.10097cc0
mov ecx, dword [ebp - 0x40]
mov eax, dword [esi + 0x20]
add eax, ecx
cmp ecx, eax
ja 0x1005a0e0
mov ecx, ebx
call fcn.100952e0
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x1c], 0x20245c8b
mov dword [ebp - 0x18], 0x203e9
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x44], eax
lea eax, [ebx + 0x10]
mov dword [ebp - 0x2c], 0x1310007
mov dword [ebp - 0x28], 0x3830206
mov dword [ebp - 0x24], 0x50404c6
mov word [ebp - 0x20], 0x6e2
mov byte [ebp - 0x1e], 0xf9
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x3c], 0x66db3366
mov dword [ebp - 0x38], 0x5a4d3b81
mov dword [ebp - 0x34], 0xeb810874
mov dword [ebp - 0x30], 0x1000
cmp eax, edi
ja 0x1005a0e0
mov esi, dword [ebp - 0x50]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x4c]
mov eax, edi
add esi, ebx
sub eax, ebx
sub eax, 0x10
push eax
lea eax, [esi + 0x10]
push eax
call fcn.1001cbe0
test al, al
je 0x1005a0e0
movzx ecx, byte [esi + 5]
movzx eax, byte [esi + 4]
shl cx, 8
or cx, ax
movzx eax, byte [esi + 2]
movzx edx, cx
movzx ecx, byte [esi + 3]
shl cx, 8
or cx, ax
shl edx, 0x10
movzx eax, cx
movzx ecx, byte [esi + 0xa]
or eax, edx
sub eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x40]
add eax, ebx
shl cx, 8
mov dword [ebp - 0x44], eax
movzx eax, byte [esi + 9]
or cx, ax
movzx eax, byte [esi + 7]
movzx edx, cx
movzx ecx, byte [esi + 8]
shl cx, 8
or cx, ax
shl edx, 0x10
movzx eax, byte [esi + 0xe]
movzx ebx, cx
movzx ecx, byte [esi + 0xf]
or ebx, edx
shl cx, 8
or cx, ax
movzx eax, byte [esi + 0xc]
movzx edx, cx
movzx ecx, byte [esi + 0xd]
shl cx, 8
or cx, ax
shl edx, 0x10
movzx eax, cx
or eax, edx
lea esi, [eax*4]
mov eax, dword [ebp - 0x48]
add eax, esi
mov dword [ebp - 0x40], esi
cmp eax, edi
ja 0x1005a0e0
push esi
lea ecx, [ebp - 0x60]
call fcn.100940a0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x44]
lea eax, [esi + edx]
mov esi, dword [ebp - 0x60]
cmp eax, edi
ja 0x1005a0b0
mov edi, dword [ebp - 0x40]
test edi, edi
je 0x1005a004
mov eax, ebx
lea ecx, [esi + 1]
shr eax, 8
dec edi
mov dword [ebp - 0x44], eax
inc edx
add edx, dword [ebp - 0x50]
mov eax, ebx
shr eax, 0x10
mov dword [ebp - 0x48], eax
mov eax, ebx
shr eax, 0x18
shr edi, 2
mov dword [ebp - 0x40], eax
inc edi
mov al, byte [edx - 1]
lea edx, [edx + 4]
xor al, bl
lea ecx, [ecx + 4]
mov byte [ecx - 5], al
mov al, byte [edx - 4]
xor al, byte [ebp - 0x44]
mov byte [ecx - 4], al
mov al, byte [edx - 3]
xor al, byte [ebp - 0x48]
mov byte [ecx - 3], al
mov al, byte [edx - 2]
xor al, byte [ebp - 0x40]
mov byte [ecx - 2], al
dec edi
jne 0x10059fd8
mov edi, esi
lea eax, [ebp - 0x1c]
xor edx, edx
sub edi, eax
lea ecx, [ecx]
lea ecx, [ebp - 0x1c]
add ecx, edx
mov al, byte [ecx]
cmp al, byte [edi + ecx]
jne 0x1005a0b0
inc edx
cmp edx, 8
jb 0x1005a010
movzx ecx, byte [esi + 8]
movzx eax, byte [esi + 7]
shl cx, 8
or cx, ax
movzx eax, byte [esi + 5]
movzx edx, cx
movzx ecx, byte [esi + 6]
shl cx, 8
or cx, ax
shl edx, 0x10
movzx ecx, cx
xor eax, eax
or edx, ecx
add edx, 0x20
add edx, esi
mov cl, byte [ebp + eax - 0x3c]
cmp cl, byte [eax + edx - 0x17]
jne 0x1005a0b0
inc eax
cmp eax, 0xc
jb 0x1005a056
cmp byte [esi + 0x4b6], 0xe9
jne 0x1005a0b0
movzx ecx, byte [esi + 0x4ba]
mov edi, 1
movzx eax, byte [esi + 0x4b9]
shl cx, 8
or cx, ax
movzx eax, byte [esi + 0x4b7]
movzx edx, cx
movzx ecx, byte [esi + 0x4b8]
shl cx, 8
or cx, ax
shl edx, 0x10
movzx eax, cx
mov ecx, dword [ebp - 0x54]
or eax, edx
mov dword [ecx], eax
jmp 0x1005a0b2
xor edi, edi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1005a0dc
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov eax, edi
jmp 0x1005a0e2
xor eax, eax
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.100b37df
mov esp, ebp
pop ebp
ret