Function at 0x1017194
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x1039074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x103c948]
push ebx
push esi
mov esi, dword [ecx + 4]
push edi
xor edi, edi
xor ebx, ebx
add eax, 0xffffffff
cmp esi, 0x1000000
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x38], eax
jb 0x10172a2
mov ecx, dword [0x100003c]
mov edx, dword [ecx + 0x1000050]
add edx, 0x1000000
cmp esi, edx
jae 0x10172a2
mov ecx, esi
sub ecx, 0x1000000
cmp eax, edi
mov dword [ebp - 0x64], ecx
jl 0x1017295
add eax, ebx
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + eax*4]
mov esi, dword [ecx*4 + 0x103a34c]
lea ecx, [ecx*4 + 0x103a34c]
mov edx, esi
xor edx, edi
cmp dword [ebp - 0x64], edx
mov edi, dword [ecx + 0xc]
jae 0x101723d
add eax, 0xffffffff
mov dword [ebp - 0x38], eax
add edi, esi
jmp 0x1017259
mov ebx, edi
and ebx, 0xfff
add ebx, edx
cmp dword [ebp - 0x64], ebx
jb 0x101725f
lea ebx, [eax + 1]
mov eax, dword [ebp - 0x38]
sub esi, edi
mov dword [ebp - 0x58], ebx
mov edi, esi
cmp eax, ebx
jge 0x101720f
jmp 0x1017290
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x8c], edx
mov edx, dword [ecx + 4]
mov eax, esi
add edx, eax
mov dword [ebp - 0x88], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0x10]
sub edx, eax
mov eax, edi
add ecx, eax
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x7c], ecx
mov esi, dword [ebp - 0x78]
xor edi, edi
xor ecx, ecx
cmp ebx, eax
setle cl
mov eax, ecx
cmp eax, edi
jne 0x10172b9
mov edx, dword [ebp - 0x6c]
pop edi
mov dword [edx + 4], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010052b2
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x80]
mov eax, edx
and eax, 0xfff
mov dword [ebp - 0x64], eax
mov ecx, eax
mov eax, edx
shr eax, 0xc
mov dword [ebp - 0xa4], eax
and eax, 0x7f
mov dword [ebp - 0xa8], eax
add eax, 0xfffffff5
cmp eax, 0x69
ja case.0x10172eb.12
movzx eax, byte [eax + 0x1017d30]
jmp dword [eax*4 + 0x1017d18]
add ecx, 0xd
jmp 0x10172ff
add ecx, 6
jmp 0x10172ff
add ecx, 0x11
mov dword [ebp - 0x34], ecx
add ecx, 0xfff
and ecx, 0xfffff000
mov dword [ebp - 0x24], ecx
xor esi, esi
mov ecx, dword [ebp - 0x24]
push 0x40
push 0x1000
push ecx
push 0
add esi, 1
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x10173c4
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x11
jb 0x1017313
mov edi, dword [0x103c94c]
test edi, edi
je 0x1017311
xor esi, esi
xor eax, eax
test edi, edi
mov edx, edi
je 0x1017378
mov ecx, dword [0x103a310]
imul ecx, ecx, 0x343fd
add ecx, 0x269ec3
mov ebx, ecx
shr ebx, 0x10
shl eax, 0x10
or eax, ebx
shr edx, 0x10
jne 0x1017357
mov dword [0x103a310], ecx
xor edx, edx
div edi
add esi, 1
mov ecx, 0x3cea0
lea edi, [edx*4 + 0x103c950]
xor eax, eax
lock cmpxchg dword [edi], ecx
xor ebx, ebx
cmp eax, ebx
je 0x10173ac
lea eax, [edx + 1]
xor edx, edx
div dword [0x103c94c]
cmp esi, 9
jb 0x101737c
jmp 0x1017311
shl edx, 0xc
add edx, 0x1009000
mov edi, edx
cmp edi, ebx
mov dword [ebp - 0x58], edi
je 0x1017311
jmp 0x10173cb
mov dword [ebp - 0x58], eax
mov edi, eax
xor ebx, ebx
mov eax, dword [0x103c94c]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
je 0x10174da
cmp edi, 0x1009000
jb 0x10174da
shl eax, 0xc
add eax, 0x1009000
cmp edi, eax
ja 0x10174da
mov eax, edi
and eax, 0xfffff000
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x10174da
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
cmp edi, eax
jb 0x1017429
lea esi, [edi + 0x1000]
lea edx, [ecx + eax]
cmp esi, edx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
jbe 0x101749d
cmp dword [ebp - 0x44], ebx
je 0x101743d
lea edx, [ebp - 0x4c]
push edx
mov edx, dword [ebp - 0x4c]
push edx
push ecx
push eax
call esi
mov dword [ebp - 0x44], ebx
cmp dword [ebp - 0x48], ebx
je 0x1017450
push 0x103a2f0
mov dword [ebp - 0x48], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x24]
lea ecx, [edi + 0x1fff]
and ecx, 0xfffff000
sub ecx, eax
push 0x103a2f0
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0x4c]
push edx
push 0x40
push eax
push ecx
mov dword [ebp - 0x48], 1
call esi
mov ecx, dword [ebp - 0x50]
cmp eax, ebx
mov eax, dword [ebp - 0x54]
je 0x10174a1
mov dword [ebp - 0x44], 1
cmp edi, ebx
jne 0x10174da
cmp dword [ebp - 0x44], ebx
je 0x10174b5
lea edx, [ebp - 0x4c]
push edx
mov edx, dword [ebp - 0x4c]
push edx
push ecx
push eax
call esi
mov dword [ebp - 0x44], ebx
cmp dword [ebp - 0x48], ebx
je 0x10174c8
push 0x103a2f0
mov dword [ebp - 0x48], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ebx
jmp 0x1017412
mov eax, dword [0x100003c]
mov esi, dword [eax + 0x1000050]
sub esi, 0xfff
mov eax, ebx
mov edx, esi
je 0x1017518
mov ecx, dword [0x103a310]
imul ecx, ecx, 0x343fd
add ecx, 0x269ec3
mov ebx, ecx
shr ebx, 0x10
shl eax, 0x10
or eax, ebx
shr edx, 0x10
jne 0x10174f7
mov dword [0x103a310], ecx
xor edx, edx
div esi
lea eax, [edi + 3]
and eax, 0xfffffffc
mov ecx, 0x400
add edx, 0x1000003
and edx, 0xfffffffc
sub edx, eax
mov esi, dword [edx + eax]
mov dword [eax], esi
add eax, 4
sub ecx, 1
jne 0x1017532
mov ebx, dword [ebp - 0x8c]
mov ecx, 0x1001
sub ecx, dword [ebp - 0x34]
lea ebx, [ebx + 0x1000000]
mov dword [ebp - 0x38], ebx
mov eax, 0
mov esi, ecx
je 0x1017589
mov edx, dword [0x103a310]
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov edi, edx
shr edi, 0x10
shl eax, 0x10
or eax, edi
shr esi, 0x10
jne 0x1017565
mov edi, dword [ebp - 0x58]
mov dword [0x103a310], edx
xor edx, edx
div ecx
mov al, byte [ebp - 0x81]
mov ecx, dword [ebp - 0x8c]
mov byte [ebp - 0x15], 0xa5
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], 0
add edx, edi
sub ebx, edx
test al, 1
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x34], ebx
je 0x10175c0
lea eax, [ebp - 0x88]
jmp 0x1017844
movzx edi, word [ebp - 0x84]
mov ecx, dword [ebp - 0x88]
movzx esi, al
mov eax, 0x1000000
shr esi, 1
sub eax, dword [0x103a30c]
lea ecx, [ecx + 0x1000000]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x40], eax
jne 0x1017638
mov eax, 0x8421085
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
imul eax, eax, 0x7c
sub esi, eax
lea edx, [ebp - 0x40]
push edx
mov edx, dword [esi*4 + 0x1039120]
lea eax, [ecx + edi]
push eax
push ecx
lea ecx, [ebp - 0x60]
push ecx
mov byte [ebp - 0x40], 0
mov byte [ebp - 0x3f], 1
mov byte [ebp - 0x3e], 2
mov byte [ebp - 0x3d], 3
mov byte [ebp - 0x3c], 4
mov byte [ebp - 0x3b], 5
call edx
jmp 0x101782e
mov edx, dword [0x100003c]
mov eax, ecx
sub eax, 0x1000000
mov ecx, eax
mov ebx, eax
add eax, edi
mov edi, eax
and edi, 0xfffff000
sub eax, edi
mov dword [ebp - 0xa0], edi
mov edi, dword [edx + 0x10000a0]
mov dword [ebp - 0x9c], eax
mov eax, dword [edx + 0x10000a4]
add edi, 0x1000000
and ecx, 0xfffff000
add eax, edi
sub ebx, ecx
cmp edi, eax
mov dword [ebp - 0x98], eax
je 0x1017692
cmp dword [edi], ecx
jae 0x1017692
add edi, dword [edi + 4]
cmp edi, eax
jne 0x1017687
xor edx, edx
cmp edi, eax
je 0x10176c0
cmp dword [edi], ecx
jne 0x10176c0
mov ecx, dword [edi + 4]
sub ecx, 8
shr ecx, 1
mov dword [ebp - 0x20], ecx
je 0x10176c0
movzx ecx, word [edi + edx*2 + 8]
and ecx, 0xfff
cmp ecx, ebx
jae 0x10176c0
add edx, 1
cmp edx, dword [ebp - 0x20]
jne 0x10176a9
mov ecx, dword [ebp - 0x30]
jmp 0x10176cb
mov eax, dword [ebp - 0x98]
cmp edi, eax
je 0x10177e1
mov ebx, dword [edi]
cmp ebx, dword [ebp - 0xa0]
ja 0x10177e1
lea esp, [esp]
mov ebx, dword [edi + 4]
add ebx, 0xfffffff8
shr ebx, 1
cmp edx, ebx
jne 0x101770d
add edi, dword [edi + 4]
cmp edi, eax
je 0x10177e1
mov edx, dword [ebp - 0xa0]
cmp dword [edi], edx
ja 0x10177e1
xor edx, edx
jmp 0x10176e4
mov ebx, dword [edi]
cmp ebx, dword [ebp - 0xa0]
jne 0x101772d
movzx eax, word [edi + edx*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x9c]
jae 0x10177e1
mov eax, edx
movzx eax, word [edi + eax*2 + 8]
add edx, 1
test eax, 0xf000
mov dword [ebp - 0x90], edx
je 0x10176c5
and eax, 0xfff
lea ebx, [eax + ebx + 0x1000000]
mov eax, 0x8421085
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
imul eax, eax, 0x7c
mov edx, esi
sub edx, eax
lea eax, [edx*4 + 0x1039120]
lea edx, [ebp - 0x74]
push edx
mov edx, dword [eax]
push ebx
push ecx
lea ecx, [ebp - 0x60]
push ecx
mov byte [ebp - 0x74], 0
mov byte [ebp - 0x73], 1
mov byte [ebp - 0x72], 2
mov byte [ebp - 0x71], 3
mov byte [ebp - 0x70], 4
mov byte [ebp - 0x6f], 5
mov dword [ebp - 0x20], eax
call edx
mov eax, dword [ebx]
sub eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
push ecx
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ecx]
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 0x2c], 0
mov byte [ebp - 0x2b], 1
mov byte [ebp - 0x2a], 2
mov byte [ebp - 0x29], 3
mov byte [ebp - 0x28], 4
mov byte [ebp - 0x27], 5
call edx
mov edx, dword [ebp - 0x90]
add esp, 0x20
lea ecx, [ebx + 4]
jmp 0x10176c5
mov eax, 0x8421085
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
imul eax, eax, 0x7c
sub esi, eax
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
push edx
mov edx, dword [ebp - 0x24]
add eax, edx
push eax
push ecx
mov ecx, dword [esi*4 + 0x1039120]
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 0x2c], 0
mov byte [ebp - 0x2b], 1
mov byte [ebp - 0x2a], 2
mov byte [ebp - 0x29], 3
mov byte [ebp - 0x28], 4
mov byte [ebp - 0x27], 5
call ecx
mov ebx, dword [ebp - 0x34]
or byte [ebp - 0x60], 1
or byte [ebp - 0x5e], 1
or byte [ebp - 0x5c], 1
add esp, 0x10
or byte [ebp - 0x5b], 1
lea eax, [ebp - 0x60]
mov edx, dword [eax]
mov ax, word [eax + 4]
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x64]
test eax, eax
mov dword [ebp - 0x20], edx
jbe 0x1017a4f
add eax, 0xffffffff
mov dword [ebp - 0x30], eax
je 0x10179c6
mov ecx, eax
mov eax, dword [ebp - 0x38]
lea edi, [ecx + eax]
mov ecx, dword [ebp - 0x68]
sub ecx, eax
mov dword [ebp - 0x40], ecx
test byte [ebp - 0x30], 1
mov al, byte [edi]
je 0x1017916
mov cl, byte [ebp - 0x1d]
mov bl, cl
xor bl, al
and bl, 1
movzx edx, cl
movzx eax, al
je 0x10178b0
movzx ecx, byte [ebp - 0x1e]
mov esi, edx
shr esi, 1
shr ecx, 1
xor ecx, esi
mov esi, eax
xor esi, 0x100
sar esi, 1
xor ecx, esi
jmp 0x10178b6
mov ecx, eax
xor ecx, edx
shr ecx, 1
movzx esi, byte [edi - 1]
xor ecx, esi
test cl, 1
je 0x10178f6
test bl, bl
je 0x10178da
movzx ecx, byte [ebp - 0x1e]
shr ecx, 1
shr edx, 1
xor eax, 0x100
xor ecx, edx
sar eax, 1
xor ecx, eax
jmp 0x10178e0
xor eax, edx
shr eax, 1
mov ecx, eax
movzx eax, byte [ebp - 0x1b]
shr eax, 1
xor ecx, esi
xor eax, 0x80
sar ecx, 1
xor eax, ecx
jmp 0x10179a9
test bl, bl
je 0x101799d
movzx ecx, byte [ebp - 0x1e]
shr ecx, 1
shr edx, 1
xor eax, 0x100
xor ecx, edx
sar eax, 1
xor ecx, eax
jmp 0x10179a3
mov bl, byte [ebp - 0x1f]
movzx edx, byte [ebp - 0x1f]
xor bl, al
and bl, 1
movzx eax, al
je 0x1017941
movzx ecx, byte [ebp - 0x20]
mov esi, edx
shr esi, 1
shr ecx, 1
xor ecx, esi
mov esi, eax
xor esi, 0x100
sar esi, 1
xor ecx, esi
jmp 0x1017947
mov ecx, eax
xor ecx, edx
shr ecx, 1
movzx esi, byte [edi - 1]
xor ecx, esi
test cl, 1
je 0x1017984
test bl, bl
je 0x101796b
movzx ecx, byte [ebp - 0x20]
shr ecx, 1
shr edx, 1
xor eax, 0x100
xor ecx, edx
sar eax, 1
xor ecx, eax
jmp 0x1017971
xor eax, edx
shr eax, 1
mov ecx, eax
movzx eax, byte [ebp - 0x1c]
shr eax, 1
xor ecx, esi
xor eax, 0x80
sar ecx, 1
xor eax, ecx
jmp 0x10179a9
test bl, bl
je 0x101799d
movzx ecx, byte [ebp - 0x20]
shr ecx, 1
shr edx, 1
xor eax, 0x100
xor ecx, edx
sar eax, 1
xor ecx, eax
jmp 0x10179a3
xor eax, edx
shr eax, 1
mov ecx, eax
xor ecx, esi
sar ecx, 1
mov eax, ecx
mov edx, dword [ebp - 0x40]
xor byte [ebp - 0x15], al
mov byte [edx + edi], al
mov eax, dword [ebp - 0x30]
sub eax, 1
sub edi, 1
test eax, eax
mov dword [ebp - 0x30], eax
ja 0x1017878
mov eax, dword [ebp - 0x38]
mov al, byte [eax]
mov cl, byte [ebp - 0x1f]
mov bl, byte [ebp - 0x20]
mov dl, al
xor dl, cl
movzx eax, al
movzx ecx, cl
xor eax, ecx
shr eax, 1
and dl, 1
je 0x10179f3
movzx ecx, bl
xor ecx, 0x100
sar ecx, 1
xor ecx, eax
jmp 0x10179f5
mov ecx, eax
test cl, 1
je 0x1017a2b
test dl, dl
je 0x1017a1a
movzx ecx, bl
xor ecx, 0x100
sar ecx, 1
xor ecx, eax
movzx eax, byte [ebp - 0x1c]
xor eax, ecx
xor eax, 0x100
sar eax, 1
jmp 0x1017a44
mov ecx, eax
movzx eax, byte [ebp - 0x1c]
xor eax, ecx
xor eax, 0x100
sar eax, 1
jmp 0x1017a44
test dl, dl
je 0x1017a3e
movzx ecx, bl
xor ecx, 0x100
sar ecx, 1
xor ecx, eax
jmp 0x1017a40
mov ecx, eax
sar ecx, 1
mov eax, ecx
mov edx, dword [ebp - 0x68]
xor byte [ebp - 0x15], al
mov ebx, dword [ebp - 0x34]
mov byte [edx], al
mov eax, 0x1000000
sub eax, dword [0x103a30c]
mov dword [ebp - 0x24], eax
jne 0x1017a67
test ebx, ebx
je 0x1017b1e
mov ecx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
mov esi, dword [0x1001eac]
sub ebx, ecx
sub ecx, 0x1000000
lea edx, [ecx + eax]
xor edi, edi
add esi, 0xffffffff
mov dword [ebp - 0x40], edx
js 0x1017ab6
lea eax, [esi + edi]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x1001eb0]
and edx, 0xfffffff
cmp ecx, edx
jae 0x1017aa9
lea esi, [eax - 1]
jmp 0x1017aae
jbe 0x1017ab4
lea edi, [eax + 1]
cmp esi, edi
jge 0x1017a8b
jmp 0x1017ab6
mov edi, eax
cmp edi, dword [0x1001eac]
jae 0x1017b1e
lea ebx, [ebx]
mov eax, dword [edi*4 + 0x1001eb0]
mov esi, eax
and esi, 0xfffffff
cmp esi, dword [ebp - 0x40]
jae 0x1017b1e
mov ecx, eax
add eax, eax
add eax, eax
sar eax, 0x1e
sar ecx, 0x1e
and eax, 3
and ecx, 3
xor edx, edx
sub eax, 1
je 0x1017b01
sub eax, 1
je 0x1017afc
sub eax, 1
jne 0x1017b07
mov edx, dword [ebp - 0x24]
jmp 0x1017b07
mov edx, dword [ebp - 0x34]
jmp 0x1017b07
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x34]
sub ecx, 2
jne 0x1017b13
add dword [ebx + esi + 0x1000000], edx
add edi, 1
cmp edi, dword [0x1001eac]
jb 0x1017ac0
mov al, byte [ebp - 0x82]
xor al, byte [ebp - 0x15]
je 0x1017bca
call fcn.01013164
mov esi, eax
mov eax, dword [ebp - 0x6c]
lea edi, [eax + 8]
and edi, 0xfffffffc
lea ecx, [edi + 0xfff]
mov dword [eax + 4], 0x103751b
mov edx, dword [0x103a310]
and esi, 0xfffff000
and ecx, 0xfffff000
xor eax, eax
mov dword [ebp - 0x24], 0xffff
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov ebx, edx
shr ebx, 0x10
shl eax, 0x10
or eax, ebx
shr dword [ebp - 0x24], 0x10
jne 0x1017b65
mov dword [0x103a310], edx
xor edx, edx
mov ebx, 0xffff
div ebx
mov eax, edx
mov edx, dword [ebp - 0x6c]
add eax, 1
cmp edi, ecx
mov dword [edx - 0x1c], eax
mov dword [edx - 8], esi
jae 0x1017bb1
sub ecx, edi
sub ecx, 1
shr ecx, 2
add ecx, 1
xor eax, eax
rep stosd dword es:[edi], eax
pop edi
mov eax, 0x103751b
pop esi
mov dword [edx + 4], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010052b2
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xa8]
mov edx, dword [ebp - 0x64]
mov edi, dword [ebp - 0x68]
lea ecx, [esi - 0xb]
cmp ecx, 0x69
lea eax, [edx + edi]
ja case.0x1017bec.12
movzx ecx, byte [ecx + 0x1017da8]
jmp dword [ecx*4 + 0x1017d9c]
mov edx, dword [ebp - 0x80]
mov edi, edx
shr edi, 5
mov ebx, edx
and edi, 0x100000
mov ecx, edx
and edx, 0x100000
and ebx, 0x1e00000
or edi, ebx
shr edi, 5
or edi, edx
mov edx, dword [eax + 5]
and edx, 0xffffff80
or edx, esi
and edx, 0xfff0007f
shr edi, 1
or edi, edx
mov edx, dword [ebp - 0xa4]
shr ecx, 0x12
and edx, 0x80
or edi, edx
and ecx, 0x3f00
or edi, ecx
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 5], edi
mov edi, dword [ebp - 0x68]
mov dword [eax + 9], ecx
mov edx, 0x103773d
jmp 0x1017c8d
mov ecx, dword [ebp - 0x80]
shr ecx, 0x15
xor cl, byte [eax + 5]
mov edx, 0x103779d
and cl, 0xf
xor byte [eax + 5], cl
jmp 0x1017c8d
mov ecx, dword [ebp - 0x8c]
add edx, ecx
mov ecx, dword [eax + 0xd]
mov dword [eax + 5], edx
mov edx, dword [ebp - 0x7c]
and ecx, 0xffffff80
or ecx, esi
mov dword [eax + 9], edx
mov dword [eax + 0xd], ecx
mov edx, 0x10376e9
sub edx, eax
sub edx, 5
mov byte [eax], pe_nt_image_headers32
mov dword [eax + 1], edx
mov eax, dword [0x103c94c]
xor esi, esi
cmp eax, esi
je 0x1017cf7
mov ecx, dword [ebp - 0x58]
cmp ecx, 0x1009000
jb 0x1017cf7
shl eax, 0xc
add eax, 0x1009000
cmp ecx, eax
ja 0x1017cf7
and ecx, 0xfffff000
mov eax, ecx
cmp eax, esi
je 0x1017cf7
cmp dword [ebp - 0x44], esi
je 0x1017ce4
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x54]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x44], esi
cmp dword [ebp - 0x48], esi
je 0x1017cf7
push 0x103a2f0
mov dword [ebp - 0x48], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub edi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x6c]
add edi, dword [ebp - 0x78]
mov eax, edi
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010052b2
mov esp, ebp
pop ebp
ret