Function at 0x1003f970
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100844d3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf8
mov eax, dword [0x100a6040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x94], edi
movzx ecx, word [ebx + 0xc]
xor esi, esi
movzx eax, word [ebx + 8]
movzx edx, word [ebx + 0x30]
mov dword [ebp - 0x88], ecx
movzx ecx, word [ebx + 0x2c]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x58], esi
mov dword [ebp - 4], 1
test ax, ax
je 0x100400e2
test cx, cx
je 0x100400e2
cmp dword [edi + 0x34], esi
jg 0x100400e2
mov ecx, dword [edi + 8]
lea edx, [ebx + 0x10]
call fcn.100141e0
mov ecx, dword [edi + 0xc]
lea edx, [ebx + 0x34]
call fcn.100141e0
mov eax, dword [edi + 0x10]
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x1003fa3e
push 4
push eax
call ecx
test eax, eax
jne 0x1003fa38
mov ecx, dword [ebp - 0x50]
push eax
call dword [0x1009e0e4]
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x1003fa5b
push 4
push eax
call ecx
test eax, eax
jne 0x1003fa5b
mov ecx, dword [ebp - 0x50]
push eax
call dword [0x1009e0e4]
cmp word [ebp - 0x54], 0xffff
je 0x1004007e
cmp word [ebp - 0x5c], 0xffff
je 0x1004007e
mov dl, 0x10
mov dword [ebp - 0x84], 0x7d696310
mov dword [ebp - 0x80], 0x4c7c7f72
xor ecx, ecx
mov byte [ebp - 0x7c], 0
nop word [eax + eax]
xor byte [ebp + ecx - 0x83], dl
inc ecx
cmp ecx, 7
jae 0x1003faa5
mov dl, byte [ebp - 0x84]
jmp 0x1003fa90
mov edx, dword [0x100aa3e4]
lea ecx, [ebp - 0x83]
lea eax, [ecx + 1]
mov byte [ebp - 0x7c], 0
mov dword [ebp - 0x50], eax
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003fac0
sub ecx, dword [ebp - 0x50]
mov eax, 0x7fffffff
sub eax, edx
cmp eax, ecx
jb 0x1004013c
cmp dword [0x100aa3e8], 0xf
mov eax, 0x100aa3d4
push ecx
cmova eax, dword [0x100aa3d4]
lea ecx, [ebp - 0x83]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x60]
lea ecx, [ebp - 0x4c]
call fcn.10010a50
or esi, 0x10
mov dword [ebp - 0x58], esi
mov eax, dword [ebp - 0x88]
mov byte [ebp - 4], 2
test ax, ax
jne 0x1003fbbb
movaps xmm0, xmmword [0x1009fea0]
xor ecx, ecx
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x68], 0x5f155049
mov word [ebp - 0x64], 0x4f43
mov byte [ebp - 0x62], al
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x77]
xor al, byte [ebp - 0x78]
mov byte [ebp + ecx - 0x77], al
inc ecx
cmp ecx, 0x15
jb 0x1003fb40
xorps xmm0, xmm0
mov byte [ebp - 0x62], 0
lea ecx, [ebp - 0x77]
mov dword [ebp - 0xb0], 0
movups xmmword [ebp - 0xac], xmm0
mov dword [ebp - 0x9c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x98], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003fb83
sub ecx, edx
lea eax, [ebp - 0x77]
push ecx
push eax
lea ecx, [ebp - 0xb0]
call fcn.10003350
lea eax, [ebp - 0xb0]
mov dword [ebp - 0x8c], eax
or esi, 1
mov dword [ebp - 0x90], esi
mov eax, esi
mov dword [ebp - 0x50], esi
jmp 0x1003fc5c
cmp dword [ebp - 0x34], 0xf
lea ecx, [ebp - 0x48]
movaps xmm0, xmmword [0x1009fec0]
cmova ecx, dword [ebp - 0x48]
cwde
push eax
mov eax, dword [ebp - 0x54]
cwde
push eax
push 1
push ecx
movups xmmword [ebp - 0x74], xmm0
mov word [ebp - 0x64], 0x57
xor ecx, ecx
mov al, byte [ebp + ecx - 0x73]
xor al, byte [ebp - 0x74]
mov byte [ebp + ecx - 0x73], al
inc ecx
cmp ecx, 0x10
jb 0x1003fbe3
sub esp, 0x1c
mov byte [ebp - 0x63], 0
mov edx, esp
lea ecx, [ebp - 0x73]
xorps xmm0, xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x50], eax
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003fc21
sub ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x73]
push ecx
push eax
mov ecx, edx
call fcn.10003350
lea eax, [ebp - 0xe8]
push eax
call fcn.1000d820
add esp, 0x30
mov dword [ebp - 0x8c], eax
or esi, 2
mov ecx, esi
mov dword [ebp - 0x90], ecx
mov eax, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], 4
xorps xmm0, xmm0
push 8
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.10045fe0
add esp, 4
lea ecx, [ebp - 0x30]
mov dword [eax + 4], 0
push dword [ebp - 0x8c]
mov dword [ebp - 0x30], eax
mov dword [eax], ecx
call fcn.10007c30
mov eax, esi
mov dword [ebp - 4], 5
test al, 2
je 0x1003fcf7
mov esi, dword [ebp - 0x90]
lea ecx, [ebp - 0xe8]
and esi, 0xfffffffd
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], esi
call fcn.10002f50
mov eax, dword [ebp - 0xe8]
push 8
push eax
mov dword [ebp - 0xe8], 0
call fcn.10046080
add esp, 8
mov eax, esi
mov ecx, esi
jmp 0x1003fd00
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 4], 6
test al, 1
je 0x1003fd39
mov esi, ecx
lea ecx, [ebp - 0xb0]
and esi, 0xfffffffe
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], esi
call fcn.10002f50
mov eax, dword [ebp - 0xb0]
push 8
push eax
mov dword [ebp - 0xb0], 0
call fcn.10046080
add esp, 8
mov ecx, dword [edi + 0x18]
lea edx, [ebp - 0x30]
call fcn.10014070
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x1003fd8e
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003fd8e
mov ecx, dword [ebp - 0x50]
sub esp, 0x20
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], eax
mov dword [esp], eax
call dword [0x1009e0cc]
mov eax, dword [ebp - 0x60]
test ax, ax
jne 0x1003fe33
movaps xmm0, xmmword [0x1009fef0]
xor ecx, ecx
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x68], 0x662c6970
mov word [ebp - 0x64], 0x767a
mov byte [ebp - 0x62], al
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x77]
xor al, byte [ebp - 0x78]
mov byte [ebp + ecx - 0x77], al
inc ecx
cmp ecx, 0x15
jb 0x1003fdc0
xorps xmm0, xmm0
mov byte [ebp - 0x62], 0
lea ecx, [ebp - 0x77]
mov dword [ebp - 0xcc], 0
movups xmmword [ebp - 0xc8], xmm0
mov dword [ebp - 0xb8], 0
lea edx, [ecx + 1]
mov dword [ebp - 0xb4], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003fe03
sub ecx, edx
lea eax, [ebp - 0x77]
push ecx
push eax
lea ecx, [ebp - 0xcc]
call fcn.10003350
or esi, 4
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x50], esi
lea esi, [ebp - 0xcc]
jmp 0x1003fee6
cmp dword [ebp - 0x34], 0xf
lea ecx, [ebp - 0x48]
movaps xmm0, xmmword [0x1009fce0]
cmova ecx, dword [ebp - 0x48]
cwde
push eax
mov eax, dword [ebp - 0x5c]
cwde
push eax
push 1
push ecx
movups xmmword [ebp - 0x74], xmm0
mov word [ebp - 0x64], 0x25
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x73]
xor al, byte [ebp - 0x74]
mov byte [ebp + ecx - 0x73], al
inc ecx
cmp ecx, 0x10
jb 0x1003fe60
sub esp, 0x1c
mov byte [ebp - 0x63], 0
mov edx, esp
lea ecx, [ebp - 0x73]
xorps xmm0, xmm0
lea esi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003fea0
sub ecx, esi
lea eax, [ebp - 0x73]
push ecx
push eax
mov ecx, edx
call fcn.10003350
lea eax, [ebp - 0x104]
push eax
call fcn.1000d820
mov esi, eax
lea edi, [ebp - 0x30]
mov eax, dword [ebp - 0x54]
add esp, 0x30
or eax, 8
cmp edi, esi
mov edi, dword [ebp - 0x94]
mov edx, eax
mov dword [ebp - 0x54], eax
mov ecx, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x50], eax
je 0x1003ff00
lea ecx, [ebp - 0x30]
call fcn.10002f50
push esi
lea ecx, [ebp - 0x30]
call fcn.10007c30
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x50]
test al, 8
je 0x1003ff33
and edx, 0xfffffff7
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x60], edx
call fcn.10002f50
mov eax, dword [ebp - 0x104]
push 8
push eax
mov dword [ebp - 0x104], 0
call fcn.10046080
mov ecx, dword [ebp - 0x60]
add esp, 8
mov dword [ebp - 4], 6
test cl, 4
je 0x1003ff65
lea ecx, [ebp - 0xcc]
call fcn.10002f50
mov eax, dword [ebp - 0xcc]
push 8
push eax
mov dword [ebp - 0xcc], 0
call fcn.10046080
add esp, 8
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x1003fffa
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003fffa
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, dword [ebp - 0x2c]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003ff90
sub ecx, edx
mov dword [ebp - 0x5c], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100460a0
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.10048c00
add esp, 0xc
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
lea esi, [edi + 0x20]
cmova edx, dword [ebp - 0x2c]
push dword [ebp - 0x5c]
push edx
push esi
call fcn.10048680
mov eax, dword [ebp - 0x5c]
add esp, 0xc
mov ecx, dword [ebp - 0x60]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x1009e0c4]
push edi
call fcn.10046080
mov edi, dword [ebp - 0x94]
add esp, 4
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x10040040
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10040040
sub esp, 0x20
mov ecx, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], eax
mov dword [esp], eax
call dword [0x1009e0cc]
lea ecx, [ebp - 0x30]
call fcn.10002f50
mov eax, dword [ebp - 0x30]
push 8
push eax
mov dword [ebp - 0x30], 0
call fcn.10046080
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.10002f50
mov eax, dword [ebp - 0x4c]
push 8
push eax
mov dword [ebp - 0x4c], 0
call fcn.10046080
add esp, 8
mov esi, dword [edi + 0x20]
test esi, esi
je 0x1004009b
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004009b
push eax
mov ecx, esi
call dword [0x1009e0b8]
mov esi, dword [edi + 0x24]
test esi, esi
je 0x100400b8
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100400b8
push eax
mov ecx, esi
call dword [0x1009e0b8]
mov al, byte [ebx + 0x50]
mov ecx, edi
mov byte [edi + 0x30], al
call fcn.1003eb80
mov esi, dword [edi]
test esi, esi
je 0x100400e2
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100400e2
push 1
mov ecx, esi
call dword [0x1009e0b8]
lea ecx, [ebx + 0x10]
call fcn.10002f50
mov eax, dword [ebx + 0x10]
push 8
push eax
mov dword [ebx + 0x10], 0
call fcn.10046080
add esp, 8
lea ecx, [ebx + 0x34]
call fcn.10002f50
mov eax, dword [ebx + 0x34]
push 8
push eax
mov dword [ebx + 0x34], 0
call fcn.10046080
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10045fd0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x4c
call fcn.10003040
int3