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

Disassembly:
push 0xffffffffffffffff
push 0x1015a9e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [0x10197ca4]
push ebx
push esi
push edi
test al, 1
mov byte [esp + 0x14], 0xf9
mov byte [esp + 0x15], 0x57
mov byte [esp + 0x16], 0xb7
mov byte [esp + 0x17], 0xd5
mov byte [esp + 0x18], 0x1e
mov byte [esp + 0x19], 0xea
mov byte [esp + 0x1a], 0xe7
mov byte [esp + 0x1b], 0x91
mov byte [esp + 0x1c], 0xc1
mov byte [esp + 0x1d], 0x39
mov byte [esp + 0x1e], 0x90
mov byte [esp + 0x20], 0x8a
mov byte [esp + 0x21], 0x3f
mov byte [esp + 0x22], 0xdb
mov byte [esp + 0x23], 0xa2
mov byte [esp + 0x24], 0x7f
mov byte [esp + 0x25], 0x9a
mov byte [esp + 0x26], 0x8e
mov byte [esp + 0x27], 0xbf
mov byte [esp + 0x28], 0xa5
mov byte [esp + 0x29], 0x55
mov byte [esp + 0x2a], 0xfc
jne 0x1004ae85
mov bl, al
push 0xc
or bl, 1
mov byte [0x10197ca4], bl
call fcn.1013c2df
add esp, 4
mov dword [0x10197ca8], eax
xor esi, esi
mov al, byte [esp + esi + 0x20]
mov bl, byte [esp + esi + 0x14]
movsx eax, al
movsx ecx, bl
push eax
push ecx
mov ecx, 0x10197ca8
call fcn.10025de0
mov cl, byte [esp + esi + 0x20]
mov edx, dword [0x10197ca8]
xor bl, cl
or al, bl
mov byte [esi + edx], al
inc esi
cmp esi, 0xb
jb 0x1004ae3e
mov eax, dword [0x10197ca8]
push 0x1004b010
mov byte [eax + 0xb], 0
call fcn.1013c36b
add esp, 4
mov al, byte [0x10197cac]
mov ecx, dword [0x10197ca8]
test al, 1
mov dword [esp + 0xc], ecx
mov byte [esp + 0x20], 0xc
mov byte [esp + 0x21], 0xbb
mov byte [esp + 0x22], 0xa6
mov byte [esp + 0x23], 0xe5
mov byte [esp + 0x24], 0xd4
mov byte [esp + 0x25], 0x44
mov byte [esp + 0x26], 0xb2
mov byte [esp + 0x27], 0xf0
mov byte [esp + 0x28], 0x46
mov byte [esp + 0x29], 0x3e
mov byte [esp + 0x14], 0x59
mov byte [esp + 0x15], 0xc9
mov byte [esp + 0x16], 0xca
mov byte [esp + 0x17], 0xa2
mov byte [esp + 0x18], 0xb1
mov byte [esp + 0x19], 0x30
mov byte [esp + 0x1a], 0xe2
mov byte [esp + 0x1b], 0x91
mov byte [esp + 0x1c], 0x34
mov byte [esp + 0x1d], 0x4a
jne 0x1004af60
mov bl, al
push 0xb
or bl, 1
mov byte [0x10197cac], bl
call fcn.1013c2df
add esp, 4
mov dword [0x10197cb0], eax
xor esi, esi
mov al, byte [esp + esi + 0x14]
mov bl, byte [esp + esi + 0x20]
movsx edx, al
movsx eax, bl
push edx
push eax
mov ecx, 0x10197cb0
call fcn.10025de0
mov cl, byte [esp + esi + 0x14]
xor bl, cl
mov ecx, dword [0x10197cb0]
or al, bl
mov byte [esi + ecx], al
inc esi
cmp esi, 0xa
jb 0x1004af18
mov edx, dword [0x10197cb0]
push 0x1004b020
mov byte [edx + 0xa], 0
call fcn.1013c36b
add esp, 4
mov ebx, dword [0x10197cb0]
xor edi, edi
cmp byte [ebx], 0
je 0x1004af76
mov al, byte [ebx + edi + 1]
inc edi
test al, al
jne 0x1004af6d
lea eax, [edi + 2]
push eax
call fcn.1013c2df
add esp, 4
mov esi, eax
test edi, edi
mov dword [esp + 0x10], esi
jle 0x1004af9d
mov ecx, ebx
push ebp
sub ecx, esi
mov ebp, edi
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec ebp
jne 0x1004af93
pop ebp
mov byte [esi + edi + 1], 0
mov byte [esi + edi], 0x57
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push esi
mov edi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.101307a0
mov ecx, dword [esp + 0x30]
add esp, 4
mov eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret