Function at 0x10081a50
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x1015dc20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, 0x28a
push ebx
cdq
idiv dword [0x1018c92c]
mov eax, dword [0x1018c928]
push ebp
mov ebp, 0xd
push esi
mov word [esp + 0x30], 0x55
mov word [esp + 0x32], 0x1f
mov word [esp + 0x34], 0xf
mov word [esp + 0x36], 0x19
mov word [esp + 0x38], bp
mov word [esp + 0x3a], 0x3e
mov word [esp + 0x3c], 0x2a
mov word [esp + 0x3e], 6
mov word [esp + 0x40], 0x16
mov word [esp + 0x42], 0x3a
mov word [esp + 0x44], 0x3d
mov word [esp + 0x46], 0xe
mov word [esp + 0x48], bp
mov word [esp + 0x4a], 2
mov word [esp + 0x4c], 8
mov word [esp + 0x4e], 0x34
mov word [esp + 0x50], 0x33
mov word [esp + 0x52], 5
mov word [esp + 0x54], 0x1a
mov word [esp + 0x56], 7
mov cl, byte [edx + eax]
mov al, byte [0x101972f4]
test al, 1
mov byte [esp + 0xc], cl
jne 0x10081b40
mov bl, al
lea edx, [esp + 0x30]
or bl, 1
push edx
mov ecx, 0x101972f8
mov byte [0x101972f4], bl
call fcn.10044620
push 0x100880c0
call fcn.1013c36b
add esp, 4
mov al, byte [esp + 0x68]
xor ebx, ebx
push edi
mov edi, dword [0x101972f8]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.1000bc70
push edi
call fcn.1013c2c2
add esp, 4
mov esi, eax
lea ecx, [esp + 0x14]
push 1
push esi
call fcn.1000c010
test al, al
je 0x10081b91
mov ecx, dword [esp + 0x18]
push esi
push edi
push ecx
call fcn.100017d0
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], esi
add esp, 0xc
mov word [edx + esi*2], bx
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, dword [0x10191a54]
mov dword [esp + 0x6c], ebx
call fcn.10058e60
mov ecx, eax
call fcn.10068200
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x68], 0xffffffff
call fcn.1000bc70
mov al, byte [0x101972fc]
mov word [esp + 0x14], 0x55
test al, 1
mov word [esp + 0x16], 0x1f
mov word [esp + 0x18], 0xf
mov word [esp + 0x1a], 0x19
mov word [esp + 0x1c], bp
jne 0x10081c56
or al, 1
push 0xc
mov byte [0x101972fc], al
call fcn.1013c2df
add esp, 4
mov dword [0x10197300], eax
mov edi, 0x30
xor esi, esi
mov bp, word [esp + esi + 0x14]
push edi
mov edx, ebp
mov ecx, 0x10197300
and edx, 0xffff
push edx
call fcn.1004a650
mov ecx, dword [0x10197300]
xor eax, ebp
xor eax, edi
xor edi, edi
mov word [esi + ecx], ax
mov eax, dword [0x10197300]
mov di, word [esi + eax]
add esi, 2
cmp esi, 0xa
jb 0x10081c0b
push 0x10081d40
mov word [eax + 0xa], bx
call fcn.1013c36b
add esp, 4
mov esi, dword [0x10197300]
mov dl, byte [esp + 0x6c]
push esi
mov byte [esp + 0x28], dl
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.1013c2c2
add esp, 4
lea ecx, [esp + 0x24]
push eax
push esi
call fcn.1000bf40
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, dword [0x10191a54]
mov dword [esp + 0x6c], 1
call fcn.10058e80
mov ecx, eax
call fcn.1007a6e0
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x64], 0xffffffff
cmp ecx, ebx
pop edi
je 0x10081cd7
mov al, byte [ecx - 1]
cmp al, bl
je 0x10081ccb
cmp al, 0xff
je 0x10081ccb
dec al
mov byte [ecx - 1], al
jmp 0x10081cd7
add ecx, 0xfffffffe
push ecx
call fcn.101307a0
add esp, 4
push 0x5a
push 0x77
push 0xffffffffffffffe8
push 0x59
call fcn.1007f5f0
mov cl, byte [0x1018c950]
mov esi, dword [esp + 0x1c]
mov dl, byte [0x1018c955]
sub cl, al
mov al, byte [0x1018c956]
push esi
add cl, al
mov eax, 0x1ce
push edx
mov bl, byte [esp + 0x24]
cdq
idiv dword [0x1018c92c]
mov eax, dword [0x1018c928]
add cl, bl
push ecx
mov cl, byte [edx + eax]
push ecx
push esi
call fcn.1007f620
mov ecx, dword [esp + 0x7c]
add esp, 0x24
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
add esp, 0x58
ret