Function at 0x10001040
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.1000f8f0
mov eax, dword fs:[0x30]
mov dword [esp + 0x64], eax
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0xc]
mov edi, dword [eax + 0x18]
mov ecx, dword [esp + 0x3c]
add esp, 0xc
test edi, edi
je 0x100010b7
mov ebx, 0x74
lea ecx, [ecx]
mov esi, dword [eax + 0x30]
movzx edx, word [esi]
cmp dx, 0x4e
je 0x10001092
cmp dx, 0x6e
jne 0x100010aa
cmp word [esi + 2], bx
jne 0x100010aa
mov edx, esi
mov si, word [edx + 6]
cmp si, word [edx + 8]
jne 0x100010aa
mov ecx, edi
mov dword [esp + 0x30], ecx
test ecx, ecx
jne 0x100010b7
mov eax, dword [eax]
mov edi, dword [eax + 0x18]
test edi, edi
jne 0x10001080
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 [esp + 0x10], edx
add edi, ecx
mov dword [esp + 0x28], 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, 0x10294856
mov dword [esp + 0x14], ebx
mov ebx, dword [eax + 0xc]
xor ebx, 0x10294856
mov dword [esp + 0x18], ebx
mov ebx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
xor ebx, 0x10294856
xor edx, 0x10294856
xor esi, 0x10294856
xor eax, 0x10294856
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
jne 0x10001173
cmp edx, 0x7c683f0c
jne 0x10001173
cmp esi, 0x714a273a
jne 0x10001173
cmp dword [esp + 0x14], 0x797f2d22
jne 0x10001173
cmp dword [esp + 0x18], 0x715c3c24
jne 0x10001173
cmp ebx, 0x7d4c053a
jne 0x10001173
cmp eax, 0x10503a39
jne 0x10001173
movzx edi, word [edi]
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx + 0x1c]
lea edi, [ebx + edi*4]
mov edi, dword [edi + ecx]
add edi, ecx
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x40], 0
jne 0x100011c2
cmp edx, 0x626f3f0c
jne 0x100011c2
cmp esi, 0x797f2d33
jne 0x100011c2
cmp dword [esp + 0x14], 0x715c3c24
jne 0x100011c2
cmp dword [esp + 0x18], 0x7d4c053a
jne 0x100011c2
cmp dword [esp + 0x1c], 0x10503a39
jne 0x100011c2
movzx edi, word [edi]
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx + 0x1c]
lea edi, [ebx + edi*4]
mov edi, dword [edi + ecx]
add edi, ecx
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x38], 0
jne 0x100011f3
cmp edx, 0x5c5b2c1a
jne 0x100011f3
cmp esi, 0x544d2939
jne 0x100011f3
movzx edi, word [edi]
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx + 0x1c]
lea edi, [ebx + edi*4]
mov edi, dword [edi + ecx]
add edi, ecx
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x34], 0
jne 0x10001242
cmp edx, 0x575b2c1a
jne 0x10001242
cmp esi, 0x62793c33
jne 0x10001242
cmp dword [esp + 0x14], 0x744c2b39
jne 0x10001242
cmp dword [esp + 0x18], 0x514c3a23
jne 0x10001242
cmp dword [esp + 0x1c], 0x755b2c32
jne 0x10001242
movzx edi, word [edi]
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx + 0x1c]
lea edi, [ebx + edi*4]
mov edi, dword [edi + ecx]
add edi, ecx
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x48], 0
jne 0x10001294
cmp edx, 0x51453c04
jne 0x10001294
cmp esi, 0x43403b38
jne 0x10001294
cmp dword [esp + 0x14], 0x7e403a22
jne 0x10001294
cmp dword [esp + 0x18], 0x45461c31
jne 0x10001294
cmp dword [esp + 0x1c], 0x7f4a2138
jne 0x10001294
cmp eax, 0x647a2d32
jne 0x10001294
movzx eax, word [edi]
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx + 0x1c]
lea eax, [ebx + eax*4]
mov eax, dword [eax + ecx]
add eax, ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x4c]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x100012e6
cmp edx, 0x56453c04
jne 0x100012e6
cmp esi, 0x454c2d24
jne 0x100012e6
cmp dword [esp + 0x14], 0x7f4a2138
jne 0x100012e6
cmp dword [esp + 0x18], 0x647a2d32
jne 0x100012e6
cmp dword [esp + 0x1c], 0x77472124
jne 0x100012e6
movzx eax, word [edi]
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx + 0x1c]
lea eax, [ebx + eax*4]
mov eax, dword [eax + ecx]
mov ebx, dword [ebp + 8]
add eax, ecx
mov dword [esp + 0x4c], eax
cmp dword [esp + 0x44], 0
jne 0x1000133c
cmp edx, 0x54453c04
jne 0x1000133c
cmp esi, 0x7d462b33
jne 0x1000133c
cmp dword [esp + 0x14], 0x634c3a26
jne 0x1000133c
cmp dword [esp + 0x18], 0x765c0a25
jne 0x1000133c
xor edx, edx
cmp dword [esp + 0x1c], 0x726566
sete dl
xor edx, 0x10294856
je 0x1000133c
movzx edx, word [edi]
mov esi, dword [esp + 0x10]
mov esi, dword [esi + 0x1c]
lea edx, [esi + edx*4]
mov edx, dword [edx + ecx]
add edx, ecx
mov dword [esp + 0x44], edx
cmp dword [esp + 0x38], 0
je 0x10001363
cmp dword [esp + 0x3c], 0
je 0x10001363
cmp dword [esp + 0x40], 0
je 0x10001363
cmp dword [esp + 0x34], 0
je 0x10001363
test eax, eax
je 0x10001363
cmp dword [esp + 0x48], 0
jne 0x10001372
mov eax, dword [esp + 0x28]
add eax, 4
add edi, 2
jmp 0x100010d0
lea esi, [ebx + 4]
xor ecx, ecx
mov eax, esi
lea esp, [esp]
mov dx, word [ebx + 2]
add word [eax], dx
movzx edx, word [eax]
mov di, word [ebx]
xor di, dx
lea edx, [ecx + 0xa12]
mov word [eax], di
add word [ebx], dx
inc ecx
add eax, 2
cmp ecx, 4
jl 0x10001380
mov eax, dword [ebx + 8]
and eax, 0xfffffffe
mov ecx, 4
cmp eax, 8
jbe 0x100013e9
lea eax, [ebx + 0xc]
jmp 0x100013c0
mov dx, word [ebx + 2]
add word [eax], dx
movzx edx, word [eax]
mov di, word [ebx]
xor di, dx
lea edx, [ecx + 0xa12]
mov word [eax], di
add word [ebx], dx
mov edx, dword [ebx + 8]
inc ecx
shr edx, 1
add eax, 2
cmp ecx, edx
jb 0x100013c0
mov eax, dword [esi]
push 4
push 0x1000
lea ecx, [esp + 0x2c]
push ecx
push 0
lea edx, [esp + 0x60]
push edx
push 0xffffffffffffffff
mov dword [esp + 0x3c], eax
call dword [esp + 0x54]
mov ecx, dword [ebx + 8]
mov edx, dword [esi]
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push ecx
add ebx, 0xc
push ebx
push edx
push eax
push 0x102
call dword [esp + 0x5c]
mov eax, dword [esp + 0x50]
mov ecx, 0x5a4d
mov dword [esp + 0x5c], eax
cmp word [eax], cx
je 0x10001443
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [esp + 0x60], ecx
cmp dword [ecx], 0x4550
jne 0x10001438
mov edx, dword [ecx + 0x50]
push 0x40
push 0x1000
lea eax, [esp + 0x2c]
push eax
push 0
lea ecx, [esp + 0x74]
push ecx
push 0xffffffffffffffff
mov dword [esp + 0x3c], edx
call dword [esp + 0x54]
mov ecx, dword [esp + 0x64]
xor eax, eax
test ecx, ecx
je 0x10001742
mov edx, dword [esp + 0x60]
cmp dword [edx + 0x54], eax
jbe 0x100014a8
jmp 0x10001490
mov edx, dword [esp + 0x5c]
mov dl, byte [eax + edx]
mov byte [eax + ecx], dl
mov ecx, dword [esp + 0x60]
inc eax
cmp eax, dword [ecx + 0x54]
mov ecx, dword [esp + 0x64]
jb 0x10001490
mov edx, dword [esp + 0x5c]
mov eax, dword [edx + 0x3c]
add eax, ecx
mov dword [esp + 0x68], eax
mov dword [eax + 0x34], ecx
mov esi, dword [esp + 0x68]
movzx eax, word [esi + 0x14]
xor edx, edx
xor edi, edi
lea ecx, [eax + esi + 0x18]
cmp dx, word [esi + 6]
jae 0x1000153d
add ecx, 0x10
mov edx, dword [ecx]
test edx, edx
jne 0x10001509
mov eax, dword [esp + 0x60]
mov edx, dword [eax + 0x38]
test edx, edx
jbe 0x10001531
xor eax, eax
test edx, edx
jbe 0x10001531
jmp 0x100014f0
mov edx, dword [ecx - 4]
mov esi, dword [esp + 0x64]
add edx, eax
mov byte [edx + esi], 0
mov edx, dword [esp + 0x60]
inc eax
cmp eax, dword [edx + 0x38]
jb 0x100014f0
jmp 0x1000152d
xor eax, eax
test edx, edx
jbe 0x10001531
nop
mov edx, dword [ecx + 4]
mov ebx, dword [esp + 0x50]
mov esi, dword [ecx - 4]
add edx, eax
mov dl, byte [edx + ebx]
mov ebx, dword [esp + 0x64]
add esi, eax
inc eax
mov byte [esi + ebx], dl
cmp eax, dword [ecx]
jb 0x10001510
mov esi, dword [esp + 0x68]
movzx eax, word [esi + 6]
inc edi
add ecx, 0x28
cmp edi, eax
jl 0x100014d1
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov ecx, eax
sub ecx, dword [edx + 0x34]
mov dword [esp + 0x6c], ecx
je 0x100015d1
cmp dword [esi + 0xa4], 0
jbe 0x100015d1
mov ecx, dword [esi + 0xa0]
mov edx, dword [ecx + eax]
add ecx, eax
test edx, edx
jbe 0x100015d1
lea esp, [esp]
mov ebx, dword [ecx + 4]
lea edi, [eax + edx]
sub ebx, 8
xor edx, edx
lea esi, [ecx + 8]
test ebx, 0xfffffffe
jbe 0x100015c4
jmp 0x10001590
movzx eax, word [esi]
mov ebx, eax
and ebx, 0xfffff000
cmp ebx, 0x3000
jne 0x100015b0
mov ebx, dword [esp + 0x6c]
and eax, 0xfff
add eax, edi
add dword [eax], ebx
mov eax, dword [ecx + 4]
sub eax, 8
inc edx
shr eax, 1
add esi, 2
cmp edx, eax
jb 0x10001590
mov eax, dword [esp + 0x64]
add ecx, dword [ecx + 4]
mov edx, dword [ecx]
test edx, edx
ja 0x10001570
mov esi, dword [esp + 0x68]
cmp dword [esi + 0x84], 0
jbe 0x100016eb
mov ebx, dword [esi + 0x80]
add ebx, eax
je 0x100016eb
lea esp, [esp]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x100016e7
add ecx, eax
xor eax, eax
mov dword [esp + 0x7c], ecx
cmp byte [ecx], al
je 0x1000160e
inc eax
cmp byte [eax + ecx], 0
jne 0x10001607
push 1
lea ecx, [esp + 0x7c]
mov word [esp + 0x7c], ax
push ecx
lea edx, [esp + 0x78]
inc eax
push edx
mov word [esp + 0x86], ax
call dword [esp + 0x54]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x74]
push ecx
push 0
push 0
call dword [esp + 0x48]
lea edx, [esp + 0x70]
push edx
call dword [esp + 0x50]
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x10001438
mov ecx, dword [ebx]
mov eax, dword [esp + 0x64]
test ecx, ecx
je 0x10001667
mov esi, dword [ebx + 0x10]
lea edi, [eax + ecx]
add esi, eax
jmp 0x1000166f
mov ecx, dword [ebx + 0x10]
lea edi, [ecx + eax]
mov esi, edi
mov ecx, dword [edi]
test ecx, ecx
je 0x100016de
jmp 0x10001688
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x2c]
test ecx, ecx
jns 0x10001695
movzx eax, word [edi]
push esi
push eax
push 0
jmp 0x100016c3
lea ecx, [ecx + eax + 2]
xor eax, eax
mov dword [esp + 0x7c], ecx
cmp byte [ecx], al
je 0x100016aa
inc eax
cmp byte [eax + ecx], 0
jne 0x100016a3
push esi
mov word [esp + 0x7c], ax
inc eax
push 0
lea ecx, [esp + 0x80]
mov word [esp + 0x82], ax
push ecx
push edx
call dword [esp + 0x44]
cmp dword [esi], 0
je 0x100016da
mov ecx, dword [edi + 4]
add edi, 4
add esi, 4
test ecx, ecx
jne 0x10001680
mov eax, dword [esp + 0x64]
add ebx, 0x14
jne 0x100015f0
mov esi, dword [esp + 0x68]
mov esi, dword [esi + 0x28]
add esi, eax
xor ecx, ecx
jmp 0x100016f8
mov eax, dword [esp + 0x64]
mov byte [ecx + eax], 0
inc ecx
cmp ecx, 4
jb 0x100016f4
xor eax, eax
mov edx, dword [esp + 0x68]
mov byte [eax + edx], 0
inc eax
cmp eax, 4
jb 0x10001704
mov eax, dword [esp + 0x68]
cmp dword [eax + 0x28], 0
je 0x10001729
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x64]
push ecx
push 1
push edx
call esi
push 0x4000
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x58]
push ecx
push 0xffffffffffffffff
call dword [esp + 0x50]
mov eax, dword [esp + 0x64]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4