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

Disassembly:
push 0xffffffffffffffff
push 0x1015d408
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov al, 0xc8
push ebx
mov byte [esp + 0xe], al
mov byte [esp + 0x11], al
mov al, byte [0x1019753c]
push esi
test al, 1
push edi
mov byte [esp + 0x10], 0xc2
mov byte [esp + 0x11], 0x5c
mov byte [esp + 0x12], 0x81
mov byte [esp + 0x13], 0x1d
mov byte [esp + 0x14], 0x85
mov byte [esp + 0x15], 0x3d
mov byte [esp + 0x17], 0x71
mov byte [esp + 0x18], 0xbb
mov byte [esp + 0x1a], 0x78
mov byte [esp + 0x1b], 0x86
mov byte [esp + 0x1c], 0xa9
mov byte [esp + 0x1d], 0x39
mov byte [esp + 0x1e], 0xf3
mov byte [esp + 0x1f], 0x73
mov byte [esp + 0x20], 0xe0
mov byte [esp + 0x21], 0x51
mov byte [esp + 0x22], 0xfb
mov byte [esp + 0x23], 0x43
mov byte [esp + 0x24], 0x95
mov byte [esp + 0x25], 0xac
mov byte [esp + 0x26], 0x14
mov byte [esp + 0x27], 0xea
jne 0x1007883f
mov bl, al
push 0xd
or bl, 1
mov byte [0x1019753c], bl
call fcn.1013c2df
add esp, 4
mov dword [0x10197540], eax
xor esi, esi
mov al, byte [esp + esi + 0x1c]
mov bl, byte [esp + esi + 0x10]
movsx eax, al
movsx ecx, bl
push eax
push ecx
mov ecx, 0x10197540
call fcn.10025de0
mov cl, byte [esp + esi + 0x1c]
mov edx, dword [0x10197540]
xor bl, cl
or al, bl
mov byte [esi + edx], al
inc esi
cmp esi, 0xc
jb 0x100787f8
mov eax, dword [0x10197540]
push 0x100789a0
mov byte [eax + 0xc], 0
call fcn.1013c36b
add esp, 4
mov al, byte [0x10197544]
mov ecx, dword [0x10197540]
test al, 1
mov dword [esp + 0xc], ecx
mov byte [esp + 0x1c], 0xe6
mov byte [esp + 0x1d], 0xc
mov byte [esp + 0x1e], 0xde
mov byte [esp + 0x1f], 0x2a
mov byte [esp + 0x20], 0x1f
mov byte [esp + 0x21], 0x8e
mov byte [esp + 0x22], 0xa7
mov byte [esp + 0x23], 0
mov byte [esp + 0x10], 0xa5
mov byte [esp + 0x11], 0x63
mov byte [esp + 0x12], 0xae
mov byte [esp + 0x13], 0x53
mov byte [esp + 0x14], 0x59
mov byte [esp + 0x15], 0xe7
mov byte [esp + 0x16], 0xcb
mov byte [esp + 0x17], 0x65
jne 0x10078906
mov bl, al
push 9
or bl, 1
mov byte [0x10197544], bl
call fcn.1013c2df
add esp, 4
mov dword [0x10197548], eax
xor esi, esi
mov al, byte [esp + esi + 0x10]
mov bl, byte [esp + esi + 0x1c]
movsx edx, al
movsx eax, bl
push edx
push eax
mov ecx, 0x10197548
call fcn.10025de0
mov cl, byte [esp + esi + 0x10]
xor bl, cl
mov ecx, dword [0x10197548]
or al, bl
mov byte [esi + ecx], al
inc esi
cmp esi, 8
jb 0x100788be
mov edx, dword [0x10197548]
push 0x100789b0
mov byte [edx + 8], 0
call fcn.1013c36b
add esp, 4
mov ebx, dword [0x10197548]
xor edi, edi
cmp byte [ebx], 0
je 0x1007891c
mov al, byte [ebx + edi + 1]
inc edi
test al, al
jne 0x10078913
lea eax, [edi + 2]
push eax
call fcn.1013c2df
add esp, 4
mov esi, eax
test edi, edi
mov dword [esp + 0x10], esi
jle 0x10078943
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 0x10078939
pop ebp
mov byte [esi + edi + 1], 0
mov byte [esi + edi], 0x57
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
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 + 0x34], 0xffffffff
call fcn.101307a0
mov ecx, dword [esp + 0x2c]
add esp, 4
mov eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret