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

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
push 0x50
lea eax, [esp + 0x30]
push 0
push eax
call fcn.1000e650
mov eax, dword fs:[0x30]
mov dword [esp + 0x60], eax
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0xc]
mov edi, dword [eax + 0x18]
mov ecx, dword [esp + 0x38]
add esp, 0xc
test edi, edi
je 0x10001087
mov ebx, 0x74
jmp 0x10001050
mov esi, dword [eax + 0x30]
movzx edx, word [esi]
cmp dx, 0x4e
je 0x10001062
cmp dx, 0x6e
jne 0x1000107a
cmp word [esi + 2], bx
jne 0x1000107a
mov edx, esi
mov si, word [edx + 6]
cmp si, word [edx + 8]
jne 0x1000107a
mov ecx, edi
mov dword [esp + 0x2c], ecx
test ecx, ecx
jne 0x10001087
mov eax, dword [eax]
mov edi, dword [eax + 0x18]
test edi, edi
jne 0x10001050
mov edx, dword [ecx + 0x3c]
mov edx, dword [edx + ecx + 0x78]
mov eax, dword [edx + ecx + 0x20]
mov ebx, dword [edx + ecx + 0x24]
add edx, ecx
add eax, ecx
mov dword [esp + 0x10], edx
add ebx, ecx
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov ebp, dword [eax + ecx + 0xc]
mov edx, dword [eax + ecx]
mov esi, dword [eax + ecx + 4]
mov edi, dword [eax + ecx + 8]
add eax, ecx
xor ebp, 0x50342987
mov dword [esp + 0x14], ebp
mov ebp, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
xor ebp, 0x50342987
xor edx, 0x50342987
xor esi, 0x50342987
xor edi, 0x50342987
xor eax, 0x50342987
cmp dword [esp + 0x38], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebp
jne 0x1000113f
cmp edx, 0x3c755edd
jne 0x1000113f
cmp esi, 0x315746eb
jne 0x1000113f
cmp edi, 0x39624cf3
jne 0x1000113f
cmp dword [esp + 0x14], 0x31415df5
jne 0x1000113f
cmp ebp, 0x3d5164eb
jne 0x1000113f
cmp eax, 0x504d5be8
jne 0x1000113f
movzx ebx, word [ebx]
mov ebp, dword [esp + 0x10]
mov ebp, dword [ebp + 0x1c]
lea ebx, [ebp + ebx*4]
mov ebx, dword [ebx + ecx]
add ebx, ecx
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x3c], 0
jne 0x1000118d
cmp edx, 0x22725edd
jne 0x1000118d
cmp esi, 0x39624ce2
jne 0x1000118d
cmp edi, 0x31415df5
jne 0x1000118d
cmp dword [esp + 0x14], 0x3d5164eb
jne 0x1000118d
cmp dword [esp + 0x18], 0x504d5be8
jne 0x1000118d
movzx ebx, word [ebx]
mov ebp, dword [esp + 0x10]
mov ebp, dword [ebp + 0x1c]
lea ebx, [ebp + ebx*4]
mov ebx, dword [ebx + ecx]
add ebx, ecx
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x34], 0
jne 0x100011bf
cmp edx, 0x1c464dcb
jne 0x100011bf
cmp esi, 0x145048e8
jne 0x100011bf
movzx ebx, word [ebx]
mov ebp, dword [esp + 0x10]
mov ebp, dword [ebp + 0x1c]
lea ebx, [ebp + ebx*4]
mov ebx, dword [ebx + ecx]
add ebx, ecx
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x30], 0
jne 0x1000120d
cmp edx, 0x17464dcb
jne 0x1000120d
cmp esi, 0x22645de2
jne 0x1000120d
cmp edi, 0x34514ae8
jne 0x1000120d
cmp dword [esp + 0x14], 0x11515bf2
jne 0x1000120d
cmp dword [esp + 0x18], 0x35464de3
jne 0x1000120d
movzx ebx, word [ebx]
mov ebp, dword [esp + 0x10]
mov ebp, dword [ebp + 0x1c]
lea ebx, [ebp + ebx*4]
mov ebx, dword [ebx + ecx]
add ebx, ecx
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x44], 0
jne 0x1000125e
cmp edx, 0x11585dd5
jne 0x1000125e
cmp esi, 0x35d5ae9
jne 0x1000125e
cmp edi, 0x3e5d5bf3
jne 0x1000125e
cmp dword [esp + 0x14], 0x55b7de0
jne 0x1000125e
cmp dword [esp + 0x18], 0x3f5740e9
jne 0x1000125e
cmp eax, 0x24674ce3
jne 0x1000125e
movzx eax, word [ebx]
mov ebp, dword [esp + 0x10]
mov ebp, dword [ebp + 0x1c]
lea eax, [ebp + eax*4]
mov eax, dword [eax + ecx]
add eax, ecx
mov dword [esp + 0x44], eax
mov ebp, dword [esp + 0x48]
test ebp, ebp
jne 0x100012a9
cmp edx, 0x16585dd5
jne 0x100012a9
cmp esi, 0x5514cf5
jne 0x100012a9
cmp edi, 0x3f5740e9
jne 0x100012a9
cmp dword [esp + 0x14], 0x24674ce3
jne 0x100012a9
cmp dword [esp + 0x18], 0x375a40f5
jne 0x100012a9
movzx eax, word [ebx]
mov ebp, dword [esp + 0x10]
mov ebp, dword [ebp + 0x1c]
lea eax, [ebp + eax*4]
mov ebp, dword [eax + ecx]
add ebp, ecx
mov dword [esp + 0x48], ebp
cmp dword [esp + 0x40], 0
jne 0x100012fd
cmp edx, 0x14585dd5
jne 0x100012fd
cmp esi, 0x3d5b4ae2
jne 0x100012fd
cmp edi, 0x23515bf7
jne 0x100012fd
cmp dword [esp + 0x14], 0x36416bf4
jne 0x100012fd
xor edx, edx
cmp dword [esp + 0x18], 0x726566
sete dl
xor edx, 0x50342987
je 0x100012fd
movzx eax, word [ebx]
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x1c]
lea eax, [edx + eax*4]
mov eax, dword [eax + ecx]
add eax, ecx
mov dword [esp + 0x40], eax
cmp dword [esp + 0x34], 0
je 0x10001324
cmp dword [esp + 0x38], 0
je 0x10001324
cmp dword [esp + 0x3c], 0
je 0x10001324
cmp dword [esp + 0x30], 0
je 0x10001324
test ebp, ebp
je 0x10001324
cmp dword [esp + 0x44], 0
jne 0x10001333
mov eax, dword [esp + 0x24]
add eax, 4
add ebx, 2
jmp 0x100010a0
mov ebp, dword [esp + 0x80]
lea esi, [ebp + 4]
xor ecx, ecx
mov eax, esi
mov dx, word [ebp + 2]
add word [eax], dx
movzx edx, word [eax]
mov di, word [ebp]
xor di, dx
lea edx, [ecx + 0xc0f]
mov word [eax], di
add word [ebp], dx
inc ecx
add eax, 2
cmp ecx, 4
jl 0x10001341
mov eax, dword [ebp + 8]
and eax, 0xfffffffe
mov ecx, 4
cmp eax, 8
jbe 0x100013ab
lea eax, [ebp + 0xc]
jmp 0x10001380
mov dx, word [ebp + 2]
add word [eax], dx
movzx edx, word [eax]
mov di, word [ebp]
xor di, dx
lea edx, [ecx + 0xc0f]
mov word [eax], di
add word [ebp], dx
mov edx, dword [ebp + 8]
inc ecx
shr edx, 1
add eax, 2
cmp ecx, edx
jb 0x10001380
mov eax, dword [esi]
push 4
push 0x1000
lea ecx, [esp + 0x28]
push ecx
push 0
lea edx, [esp + 0x5c]
push edx
push 0xffffffffffffffff
mov dword [esp + 0x38], eax
call dword [esp + 0x50]
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x50]
push eax
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0x54]
lea edx, [ebp + 0xc]
push edx
push eax
push ecx
push 0x102
call dword [esp + 0x58]
mov eax, dword [esp + 0x4c]
mov edx, 0x5a4d
mov dword [esp + 0x58], eax
cmp word [eax], dx
je 0x10001406
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret 4
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [esp + 0x5c], ecx
cmp dword [ecx], 0x4550
jne 0x100013fa
mov eax, dword [ecx + 0x50]
push 0x40
push 0x1000
lea ecx, [esp + 0x28]
push ecx
push 0
lea edx, [esp + 0x70]
push edx
push 0xffffffffffffffff
mov dword [esp + 0x38], eax
call dword [esp + 0x50]
mov ecx, dword [esp + 0x60]
xor eax, eax
test ecx, ecx
je 0x100016fb
mov edx, dword [esp + 0x5c]
cmp dword [edx + 0x54], eax
jbe 0x10001468
mov edi, edi
mov edx, dword [esp + 0x58]
mov dl, byte [eax + edx]
mov byte [eax + ecx], dl
mov ecx, dword [esp + 0x5c]
inc eax
cmp eax, dword [ecx + 0x54]
mov ecx, dword [esp + 0x60]
jb 0x10001450
mov edx, dword [esp + 0x58]
mov eax, dword [edx + 0x3c]
add eax, ecx
mov dword [esp + 0x64], eax
mov dword [eax + 0x34], ecx
mov esi, dword [esp + 0x64]
movzx eax, word [esi + 0x14]
xor ecx, ecx
xor edi, edi
lea eax, [eax + esi + 0x18]
cmp cx, word [esi + 6]
jae 0x100014fd
lea ecx, [eax + 0x10]
mov edx, dword [ecx]
test edx, edx
jne 0x100014c9
mov edx, dword [esp + 0x5c]
mov edx, dword [edx + 0x38]
test edx, edx
jbe 0x100014f1
xor eax, eax
test edx, edx
jbe 0x100014f1
jmp 0x100014b0
mov edx, dword [ecx - 4]
mov esi, dword [esp + 0x60]
add edx, eax
mov byte [edx + esi], 0
mov edx, dword [esp + 0x5c]
inc eax
cmp eax, dword [edx + 0x38]
jb 0x100014b0
jmp 0x100014ed
xor eax, eax
test edx, edx
jbe 0x100014f1
nop
mov edx, dword [ecx + 4]
mov ebx, dword [esp + 0x4c]
mov esi, dword [ecx - 4]
add edx, eax
mov dl, byte [edx + ebx]
mov ebx, dword [esp + 0x60]
add esi, eax
inc eax
mov byte [esi + ebx], dl
cmp eax, dword [ecx]
jb 0x100014d0
mov esi, dword [esp + 0x64]
movzx eax, word [esi + 6]
inc edi
add ecx, 0x28
cmp edi, eax
jl 0x10001491
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov ebx, eax
sub ebx, dword [ecx + 0x34]
mov dword [esp + 0x68], ebx
je 0x10001598
cmp dword [esi + 0xa4], 0
jbe 0x10001598
mov ecx, dword [esi + 0xa0]
mov edx, dword [ecx + eax]
add ecx, eax
test edx, edx
jbe 0x10001598
mov ebp, dword [ecx + 4]
lea edi, [eax + edx]
sub ebp, 8
xor edx, edx
lea esi, [ecx + 8]
test ebp, 0xfffffffe
jbe 0x10001584
jmp 0x10001550
movzx eax, word [esi]
mov ebp, eax
and ebp, 0xfffff000
cmp ebp, 0x3000
jne 0x10001570
and eax, 0xfff
add eax, edi
add dword [eax], ebx
mov ebx, dword [esp + 0x68]
mov eax, dword [ecx + 4]
sub eax, 8
inc edx
shr eax, 1
add esi, 2
cmp edx, eax
jb 0x10001550
mov eax, dword [esp + 0x60]
add ecx, dword [ecx + 4]
mov edx, dword [ecx]
test edx, edx
ja 0x10001530
mov esi, dword [esp + 0x64]
mov ebp, dword [esp + 0x80]
cmp dword [esi + 0x84], 0
jbe 0x100016a5
mov ebx, dword [esi + 0x80]
add ebx, eax
je 0x100016a5
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x100016a1
add ecx, eax
xor eax, eax
mov dword [esp + 0x78], ecx
cmp byte [ecx], al
je 0x100015d7
lea ebx, [ebx]
inc eax
cmp byte [eax + ecx], 0
jne 0x100015d0
push 1
lea ecx, [esp + 0x78]
mov word [esp + 0x78], ax
push ecx
lea edx, [esp + 0x74]
inc eax
push edx
mov word [esp + 0x82], ax
call dword [esp + 0x50]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x70]
push ecx
push 0
push 0
call dword [esp + 0x44]
lea edx, [esp + 0x6c]
push edx
call dword [esp + 0x4c]
mov edx, dword [esp + 0x28]
test edx, edx
je 0x100013fa
mov ecx, dword [ebx]
mov eax, dword [esp + 0x60]
test ecx, ecx
je 0x10001630
mov esi, dword [ebx + 0x10]
lea edi, [eax + ecx]
add esi, eax
jmp 0x10001638
mov ecx, dword [ebx + 0x10]
lea edi, [ecx + eax]
mov esi, edi
mov ecx, dword [edi]
test ecx, ecx
je 0x10001698
jmp 0x10001648
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x28]
test ecx, ecx
jns 0x10001655
movzx eax, word [edi]
push esi
push eax
push 0
jmp 0x1000167d
lea ecx, [ecx + eax + 2]
xor eax, eax
mov dword [esp + 0x78], ecx
cmp byte [ecx], al
je 0x1000166a
inc eax
cmp byte [eax + ecx], 0
jne 0x10001663
push esi
mov word [esp + 0x78], ax
inc eax
push 0
lea ecx, [esp + 0x7c]
mov word [esp + 0x7e], ax
push ecx
push edx
call dword [esp + 0x40]
cmp dword [esi], 0
je 0x10001694
mov ecx, dword [edi + 4]
add edi, 4
add esi, 4
test ecx, ecx
jne 0x10001640
mov eax, dword [esp + 0x60]
add ebx, 0x14
jne 0x100015b3
mov esi, dword [esp + 0x64]
mov esi, dword [esi + 0x28]
add esi, eax
xor ecx, ecx
jmp 0x100016b4
mov eax, dword [esp + 0x60]
mov byte [ecx + eax], 0
inc ecx
cmp ecx, 4
jb 0x100016b0
xor eax, eax
mov edx, dword [esp + 0x64]
mov byte [eax + edx], 0
inc eax
cmp eax, 4
jb 0x100016c0
mov eax, dword [esp + 0x64]
cmp dword [eax + 0x28], 0
je 0x100016e2
mov ecx, dword [esp + 0x60]
push ebp
push 1
push ecx
call esi
push 0x4000
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x54]
push eax
push 0xffffffffffffffff
call dword [esp + 0x4c]
mov eax, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 4