Function at 0x1000102e
Capabilities:
Access peb ldr_data
Encode data using xor
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
push edi
push 0x50
lea eax, [esp + 0x34]
push 0
push eax
call fcn.100f68b0
mov eax, dword fs:[0x30]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x64], eax
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
add esp, 0xc
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x10001095
mov esi, dword [eax + 0x30]
movzx edi, word [esi]
cmp edi, 0x4e
je 0x10001076
cmp edi, 0x6e
jne 0x1000108d
cmp word [esi + 2], 0x74
jne 0x1000108d
mov di, word [esi + 6]
cmp di, word [esi + 8]
jne 0x1000108d
mov edx, ecx
mov dword [esp + 0x30], edx
test edx, edx
jne 0x10001095
mov eax, dword [eax]
jmp 0x1000105f
mov eax, dword [edx + 0x3c]
mov edi, dword [eax + edx + 0x78]
add edi, edx
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
add eax, edx
add ecx, edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x20], edi
mov ecx, 0x36098234
mov dword [esp + 0x2c], eax
mov eax, dword [eax]
add eax, edx
mov esi, dword [eax]
mov ebx, dword [eax + 0x10]
xor esi, ecx
mov dword [esp + 0x10], esi
mov esi, dword [eax + 4]
xor esi, ecx
mov dword [esp + 0x14], esi
mov esi, dword [eax + 8]
xor esi, ecx
mov dword [esp + 0x18], esi
mov esi, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
xor ebx, ecx
xor esi, ecx
xor eax, ecx
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x1c], ebx
jne 0x10001140
cmp dword [esp + 0x10], 0x5a48f56e
jne 0x10001140
cmp dword [esp + 0x14], 0x576aed58
jne 0x10001140
cmp dword [esp + 0x18], 0x5f5fe740
jne 0x10001140
cmp esi, 0x577cf646
jne 0x10001140
cmp ebx, 0x5b6ccf58
jne 0x10001140
cmp eax, 0x3670f05b
jne 0x10001140
mov ebx, dword [esp + 0xc]
mov edi, dword [edi + 0x1c]
movzx ebx, word [ebx]
lea edi, [edi + ebx*4]
mov edi, dword [edi + edx]
add edi, edx
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x40], 0
jne 0x10001191
cmp dword [esp + 0x10], 0x444ff56e
jne 0x10001191
cmp dword [esp + 0x14], 0x5f5fe751
jne 0x10001191
cmp dword [esp + 0x18], 0x577cf646
jne 0x10001191
cmp esi, 0x5b6ccf58
jne 0x10001191
cmp dword [esp + 0x1c], 0x3670f05b
jne 0x10001191
mov ebx, dword [esp + 0xc]
mov edi, dword [edi + 0x1c]
movzx ebx, word [ebx]
lea edi, [edi + ebx*4]
mov edi, dword [edi + edx]
add edi, edx
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x38], 0
jne 0x100011c6
cmp dword [esp + 0x10], 0x7a7be678
jne 0x100011c6
cmp dword [esp + 0x14], 0x726de35b
jne 0x100011c6
mov ebx, dword [esp + 0xc]
mov edi, dword [edi + 0x1c]
movzx ebx, word [ebx]
lea edi, [edi + ebx*4]
mov edi, dword [edi + edx]
add edi, edx
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x34], 0
jne 0x10001217
cmp dword [esp + 0x10], 0x717be678
jne 0x10001217
cmp dword [esp + 0x14], 0x4459f651
jne 0x10001217
cmp dword [esp + 0x18], 0x526ce15b
jne 0x10001217
cmp esi, 0x776cf041
jne 0x10001217
cmp dword [esp + 0x1c], 0x537be650
jne 0x10001217
mov ebx, dword [esp + 0xc]
mov edi, dword [edi + 0x1c]
movzx ebx, word [ebx]
lea edi, [edi + ebx*4]
mov edi, dword [edi + edx]
add edi, edx
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x48], 0
jne 0x1000126b
cmp dword [esp + 0x10], 0x7765f666
jne 0x1000126b
cmp dword [esp + 0x14], 0x6560f15a
jne 0x1000126b
cmp dword [esp + 0x18], 0x5860f040
jne 0x1000126b
cmp esi, 0x6366d653
jne 0x1000126b
cmp dword [esp + 0x1c], 0x596aeb5a
jne 0x1000126b
cmp eax, 0x425ae750
jne 0x1000126b
mov eax, dword [esp + 0xc]
movzx eax, word [eax]
mov ebx, dword [edi + 0x1c]
lea eax, [ebx + eax*4]
mov eax, dword [eax + edx]
add eax, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x100012b9
cmp dword [esp + 0x10], 0x7065f666
jne 0x100012b9
cmp dword [esp + 0x14], 0x636ce746
jne 0x100012b9
cmp dword [esp + 0x18], 0x596aeb5a
jne 0x100012b9
cmp esi, 0x425ae750
jne 0x100012b9
cmp dword [esp + 0x1c], 0x5167eb46
jne 0x100012b9
mov eax, dword [esp + 0xc]
movzx eax, word [eax]
mov ebx, dword [edi + 0x1c]
lea eax, [ebx + eax*4]
mov eax, dword [eax + edx]
add eax, edx
mov dword [esp + 0x4c], eax
cmp dword [esp + 0x44], 0
jne 0x1000130d
cmp dword [esp + 0x10], 0x7265f666
jne 0x1000130d
cmp dword [esp + 0x14], 0x5b66e151
jne 0x1000130d
cmp dword [esp + 0x18], 0x456cf044
jne 0x1000130d
cmp esi, 0x507cc047
jne 0x1000130d
xor ebx, ebx
cmp dword [esp + 0x1c], 0x726566
sete bl
xor ebx, ecx
je 0x1000130d
mov esi, dword [esp + 0xc]
movzx esi, word [esi]
mov ebx, dword [edi + 0x1c]
lea esi, [ebx + esi*4]
mov esi, dword [esi + edx]
add esi, edx
mov dword [esp + 0x44], esi
cmp dword [esp + 0x38], 0
mov ebx, dword [ebp + 8]
je 0x10001336
cmp dword [esp + 0x3c], 0
je 0x10001336
xor esi, esi
cmp dword [esp + 0x40], esi
je 0x10001336
cmp dword [esp + 0x34], esi
je 0x10001336
cmp eax, esi
je 0x10001336
cmp dword [esp + 0x48], esi
jne 0x10001347
mov eax, dword [esp + 0x2c]
add eax, 4
add dword [esp + 0xc], 2
jmp 0x100010b5
push 4
xor ecx, ecx
pop eax
mov dx, word [ebx + 2]
add word [eax + ebx], dx
mov si, word [ebx]
xor si, word [eax + ebx]
lea edx, [ecx + 0x169c]
mov word [eax + ebx], si
add word [ebx], dx
add eax, 2
inc ecx
cmp eax, 0xc
jl 0x1000134c
mov ecx, dword [ebx + 8]
and ecx, 0xfffffffe
push 4
pop eax
cmp ecx, 8
jbe 0x100013ab
push 0xc
pop ecx
mov dx, word [ebx + 2]
add word [ecx + ebx], dx
mov si, word [ebx]
xor si, word [ecx + ebx]
lea edx, [eax + 0x169c]
mov word [ecx + ebx], si
add word [ebx], dx
mov edx, dword [ebx + 8]
inc eax
shr edx, 1
add ecx, 2
cmp eax, edx
jb 0x10001382
mov eax, dword [ebx + 4]
push 4
mov dword [esp + 0x28], eax
mov esi, 0x1000
push esi
lea eax, [esp + 0x2c]
push eax
xor edi, edi
push edi
lea eax, [esp + 0x60]
push eax
push 0xffffffffffffffff
call dword [esp + 0x54]
lea eax, [esp + 0x54]
push eax
push dword [ebx + 8]
lea eax, [ebx + 0xc]
push eax
push dword [ebx + 4]
push dword [esp + 0x60]
push 0x102
call dword [esp + 0x5c]
mov eax, dword [esp + 0x50]
mov ecx, 0x5a4d
mov dword [esp + 0x5c], eax
cmp word [eax], cx
je 0x10001402
xor eax, eax
jmp 0x100016c7
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [esp + 0x60], ecx
cmp dword [ecx], 0x4550
jne 0x100013fb
mov eax, dword [ecx + 0x50]
push 0x40
push esi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
push edi
lea eax, [esp + 0x74]
push eax
push 0xffffffffffffffff
call dword [esp + 0x54]
xor eax, eax
cmp dword [esp + 0x64], edi
je 0x100016c7
mov ecx, dword [esp + 0x60]
cmp dword [ecx + 0x54], edi
jbe 0x1000145b
mov ecx, dword [esp + 0x5c]
mov cl, byte [eax + ecx]
mov edx, dword [esp + 0x64]
mov byte [eax + edx], cl
mov ecx, dword [esp + 0x60]
inc eax
cmp eax, dword [ecx + 0x54]
jb 0x10001443
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x3c]
mov ecx, dword [esp + 0x64]
and dword [esp + 0x20], edi
add eax, ecx
mov dword [esp + 0x68], eax
mov dword [eax + 0x34], ecx
mov edx, dword [esp + 0x68]
movzx eax, word [edx + 0x14]
xor ecx, ecx
lea eax, [eax + edx + 0x28]
cmp cx, word [edx + 6]
jae 0x100014ef
mov esi, dword [eax]
test esi, esi
jne 0x100014b7
mov ecx, dword [esp + 0x60]
mov esi, dword [ecx + 0x38]
test esi, esi
je 0x100014de
xor ecx, ecx
test esi, esi
je 0x100014de
mov edx, dword [esp + 0x64]
mov esi, dword [eax - 4]
add edx, ecx
mov byte [edx + esi], 0
mov edx, dword [esp + 0x60]
inc ecx
cmp ecx, dword [edx + 0x38]
jb 0x1000149e
jmp 0x100014da
xor ecx, ecx
test esi, esi
je 0x100014de
mov edx, dword [eax + 4]
mov esi, dword [esp + 0x64]
mov ebx, dword [esp + 0x50]
mov edi, dword [eax - 4]
add edx, ecx
mov dl, byte [edx + ebx]
add esi, ecx
inc ecx
mov byte [esi + edi], dl
cmp ecx, dword [eax]
jb 0x100014bd
mov edx, dword [esp + 0x68]
movzx ecx, word [edx + 6]
inc dword [esp + 0x20]
add eax, 0x28
cmp dword [esp + 0x20], ecx
jl 0x10001487
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
mov eax, ecx
sub eax, dword [esi + 0x34]
mov dword [esp + 0x6c], eax
je 0x1000156f
cmp dword [edx + 0xa4], 0
jbe 0x1000156f
mov eax, dword [edx + 0xa0]
add eax, ecx
mov esi, dword [eax]
test esi, esi
je 0x1000156f
mov ebx, dword [eax + 4]
sub ebx, 8
add esi, ecx
xor edi, edi
lea edx, [eax + 8]
test ebx, 0xfffffffe
jbe 0x10001562
movzx ecx, word [edx]
mov ebx, ecx
and ebx, 0xfffff000
cmp ebx, 0x3000
jne 0x1000154e
mov ebx, dword [esp + 0x6c]
and ecx, 0xfff
add dword [ecx + esi], ebx
mov ecx, dword [eax + 4]
sub ecx, 8
inc edi
shr ecx, 1
add edx, 2
cmp edi, ecx
jb 0x1000152e
mov ecx, dword [esp + 0x64]
add eax, dword [eax + 4]
mov esi, dword [eax]
test esi, esi
jne 0x10001519
mov edx, dword [esp + 0x68]
cmp dword [edx + 0x84], 0
jbe 0x10001672
mov edi, dword [edx + 0x80]
add edi, ecx
je 0x10001672
mov eax, dword [edi + 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x1000166e
add ecx, eax
xor eax, eax
mov dword [esp + 0x7c], ecx
cmp byte [ecx], al
je 0x100015a9
inc eax
cmp byte [eax + ecx], bl
jne 0x100015a3
mov word [esp + 0x78], ax
inc eax
mov word [esp + 0x7a], ax
push 1
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x78]
push eax
call dword [esp + 0x54]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x74]
push eax
push ebx
push ebx
call dword [esp + 0x48]
lea eax, [esp + 0x70]
push eax
call dword [esp + 0x50]
cmp dword [esp + 0x28], ebx
je 0x100013fb
mov eax, dword [edi]
mov ecx, dword [esp + 0x64]
cmp eax, ebx
je 0x100015fb
lea esi, [ecx + eax]
mov eax, dword [edi + 0x10]
add eax, ecx
jmp 0x10001602
mov esi, dword [edi + 0x10]
add esi, ecx
mov eax, esi
mov edx, dword [esi]
cmp edx, ebx
je 0x10001665
mov ebx, eax
jmp 0x10001610
mov ecx, dword [esp + 0x64]
test edx, edx
jns 0x1000161d
movzx eax, word [esi]
push ebx
push eax
push 0
jmp 0x10001648
lea ecx, [ecx + edx + 2]
xor eax, eax
mov dword [esp + 0x7c], ecx
cmp byte [ecx], al
je 0x10001632
inc eax
cmp byte [eax + ecx], 0
jne 0x1000162b
mov word [esp + 0x78], ax
inc eax
push ebx
mov word [esp + 0x7e], ax
push 0
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x34]
call dword [esp + 0x44]
cmp dword [ebx], 0
je 0x10001661
add esi, 4
mov edx, dword [esi]
add ebx, 4
test edx, edx
jne 0x1000160c
mov ecx, dword [esp + 0x64]
add edi, 0x14
jne 0x1000158a
mov edx, dword [esp + 0x68]
mov edx, dword [edx + 0x28]
add edx, ecx
xor eax, eax
jmp 0x1000167f
mov ecx, dword [esp + 0x64]
mov byte [eax + ecx], 0
inc eax
cmp eax, 4
jb 0x1000167b
xor eax, eax
mov ecx, dword [esp + 0x68]
mov byte [eax + ecx], 0
inc eax
cmp eax, 4
jb 0x1000168b
mov eax, dword [esp + 0x68]
cmp dword [eax + 0x28], 0
je 0x100016ae
push dword [ebp + 8]
push 1
push dword [esp + 0x6c]
call edx
push 0x4000
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x58]
push eax
push 0xffffffffffffffff
call dword [esp + 0x50]
mov eax, dword [esp + 0x64]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4