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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
push 0x50
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.10105640
mov eax, dword fs:[0x30]
mov dword [ebp - 0x48], eax
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0xc]
mov edi, dword [eax + 0x18]
mov ecx, dword [ebp - 0x70]
add esp, 0xc
test edi, edi
je 0x1000107b
mov ebx, 0x74
mov esi, dword [eax + 0x30]
movzx edx, word [esi]
cmp edx, 0x4e
je 0x10001057
cmp edx, 0x6e
jne 0x1000106e
cmp word [esi + 2], bx
jne 0x1000106e
mov edx, esi
mov si, word [edx + 6]
cmp si, word [edx + 8]
jne 0x1000106e
mov ecx, edi
mov dword [ebp - 0x70], ecx
test ecx, ecx
jne 0x1000107b
mov eax, dword [eax]
mov edi, dword [eax + 0x18]
test edi, edi
jne 0x10001047
mov edx, dword [ecx + 0x3c]
mov edx, dword [edx + ecx + 0x78]
mov eax, dword [edx + ecx + 0x20]
mov edi, dword [edx + ecx + 0x24]
add edx, ecx
add eax, ecx
mov dword [ebp - 4], edx
add edi, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
mov ebx, dword [eax + ecx + 8]
mov edx, dword [eax + ecx]
mov esi, dword [eax + ecx + 4]
add eax, ecx
xor ebx, 0x40981770
mov dword [ebp - 8], ebx
mov ebx, dword [eax + 0xc]
xor ebx, 0x40981770
mov dword [ebp - 0xc], ebx
mov ebx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
xor ebx, 0x40981770
xor edx, 0x40981770
xor esi, 0x40981770
xor eax, 0x40981770
cmp dword [ebp - 0x64], 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
jne 0x1000112b
cmp edx, 0x2cd9602a
jne 0x1000112b
cmp esi, 0x21fb781c
jne 0x1000112b
cmp dword [ebp - 8], 0x29ce7204
jne 0x1000112b
cmp dword [ebp - 0xc], 0x21ed6302
jne 0x1000112b
cmp ebx, 0x2dfd5a1c
jne 0x1000112b
cmp eax, 0x40e1651f
jne 0x1000112b
movzx edi, word [edi]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x1c]
lea edi, [ebx + edi*4]
mov edi, dword [edi + ecx]
add edi, ecx
mov dword [ebp - 0x64], edi
mov edi, dword [ebp - 0x14]
cmp dword [ebp - 0x60], 0
jne 0x10001173
cmp edx, 0x32de602a
jne 0x10001173
cmp esi, 0x29ce7215
jne 0x10001173
cmp dword [ebp - 8], 0x21ed6302
jne 0x10001173
cmp dword [ebp - 0xc], 0x2dfd5a1c
jne 0x10001173
cmp dword [ebp - 0x10], 0x40e1651f
jne 0x10001173
movzx edi, word [edi]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x1c]
lea edi, [ebx + edi*4]
mov edi, dword [edi + ecx]
add edi, ecx
mov dword [ebp - 0x60], edi
mov edi, dword [ebp - 0x14]
cmp dword [ebp - 0x68], 0
jne 0x100011a0
cmp edx, 0xcea733c
jne 0x100011a0
cmp esi, 0x4fc761f
jne 0x100011a0
movzx edi, word [edi]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x1c]
lea edi, [ebx + edi*4]
mov edi, dword [edi + ecx]
add edi, ecx
mov dword [ebp - 0x68], edi
mov edi, dword [ebp - 0x14]
cmp dword [ebp - 0x6c], 0
jne 0x100011e8
cmp edx, 0x7ea733c
jne 0x100011e8
cmp esi, 0x32c86315
jne 0x100011e8
cmp dword [ebp - 8], 0x24fd741f
jne 0x100011e8
cmp dword [ebp - 0xc], 0x1fd6505
jne 0x100011e8
cmp dword [ebp - 0x10], 0x25ea7314
jne 0x100011e8
movzx edi, word [edi]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x1c]
lea edi, [ebx + edi*4]
mov edi, dword [edi + ecx]
add edi, ecx
mov dword [ebp - 0x6c], edi
mov edi, dword [ebp - 0x14]
cmp dword [ebp - 0x58], 0
jne 0x10001234
cmp edx, 0x1f46322
jne 0x10001234
cmp esi, 0x13f1641e
jne 0x10001234
cmp dword [ebp - 8], 0x2ef16504
jne 0x10001234
cmp dword [ebp - 0xc], 0x15f74317
jne 0x10001234
cmp dword [ebp - 0x10], 0x2ffb7e1e
jne 0x10001234
cmp eax, 0x34cb7214
jne 0x10001234
movzx eax, word [edi]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x1c]
lea eax, [ebx + eax*4]
mov eax, dword [eax + ecx]
add eax, ecx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x1000127a
cmp edx, 0x6f46322
jne 0x1000127a
cmp esi, 0x15fd7202
jne 0x1000127a
cmp dword [ebp - 8], 0x2ffb7e1e
jne 0x1000127a
cmp dword [ebp - 0xc], 0x34cb7214
jne 0x1000127a
cmp dword [ebp - 0x10], 0x27f67e02
jne 0x1000127a
movzx eax, word [edi]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x1c]
lea eax, [ebx + eax*4]
mov eax, dword [eax + ecx]
add eax, ecx
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x5c], 0
jne 0x100012ca
cmp edx, 0x4f46322
jne 0x100012ca
cmp esi, 0x2df77415
jne 0x100012ca
cmp dword [ebp - 8], 0x33fd6500
jne 0x100012ca
cmp dword [ebp - 0xc], 0x26ed5503
jne 0x100012ca
xor edx, edx
cmp dword [ebp - 0x10], 0x726566
sete dl
xor edx, 0x40981770
je 0x100012ca
movzx edx, word [edi]
mov esi, dword [ebp - 4]
mov esi, dword [esi + 0x1c]
lea edx, [esi + edx*4]
mov edx, dword [edx + ecx]
add edx, ecx
mov dword [ebp - 0x5c], edx
cmp dword [ebp - 0x68], 0
je 0x100012ed
mov esi, dword [ebp - 0x64]
test esi, esi
je 0x100012ed
cmp dword [ebp - 0x60], 0
je 0x100012ed
cmp dword [ebp - 0x6c], 0
je 0x100012ed
test eax, eax
je 0x100012ed
cmp dword [ebp - 0x58], 0
jne 0x100012fb
mov eax, dword [ebp - 0x20]
add eax, 4
add edi, 2
jmp 0x10001093
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, 4
movzx edx, word [edi + 2]
add word [eax + edi], dx
mov bx, word [edi]
xor bx, word [eax + edi]
lea edx, [ecx + 0x88e]
mov word [eax + edi], bx
add word [edi], dx
add eax, 2
inc ecx
cmp eax, 0xc
jl 0x10001305
mov eax, dword [edi + 8]
and eax, 0xfffffffe
mov ecx, 4
cmp eax, 8
jbe 0x10001369
mov eax, 0xc
nop
movzx edx, word [edi + 2]
add word [eax + edi], dx
mov bx, word [edi]
xor bx, word [eax + edi]
lea edx, [ecx + 0x88e]
mov word [eax + edi], bx
add word [edi], dx
mov edx, dword [edi + 8]
inc ecx
shr edx, 1
add eax, 2
cmp ecx, edx
jb 0x10001340
mov eax, dword [edi + 4]
push 4
push 0x1000
lea ecx, [ebp - 0x18]
push ecx
push 0
lea edx, [ebp - 0x50]
push edx
push 0xffffffffffffffff
mov dword [ebp - 0x18], eax
call esi
mov ecx, dword [edi + 8]
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [edi + 4]
push ecx
mov ecx, dword [ebp - 0x50]
lea edx, [edi + 0xc]
push edx
push eax
push ecx
push 0x102
call dword [ebp - 0x5c]
mov eax, dword [ebp - 0x50]
mov edx, 0x5a4d
mov dword [ebp - 0x44], eax
cmp word [eax], dx
je 0x100013bb
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x40], ecx
cmp dword [ecx], 0x4550
jne 0x100013b0
mov eax, dword [ecx + 0x50]
push 0x40
push 0x1000
lea ecx, [ebp - 0x18]
push ecx
push 0
lea edx, [ebp - 0x3c]
push edx
push 0xffffffffffffffff
mov dword [ebp - 0x18], eax
call dword [ebp - 0x64]
mov ecx, dword [ebp - 0x3c]
xor eax, eax
test ecx, ecx
je 0x10001684
mov edx, dword [ebp - 0x40]
cmp dword [edx + 0x54], eax
jbe 0x10001415
lea esp, [esp]
mov edx, dword [ebp - 0x44]
mov dl, byte [eax + edx]
mov byte [eax + ecx], dl
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, dword [ecx + 0x54]
mov ecx, dword [ebp - 0x3c]
jb 0x10001400
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x3c]
add eax, ecx
mov dword [ebp - 0x38], eax
mov dword [eax + 0x34], ecx
mov esi, dword [ebp - 0x38]
movzx eax, word [esi + 0x14]
xor edx, edx
lea ecx, [eax + esi + 0x28]
mov dword [ebp + 8], 0
cmp dx, word [esi + 6]
jae 0x100014a3
lea ecx, [ecx]
mov edx, dword [ecx]
test edx, edx
jne 0x1000146d
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 0x38]
test edx, edx
je 0x10001491
xor eax, eax
test edx, edx
je 0x10001491
mov edx, dword [ecx - 4]
mov esi, dword [ebp - 0x3c]
add edx, eax
mov byte [edx + esi], 0
mov edx, dword [ebp - 0x40]
inc eax
cmp eax, dword [edx + 0x38]
jb 0x10001456
jmp 0x1000148e
xor eax, eax
test edx, edx
je 0x10001491
mov edx, dword [ecx + 4]
mov ebx, dword [ebp - 0x50]
mov esi, dword [ecx - 4]
add edx, eax
mov dl, byte [edx + ebx]
mov ebx, dword [ebp - 0x3c]
add esi, eax
inc eax
mov byte [esi + ebx], dl
cmp eax, dword [ecx]
jb 0x10001473
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp + 8]
movzx edx, word [esi + 6]
inc eax
add ecx, 0x28
mov dword [ebp + 8], eax
cmp eax, edx
jl 0x10001440
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
mov ecx, eax
sub ecx, dword [edx + 0x34]
mov dword [ebp - 0x34], ecx
je 0x1000152f
cmp dword [esi + 0xa4], 0
jbe 0x1000152f
mov ecx, dword [esi + 0xa0]
mov edx, dword [ecx + eax]
add ecx, eax
test edx, edx
je 0x1000152f
nop
mov ebx, dword [ecx + 4]
add edx, eax
mov dword [ebp + 8], edx
sub ebx, 8
xor edx, edx
lea esi, [ecx + 8]
test ebx, 0xfffffffe
jbe 0x10001523
jmp 0x100014f0
movzx eax, word [esi]
mov ebx, eax
and ebx, 0xfffff000
cmp ebx, 0x3000
jne 0x10001510
mov ebx, dword [ebp - 0x34]
and eax, 0xfff
add eax, dword [ebp + 8]
add dword [eax], ebx
mov eax, dword [ecx + 4]
sub eax, 8
inc edx
shr eax, 1
add esi, 2
cmp edx, eax
jb 0x100014f0
mov eax, dword [ebp - 0x3c]
add ecx, dword [ecx + 4]
mov edx, dword [ecx]
test edx, edx
jne 0x100014d0
mov esi, dword [ebp - 0x38]
cmp dword [esi + 0x84], 0
jbe 0x10001632
mov ecx, dword [esi + 0x80]
add ecx, eax
mov dword [ebp + 8], ecx
je 0x10001632
lea ecx, [ecx]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x1000162f
add ecx, eax
xor eax, eax
mov dword [ebp - 0x24], ecx
cmp byte [ecx], al
je 0x10001577
lea esp, [esp]
inc eax
cmp byte [eax + ecx], 0
jne 0x10001570
push 1
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
push ecx
lea edx, [ebp - 0x30]
inc eax
push edx
mov word [ebp - 0x26], ax
call dword [ebp - 0x58]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x30]
push ecx
push 0
push 0
call dword [ebp - 0x68]
lea edx, [ebp - 0x30]
push edx
call dword [ebp - 0x54]
cmp dword [ebp - 0x1c], 0
je 0x100013b0
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x3c]
test ecx, ecx
je 0x100015c0
mov edx, dword [ebx + 0x10]
lea esi, [eax + ecx]
add edx, eax
jmp 0x100015c7
mov esi, dword [ebx + 0x10]
add esi, eax
mov edx, esi
mov ecx, dword [esi]
test ecx, ecx
je 0x10001625
mov ebx, edx
jmp 0x100015d4
mov eax, dword [ebp - 0x3c]
test ecx, ecx
jns 0x100015e5
movzx edx, word [esi]
mov eax, dword [ebp - 0x1c]
push ebx
push edx
push 0
push eax
jmp 0x1000160d
lea ecx, [ecx + eax + 2]
xor eax, eax
mov dword [ebp - 0x24], ecx
cmp byte [ecx], al
je 0x100015f9
inc eax
cmp byte [eax + ecx], 0
jne 0x100015f2
mov edx, dword [ebp - 0x1c]
push ebx
push 0
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
inc eax
push ecx
mov word [ebp - 0x26], ax
push edx
call dword [ebp - 0x6c]
cmp dword [ebx], 0
je 0x10001622
mov ecx, dword [esi + 4]
add esi, 4
add ebx, 4
test ecx, ecx
jne 0x100015d1
mov eax, dword [ebp - 0x3c]
add dword [ebp + 8], 0x14
jne 0x10001550
mov esi, dword [ebp - 0x38]
mov esi, dword [esi + 0x28]
add esi, eax
xor ecx, ecx
jmp 0x10001643
mov eax, dword [ebp - 0x3c]
mov byte [ecx + eax], 0
inc ecx
cmp ecx, 4
jb 0x10001640
xor eax, eax
nop
mov ecx, dword [ebp - 0x38]
mov byte [eax + ecx], 0
inc eax
cmp eax, 4
jb 0x10001650
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x28], 0
je 0x1000166f
mov eax, dword [ebp - 0x3c]
push edi
push 1
push eax
call esi
push 0x4000
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x50]
push edx
push 0xffffffffffffffff
call dword [ebp - 0x60]
mov eax, dword [ebp - 0x3c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4