Function at 0x12eef6c
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x8c
mov dword [ebp - 0x88], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x78], ebx
mov ebx, 0xfffffff
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], edi
mov esi, dword [eax + 4]
sub eax, 4
mov edi, dword [0x10fb370]
mov dword [ebp - 0x68], eax
mov eax, dword [esi + 4]
and eax, ebx
xor edx, edx
lea ecx, [edi + eax - 1]
mov eax, ecx
div edi
sub ecx, edx
mov eax, dword [0x10fb370]
mov dword [ebp - 0x44], ecx
mov eax, dword [0x1007420]
mov dword [ebp - 0x48], eax
mov eax, dword [0x10fb370]
mov eax, dword [0x1007420]
test eax, eax
je 0x12ef05e
and dword [ebp - 0x2c], 0
mov eax, dword [0x1007420]
dec eax
lea ecx, [eax + 1]
mov edx, ecx
xor eax, eax
test ecx, ecx
je 0x12ef016
mov edi, dword [0x138b4cc]
imul edi, edi, 0x343fd
add edi, 0x269ec3
mov dword [0x138b4cc], edi
shr edi, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, edi
test edx, edx
jne 0x12eefef
xor edx, edx
div ecx
cmp dword [ebp - 0x48], 0
jbe 0x12ef058
mov eax, 0xef0b
mov ecx, 0xffff10f4
inc dword [ebp - 0x2c]
lea edi, [edx*4 + 0x1388f9c]
lock cmpxchg dword [edi], ecx
cmp eax, 0xef0b
je 0x12ef1db
mov ecx, dword [0x1007420]
lea eax, [edx + 1]
xor edx, edx
div ecx
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x48]
jb 0x12ef020
xor edi, edi
test edi, edi
jne 0x12ef0d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov dword [ebp - 0x3c], eax
inc edi
push 0x40
push 0x1000
push dword [ebp - 0x44]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x12ef1ee
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x11
jb 0x12ef069
xor edi, edi
cmp dword [0x138b2f8], edi
ja 0x12ef0a2
test edi, 3
je 0x12ef0b6
test edi, edi
je 0x12ef0b4
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor edi, edi
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x12eefc0
mov ecx, dword [ebp - 0x44]
test ecx, ecx
mov eax, edi
je 0x12ef0d7
mov byte [eax], 0
inc eax
dec ecx
jne 0x12ef0d0
mov eax, 0x829866bd
mov ecx, dword [esi + 4]
mov eax, dword [esi]
and eax, 7
lea eax, [eax + esi + 8]
and ecx, ebx
lea edx, [eax + ecx]
mov dword [ebp - 0x24], eax
sub dword [ebp - 0x24], 0x1000000
mov dword [ebp - 0x48], eax
mov eax, dword [0x10fb370]
mov dword [ebp - 0x44], ecx
sub eax, ecx
mov dword [ebp - 0x3c], edx
lea ecx, [eax + 1]
mov edx, ecx
xor eax, eax
test ecx, ecx
je 0x12ef139
mov esi, dword [0x138b4cc]
imul esi, esi, 0x343fd
add esi, 0x269ec3
mov dword [0x138b4cc], esi
shr esi, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, esi
test edx, edx
jne 0x12ef112
xor edx, edx
div ecx
lea eax, [edi + edx]
push eax
push dword [ebp - 0x44]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x24]
mov eax, 0xd722dad7
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], edi
mov byte [ebp - 0xd], 0
mov eax, 0xcb1485a5
mov ecx, dword [0x102c94c]
and dword [ebp - 0x1c], 0
mov eax, ebx
and dword [ebp - 0x18], 0
and esi, eax
and edi, eax
mov eax, 0x1000000
add esi, 0x1000000
mov ebx, esi
add esp, 0x10
sub eax, ecx
mov dword [ebp - 0x34], eax
jne 0x12ef1f5
xor edx, edx
test edi, edi
jbe 0x12ef3cd
movzx ecx, byte [edx + ebx]
sub ecx, 0x69eb8044
add dword [ebp - 0x1c], ecx
add ecx, dword [ebp - 0x18]
mov eax, ecx
imul eax, eax, 0x7680
rol eax, 0xc
ror ecx, 0xc
xor eax, ecx
imul eax, eax, 0x96147fbc
imul eax, eax, 0x96147fbc
add dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
inc edx
cmp edx, edi
jb 0x12ef19f
jmp 0x12ef3cd
mov eax, dword [0x10fb370]
imul eax, edx
lea edi, [eax + section..data]
jmp 0x12ef05a
mov edi, eax
jmp 0x12ef092
mov esi, 0x1000000
lea eax, [edi + ebx]
mov ecx, ebx
mov edx, dword [0x100003c]
lea edx, [edx + 0x10000a0]
mov dword [ebp - 0x30], eax
mov eax, dword [edx]
mov edx, dword [edx + 4]
add eax, esi
sub ecx, esi
mov dword [ebp - 0x40], edx
mov esi, ecx
mov edx, ecx
and esi, 0xfffff000
sub edx, esi
add ecx, edi
mov dword [ebp - 0x38], edx
mov edx, ecx
and edx, 0xfffff000
sub ecx, edx
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x40]
add ecx, eax
mov dword [ebp - 0x64], edx
cmp eax, ecx
mov edx, eax
mov dword [ebp - 0x5c], ecx
je 0x12ef255
cmp dword [edx], esi
jae 0x12ef255
add edx, dword [edx + 4]
cmp edx, dword [ebp - 0x5c]
jne 0x12ef249
mov ecx, 0xfff
and dword [ebp - 0x54], 0
cmp edx, dword [ebp - 0x5c]
je 0x12ef288
cmp dword [edx], esi
jne 0x12ef288
mov eax, dword [edx + 4]
sub eax, 8
shr eax, 1
je 0x12ef288
lea esi, [edx + 8]
movzx edi, word [esi]
and edi, ecx
cmp edi, dword [ebp - 0x38]
jae 0x12ef288
inc dword [ebp - 0x54]
inc esi
inc esi
cmp dword [ebp - 0x54], eax
jne 0x12ef274
mov esi, dword [ebp - 0x64]
cmp edx, dword [ebp - 0x5c]
je 0x12ef38d
cmp dword [edx], esi
ja 0x12ef38d
mov eax, dword [edx + 4]
lea edi, [eax - 8]
shr edi, 1
cmp dword [ebp - 0x54], edi
jne 0x12ef2c2
add edx, eax
cmp edx, dword [ebp - 0x5c]
je 0x12ef38d
cmp dword [edx], esi
ja 0x12ef38d
and dword [ebp - 0x54], 0
jmp 0x12ef29c
cmp dword [edx], esi
jne 0x12ef2d9
mov eax, dword [ebp - 0x54]
movzx eax, word [edx + eax*2 + 8]
and eax, ecx
cmp eax, dword [ebp - 0x60]
jae 0x12ef38d
mov eax, dword [ebp - 0x54]
inc dword [ebp - 0x54]
mov edi, 0xf000
test word [edx + eax*2 + 8], di
je 0x12ef28b
movzx eax, word [edx + eax*2 + 8]
and eax, ecx
mov ecx, dword [edx]
xor esi, esi
lea ecx, [eax + ecx + 0x1000000]
mov dword [ebp - 0x20], ecx
sub dword [ebp - 0x20], ebx
je 0x12ef33d
movzx edi, byte [ebx + esi]
sub edi, 0x69eb8044
add dword [ebp - 0x1c], edi
add edi, dword [ebp - 0x18]
mov eax, edi
imul eax, eax, 0x7680
rol eax, 0xc
ror edi, 0xc
xor eax, edi
imul eax, eax, 0x96147fbc
imul eax, eax, 0x96147fbc
add dword [ebp - 0x1c], eax
inc esi
mov dword [ebp - 0x18], eax
cmp esi, dword [ebp - 0x20]
jb 0x12ef305
mov eax, dword [ecx]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x6c], eax
xor edi, edi
movzx esi, byte [ebp + edi - 0x6c]
sub esi, 0x69eb8044
add dword [ebp - 0x1c], esi
add esi, dword [ebp - 0x18]
mov eax, esi
imul eax, eax, 0x7680
rol eax, 0xc
ror esi, 0xc
xor eax, esi
imul eax, eax, 0x96147fbc
imul eax, eax, 0x96147fbc
add dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
inc edi
cmp edi, 4
jb 0x12ef347
lea ebx, [ecx + 4]
mov ecx, 0xfff
jmp 0x12ef288
mov esi, dword [ebp - 0x30]
xor edx, edx
sub esi, ebx
je 0x12ef3cd
movzx ecx, byte [edx + ebx]
sub ecx, 0x69eb8044
add dword [ebp - 0x1c], ecx
add ecx, dword [ebp - 0x18]
mov eax, ecx
imul eax, eax, 0x7680
rol eax, 0xc
ror ecx, 0xc
xor eax, ecx
imul eax, eax, 0x96147fbc
imul eax, eax, 0x96147fbc
add dword [ebp - 0x1c], eax
inc edx
mov dword [ebp - 0x18], eax
cmp edx, esi
jb 0x12ef396
xor eax, eax
mov ecx, eax
and ecx, 7
mov cl, byte [ebp + ecx - 0x1c]
mov byte [ebp + eax - 0xc], cl
inc eax
cmp eax, 8
jb 0x12ef3cf
mov eax, 0xf744e4ba
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x44]
and eax, 7
mov dword [ebp - 0x38], eax
je 0x12ef5ab
mov edi, dword [ebp - 0x24]
not edi
xor ecx, ecx
mov dword [ebp - 0x34], ecx
cmp eax, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], ecx
jle 0x12ef43c
push 0x38
pop edx
cmp dword [ebp - 0x14], 4
movzx ebx, byte [esi]
jge 0x12ef429
lea ecx, [edx - 0x20]
shl ebx, cl
or dword [ebp - 0x30], ebx
jmp 0x12ef430
mov ecx, edx
shl ebx, cl
or dword [ebp - 0x34], ebx
inc esi
inc dword [ebp - 0x14]
sub edx, 8
cmp dword [ebp - 0x14], eax
jl 0x12ef416
movzx ecx, word [ebp - 8]
mov edx, dword [ebp - 0x24]
movzx eax, word [ebp - 6]
sub edx, ecx
imul edx, eax
mov eax, dword [ebp - 0x24]
shr eax, 0xa
sub edx, eax
xor edi, edx
mov ebx, edi
movzx edx, word [ebp - 0xc]
mov dword [ebp - 0x20], ecx
mov eax, edx
xor eax, edi
imul eax, ecx
ror ebx, 7
sub eax, ebx
movzx ecx, word [ebp - 0xa]
xor eax, dword [ebp - 0x24]
mov ebx, eax
mov dword [ebp - 0x14], ecx
sub ebx, ecx
sub ebx, dword [ebp - 8]
xor edi, ebx
xor ecx, edi
rol ecx, 2
imul edx, ecx
mov ecx, dword [ebp - 0xc]
mov ebx, edi
ror ebx, 6
xor ebx, edx
xor eax, ebx
xor ecx, eax
movzx edx, word [ebp - 6]
rol ecx, 6
mov ebx, edx
imul ebx, ecx
mov ecx, eax
shr ecx, 1
sub ebx, ecx
xor edi, ebx
mov ecx, edx
xor ecx, edi
mov edx, edi
rol ecx, 1
mov ebx, dword [ebp - 0x20]
imul ebx, ecx
ror edx, 6
sub ebx, edx
xor eax, ebx
mov ecx, eax
movzx edx, word [ebp - 0xc]
not ecx
ror ecx, 2
add ecx, dword [ebp - 0x14]
imul ecx, edx
xor edi, ecx
mov ebx, edi
mov ecx, edi
sub ecx, dword [ebp - 8]
rol ecx, 3
imul edx, ecx
ror ebx, 0xd
add ebx, edx
xor eax, ebx
mov edx, eax
movzx ecx, word [ebp - 0xc]
mov ebx, ecx
movzx ecx, word [ebp - 6]
xor ebx, eax
imul ebx, ecx
ror edx, 0xc
add edx, ebx
xor edi, edx
movzx edx, word [ebp - 0xc]
xor edx, edi
mov ecx, dword [ebp - 0x20]
rol edx, 6
imul ecx, edx
mov edx, edi
shr edx, 3
add ecx, edx
xor eax, ecx
mov ecx, dword [ebp - 8]
mov ebx, eax
mov edx, dword [ebp - 0x14]
add ecx, eax
and dword [ebp - 0x14], 0
ror ecx, 0xe
imul edx, ecx
rol ebx, 0xe
movzx ecx, word [ebp - 0xc]
add ebx, edx
xor edi, ebx
mov edx, edi
xor edi, dword [ebp - 0x34]
sub edx, ecx
mov ebx, dword [ebp - 0x38]
xor edx, dword [ebp - 8]
mov ecx, edi
xor edx, dword [ebp - 0x30]
xor eax, edx
mov dword [ebp - 0x4c], eax
test ebx, ebx
jle 0x12ef581
cmp dword [ebp - 0x14], 4
jge 0x12ef568
rol dword [ebp - 0x4c], 8
mov ebx, dword [ebp - 0x28]
mov dl, byte [ebp - 0x4c]
inc dword [ebp - 0x28]
xor byte [ebp - 0xd], dl
mov byte [ebx], dl
jmp 0x12ef576
mov edx, dword [ebp - 0x28]
inc dword [ebp - 0x28]
rol ecx, 8
xor byte [ebp - 0xd], cl
mov byte [edx], cl
inc dword [ebp - 0x14]
mov ebx, dword [ebp - 0x38]
cmp dword [ebp - 0x14], ebx
jl 0x12ef54e
add ebx, 0xfffffffc
test ebx, ebx
jle 0x12ef598
push 4
pop ecx
sub ecx, ebx
shl ecx, 3
shr edi, cl
shl edi, cl
mov edx, edi
jmp 0x12ef5ba
xor edx, edx
test ebx, ebx
jge 0x12ef5ba
neg ebx
shl ebx, 3
mov ecx, ebx
shr eax, cl
shl eax, cl
jmp 0x12ef5ba
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [ebp - 0x30], eax
not eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov ecx, dword [ebp - 0x44]
shr ecx, 3
test ecx, ecx
jbe 0x12ef787
movzx edi, word [ebp - 6]
mov dword [ebp - 0x20], edi
movzx edi, word [ebp - 0xa]
mov dword [ebp - 0x14], edi
movzx edi, word [ebp - 0xc]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x40], ecx
movzx ecx, byte [esi]
shl ecx, 8
movzx edi, byte [esi + 1]
or ecx, edi
movzx edi, byte [esi + 2]
movzx ebx, byte [esi + 5]
shl ecx, 8
or ecx, edi
shl ecx, 8
movzx edi, byte [esi + 3]
or ecx, edi
movzx edi, byte [esi + 4]
shl edi, 8
or edi, ebx
movzx ebx, byte [esi + 6]
shl edi, 8
or edi, ebx
xor eax, ecx
movzx ebx, byte [esi + 7]
shl edi, 8
or edi, ebx
mov ebx, eax
mov dword [ebp - 0x4c], ecx
movzx ecx, word [ebp - 8]
sub ebx, ecx
imul ebx, dword [ebp - 0x20]
mov ecx, eax
shr ecx, 0xa
sub ebx, ecx
movzx ecx, word [ebp - 8]
xor ebx, edi
xor edx, ebx
mov ebx, dword [ebp - 0x38]
xor ebx, edx
imul ebx, ecx
mov ecx, dword [ebp - 0x14]
add esi, 8
mov dword [ebp - 0x50], edi
mov edi, edx
ror edi, 7
sub ebx, edi
xor eax, ebx
mov edi, eax
sub edi, ecx
sub edi, dword [ebp - 8]
xor edx, edi
xor ecx, edx
rol ecx, 2
movzx edi, word [ebp - 0xc]
mov ebx, edx
imul edi, ecx
mov ecx, dword [ebp - 0xc]
ror ebx, 6
xor ebx, edi
xor eax, ebx
mov edi, dword [ebp - 0x20]
xor ecx, eax
rol ecx, 6
imul edi, ecx
mov ecx, eax
shr ecx, 1
sub edi, ecx
xor edx, edi
mov ebx, edx
movzx edi, word [ebp - 8]
mov ecx, dword [ebp - 0x20]
xor ecx, edx
rol ecx, 1
imul edi, ecx
ror ebx, 6
sub edi, ebx
xor eax, edi
movzx edi, word [ebp - 0xc]
mov ecx, eax
not ecx
ror ecx, 2
add ecx, dword [ebp - 0x14]
imul ecx, edi
xor edx, ecx
mov ecx, edx
sub ecx, dword [ebp - 8]
mov ebx, edx
rol ecx, 3
imul edi, ecx
ror ebx, 0xd
movzx ecx, word [ebp - 0xc]
add ebx, edi
xor eax, ebx
mov ebx, dword [ebp - 8]
xor ecx, eax
mov edi, eax
imul ecx, dword [ebp - 0x20]
ror edi, 0xc
add edi, ecx
movzx ecx, word [ebp - 0xc]
xor edx, edi
movzx edi, bx
xor ecx, edx
rol ecx, 6
imul edi, ecx
mov ecx, edx
shr ecx, 3
add edi, ecx
xor eax, edi
mov edi, eax
lea ecx, [ebx + eax]
mov ebx, dword [ebp - 0x14]
ror ecx, 0xe
imul ebx, ecx
rol edi, 0xe
add edi, ebx
xor edx, edi
movzx ecx, word [ebp - 0xc]
mov edi, edx
xor edx, dword [ebp - 0x34]
sub edi, ecx
xor edi, dword [ebp - 8]
mov dword [ebp - 0x38], ecx
xor edi, dword [ebp - 0x30]
mov cl, byte [ebp - 0xd]
xor eax, edi
mov edi, dword [ebp - 0x28]
mov byte [edi + 3], al
mov byte [edi + 7], dl
xor cl, al
xor cl, dl
ror eax, 8
mov byte [edi + 2], al
xor cl, al
ror edx, 8
xor cl, dl
ror eax, 8
xor cl, al
mov byte [edi + 6], dl
mov byte [edi + 1], al
ror edx, 8
xor cl, dl
ror eax, 8
mov byte [edi + 5], dl
ror edx, 8
mov bl, dl
xor bl, al
xor cl, bl
mov byte [ebp - 0xd], cl
mov ecx, dword [ebp - 0x4c]
mov byte [edi], al
mov byte [edi + 4], dl
add edi, 8
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x50]
dec dword [ebp - 0x40]
mov dword [ebp - 0x34], ecx
ror eax, 8
ror edx, 8
mov dword [ebp - 0x28], edi
jne 0x12ef5e0
mov eax, dword [ebp - 0x3c]
mov al, byte [eax + 8]
xor al, byte [ebp - 0xd]
je 0x12ef81d
call fcn.010bfbea
mov edx, 0xfffff000
mov edi, eax
mov eax, dword [ebp - 0x68]
lea ecx, [eax + 0xc]
mov dword [eax + 8], 0x12e07d9
and ecx, 0xfffffffc
lea esi, [ecx + 0xfff]
and edi, edx
and esi, edx
xor eax, eax
mov edx, 0xffff
mov ebx, dword [0x138b4cc]
imul ebx, ebx, 0x343fd
add ebx, 0x269ec3
mov dword [0x138b4cc], ebx
shr ebx, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, ebx
test edx, edx
jne 0x12ef7c3
mov ebx, 0xffff
div ebx
mov dword [ebp - 0x8c], edi
inc edx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x50], 0
jmp 0x12ef80f
mov eax, dword [ebp - 0x50]
mov dword [ecx], eax
add ecx, 4
cmp ecx, esi
jb 0x12ef807
mov eax, 0x12e07d9
jmp 0x12ef8ee
mov eax, dword [ebp - 0x48]
mov ecx, 0x1000000
mov edx, dword [0x102c94c]
sub eax, dword [ebp - 0x2c]
sub ecx, edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
jne 0x12ef840
test eax, eax
je 0x12ef8e1
mov eax, dword [ebp - 0x44]
mov ecx, dword [0x1069ab8]
mov esi, dword [ebp - 0x2c]
sub esi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x24]
add eax, ebx
xor edi, edi
dec ecx
mov dword [ebp - 0x50], eax
js 0x12ef883
lea eax, [edi + ecx]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x1069abc]
and edx, 0xfffffff
cmp ebx, edx
jae 0x12ef87a
lea ecx, [eax - 1]
jmp 0x12ef87f
jbe 0x12ef887
lea edi, [eax + 1]
cmp ecx, edi
jge 0x12ef85c
mov ebx, edi
jmp 0x12ef8d9
mov ebx, eax
jmp 0x12ef8d9
mov eax, dword [ebx*4 + 0x1069abc]
mov ecx, eax
and ecx, 0xfffffff
cmp ecx, dword [ebp - 0x50]
jae 0x12ef8e1
lea edi, [ecx + esi + 0x1000000]
mov ecx, eax
shl ecx, 2
sar ecx, 0x1e
sar eax, 0x1e
and ecx, 3
and eax, 3
xor edx, edx
dec ecx
je 0x12ef8cc
dec ecx
je 0x12ef8c7
dec ecx
jne 0x12ef8d2
mov edx, dword [ebp - 0x3c]
jmp 0x12ef8d2
mov edx, dword [ebp - 0x40]
jmp 0x12ef8d2
mov edx, dword [ebp - 0x3c]
sub edx, dword [ebp - 0x40]
dec eax
dec eax
jne 0x12ef8d8
add dword [edi], edx
inc ebx
cmp ebx, dword [0x1069ab8]
jb 0x12ef88b
mov eax, dword [0x10fb370]
mov eax, 0xf6d507d2
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x68]
mov dword [ecx + 8], eax
mov esi, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x88]
mov edi, dword [ebp - 0x7c]
mov esp, ebp
pop ebp
popfd
ret