Function at 0x10059170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aba93
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
mov edx, dword [ebp + 8]
mov eax, dword [edi]
mov dword [ebp - 0x2c], 1
mov dword [0x100ce794], eax
test edx, edx
jne 0x100591c9
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x100591e4
cmp edx, dword [edi + 4]
jne 0x10059620
call fcn.100599e0
jmp 0x10059620
and eax, 0xf0000
cmp eax, 0x10000
je 0x100595ce
cmp eax, 0x40000
je 0x1005922f
cmp eax, 0x80000
jne 0x10059620
mov esi, dword [edi]
test esi, esi
je 0x10059620
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10059620
push eax
mov ecx, esi
call dword [0x100bd60c]
jmp 0x10059620
mov esi, dword [edi]
test esi, esi
je 0x1005924b
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005924b
push eax
mov ecx, esi
call dword [0x100bd60c]
mov edx, dword [edi + 0x28]
mov eax, edx
mov ecx, dword [edi + 0x24]
sub eax, ecx
sar eax, 3
mov dword [ebp - 0x24], 0
test eax, eax
je 0x100592ae
xor esi, esi
mov dword [ebp - 0x2c], esi
mov esi, dword [ecx + esi + 4]
test esi, esi
je 0x10059290
mov esi, dword [esi]
test esi, esi
je 0x10059290
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10059290
push 0x110
mov ecx, esi
call dword [0x100bd610]
mov edx, dword [edi + 0x28]
mov eax, edx
mov ecx, dword [edi + 0x24]
sub eax, ecx
mov esi, dword [ebp - 0x2c]
inc dword [ebp - 0x24]
add esi, 8
sar eax, 3
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x24], eax
jb 0x10059268
cmp ecx, edx
je 0x10059620
mov esi, dword [ebp + 8]
nop dword [eax]
mov edi, dword [ecx + 4]
test edi, edi
je 0x100592cb
cmp dword [edi], esi
je 0x100592d7
add ecx, 8
cmp ecx, edx
jne 0x100592c0
jmp 0x10059620
mov eax, dword [edi + 0x50]
test eax, eax
je 0x10059620
cmp dword [edi + 0x54], 0
lea ecx, [edi + 0x54]
mov dword [ebp - 0x2c], ecx
je 0x10059620
mov ecx, dword [eax]
test ecx, ecx
je 0x10059620
mov esi, dword [0x100bd5ac]
mov eax, 0x10624dd3
mul ecx
mov ecx, 0xd78ae8
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.1001cb40
mov ecx, eax
call esi
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10059620
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov edx, dword [ecx + 0x28]
mov esi, dword [ecx + 0x24]
sub edx, esi
sar edx, 3
mov dword [ebp - 0x20], edx
test edx, edx
je 0x10059363
lea edx, [esi + 4]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x24], esi
nop dword [eax]
mov esi, dword [edx]
test esi, esi
je 0x1005935a
cmp esi, edi
je 0x10059366
inc eax
add edx, 8
cmp eax, dword [ebp - 0x20]
jb 0x10059350
or eax, 0xffffffff
cmp dword [ecx + 0x18], eax
jne 0x10059620
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax]
mov eax, dword [eax]
add eax, dword [edx]
mov dword [ecx + 0x14], eax
mov esi, dword [edi]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test esi, esi
je 0x100593a0
push 4
push esi
call edi
test eax, eax
jne 0x100593a0
push 0x4000
mov ecx, esi
call dword [0x100bd610]
mov ecx, 0xd78d38
call fcn.1001cb40
test eax, eax
je 0x100593c2
push 4
push eax
call edi
test eax, eax
jne 0x100593c2
push 0xffffffffffffffff
call dword [0x100bd6a0]
add esp, 4
mov byte [ebp - 0x1c], 0x31
mov cl, 0x49
xor cl, byte [ebp - 0x1c]
mov al, 0x74
xor al, byte [ebp - 0x1c]
mov ch, 0x50
mov byte [ebp - 0x1b], al
mov dl, 0x52
mov byte [ebp - 0x1a], cl
mov dh, 0x5f
mov cl, byte [ebp - 0x1c]
mov ah, 0x59
mov byte [ebp - 0xd], 0x56
xor dl, cl
mov al, byte [ebp - 0xd]
xor ch, cl
xor al, cl
mov byte [ebp - 0xe], 0x54
xor dh, cl
mov byte [ebp - 0x15], al
mov al, byte [ebp - 0xe]
xor ah, cl
xor al, cl
mov byte [ebp - 0x17], ch
xorps xmm0, xmm0
mov byte [ebp - 0x13], 0
lea ecx, [ebp - 0x1b]
mov byte [ebp - 0x19], dl
mov byte [ebp - 0x16], dh
lea edx, [ecx + 1]
mov byte [ebp - 0x18], ah
mov byte [ebp - 0x14], al
mov byte [ebp - 0x13], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10059430
sub ecx, edx
lea eax, [ebp - 0x1b]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.10002620
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x9c]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], 0
push dword [eax]
call fcn.10013250
add esp, 4
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0xf
jbe 0x1005946f
mov eax, dword [eax]
movaps xmm0, xmmword [0x100bf490]
lea edi, [ebp - 0x48]
push 0x64
movups xmmword [ebp - 0x6c], xmm0
xor ecx, ecx
mov byte [ebp - 0x4c], 0
movaps xmm0, xmmword [0x100c00f0]
push 4
push eax
movups xmmword [ebp - 0x5c], xmm0
mov al, byte [ebp - 0x6c]
xor byte [ebp + ecx - 0x6b], al
inc ecx
cmp ecx, 0x1f
jb 0x10059493
sub esp, 0x18
mov byte [ebp - 0x4c], 0
mov esi, esp
lea ecx, [ebp - 0x6b]
xorps xmm0, xmm0
lea edx, [ecx + 1]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100594c3
sub ecx, edx
lea eax, [ebp - 0x6b]
push ecx
push eax
mov ecx, esi
call fcn.10002620
lea eax, [ebp - 0x84]
push eax
call fcn.10005dd0
add esp, 0x20
mov edx, edi
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.1002e260
mov ecx, dword [ebp - 0x70]
add esp, 8
cmp ecx, 0xf
jbe 0x1005952e
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10059524
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059635
push ecx
push edx
call fcn.100859f6
add esp, 8
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0xf
mov byte [ebp - 0x84], 0
cmp ecx, 0xf
jbe 0x1005957d
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10059573
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059635
push ecx
push edx
call fcn.100859f6
add esp, 8
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], 0
cmp ecx, 0xf
jbe 0x10059620
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100595c2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059635
push ecx
push edx
call fcn.100859f6
add esp, 8
jmp 0x10059620
mov eax, dword [edi + 0x24]
mov ecx, eax
mov esi, dword [edi + 0x28]
mov dword [ebp - 0x2c], eax
cmp ecx, esi
je 0x10059620
nop dword [eax]
mov edi, dword [ecx + 4]
test edi, edi
je 0x100595eb
cmp dword [edi], edx
je 0x100595f4
add ecx, 8
cmp ecx, esi
jne 0x100595e0
jmp 0x10059620
mov ecx, dword [ebp - 0x2c]
xor eax, eax
sub esi, ecx
sar esi, 3
test esi, esi
je 0x10059617
add ecx, 4
mov edx, dword [ecx]
test edx, edx
je 0x1005960f
cmp edx, edi
je 0x1005961a
inc eax
add ecx, 8
cmp eax, esi
jb 0x10059605
or eax, 0xffffffff
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x18], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call fcn.1008ac0f
int3