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

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x90
mov dword [ebp - 0x90], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x80], edi
mov edi, dword [eax + 4]
mov esi, dword [0x1116588]
sub eax, 4
mov dword [ebp - 0x64], eax
mov eax, dword [edi]
shr eax, 3
and eax, 0xfffffff
lea ecx, [esi + eax - 1]
mov eax, ecx
xor edx, edx
div esi
sub ecx, edx
mov eax, dword [0x1116588]
mov dword [ebp - 0x28], ecx
mov eax, dword [0x1011bb0]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x1116588]
mov eax, dword [0x1011bb0]
test eax, eax
je 0x102e604
xor esi, esi
mov eax, dword [0x1011bb0]
dec eax
lea ecx, [eax + 1]
mov edx, ecx
xor eax, eax
test ecx, ecx
je 0x102e5c1
mov ebx, dword [0x12d47a4]
imul ebx, ebx, 0x343fd
add ebx, 0x269ec3
mov dword [0x12d47a4], ebx
shr ebx, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, ebx
test edx, edx
jne 0x102e59a
xor edx, edx
div ecx
cmp dword [ebp - 0x3c], 0
jbe 0x102e5fe
mov eax, 0xcb65
mov ecx, 0xffff349a
lea ebx, [edx*4 + 0x12d4c14]
inc esi
lock cmpxchg dword [ebx], ecx
cmp eax, 0xcb65
je 0x102e774
mov ecx, dword [0x1011bb0]
lea eax, [edx + 1]
xor edx, edx
div ecx
cmp esi, dword [ebp - 0x3c]
jb 0x102e5cb
xor esi, esi
test esi, esi
jne 0x102e67a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
xor esi, esi
push 0x40
inc esi
push 0x1000
push dword [ebp - 0x28]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x102e788
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x11
jb 0x102e60e
xor esi, esi
cmp dword [0x12ef80c], esi
ja 0x102e647
test esi, 3
je 0x102e65b
test esi, esi
je 0x102e659
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x102e571
mov ecx, dword [ebp - 0x28]
mov eax, esi
test ecx, ecx
je 0x102e67a
mov byte [eax], 0
inc eax
dec ecx
jne 0x102e673
mov eax, 0x66ab98d9
mov eax, dword [edi]
mov ecx, eax
mov ebx, 0x1000000
shr eax, 3
and eax, 0xfffffff
mov edx, eax
and ecx, 7
lea ecx, [ecx + edi + 8]
mov eax, dword [0x1116588]
sub eax, edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], ecx
sub dword [ebp - 0x30], ebx
mov dword [ebp - 0x4c], edx
lea edi, [edx + ecx]
mov dword [ebp - 0x48], edi
lea ecx, [eax + 1]
mov dword [ebp - 0x28], ecx
xor eax, eax
test ecx, ecx
je 0x102e6e8
mov edx, dword [0x12d47a4]
shr dword [ebp - 0x28], 0x10
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov dword [0x12d47a4], edx
shr edx, 0x10
shl eax, 0x10
or eax, edx
cmp dword [ebp - 0x28], 0
jne 0x102e6be
xor edx, edx
div ecx
add edx, esi
push edx
push dword [ebp - 0x4c]
mov dword [ebp - 0x28], edx
push dword [ebp - 0x30]
mov eax, 0x37ae895a
mov esi, dword [edi]
lea eax, [ebp - 0x78]
mov edi, dword [edi + 4]
push eax
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], edi
mov byte [ebp - 0xd], 0
mov eax, 0x7bd960fc
mov eax, 0xfffffff
mov ecx, dword [0x11e47bc]
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
and esi, eax
and edi, eax
mov eax, ebx
add esp, 0x10
add esi, ebx
sub eax, ecx
mov dword [ebp - 0x2c], eax
jne 0x102e78f
xor ebx, ebx
test edi, edi
jbe 0x102e93c
mov ecx, 0x3e98a2e5
mov edx, ecx
movzx eax, byte [ebx + esi]
add eax, ecx
add dword [ebp - 0x20], eax
add eax, dword [ebp - 0x1c]
mul edx
add eax, edx
imul eax, eax, 0x3e98a2e5
ror eax, 0x12
add dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
inc ebx
cmp ebx, edi
jb 0x102e749
jmp 0x102e93c
mov esi, dword [0x1116588]
imul esi, edx
lea esi, [esi + section..data]
jmp 0x102e600
mov esi, eax
jmp 0x102e637
mov ecx, esi
lea eax, [edi + esi]
mov ebx, 0x1000000
mov edx, dword [0x100003c]
lea edx, [edx + 0x10000a0]
mov dword [ebp - 0x38], eax
mov eax, dword [edx]
add eax, ebx
sub ecx, ebx
mov edx, dword [edx + 4]
mov ebx, ecx
mov dword [ebp - 0x24], edx
mov edx, ecx
add ecx, edi
mov edi, ecx
and edi, 0xfffff000
sub ecx, edi
mov dword [ebp - 0x5c], ecx
and edx, 0xfffff000
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x60], edi
mov edi, eax
add ecx, eax
mov dword [ebp - 0x58], ecx
sub ebx, edx
cmp eax, ecx
je 0x102e7ec
cmp dword [edi], edx
jae 0x102e7ec
add edi, dword [edi + 4]
cmp edi, dword [ebp - 0x58]
jne 0x102e7e0
and dword [ebp - 0x50], 0
cmp edi, dword [ebp - 0x58]
je 0x102e81d
cmp dword [edi], edx
jne 0x102e81d
mov ecx, dword [edi + 4]
sub ecx, 8
shr ecx, 1
je 0x102e81d
lea eax, [edi + 8]
movzx edx, word [eax]
and edx, 0xfff
cmp edx, ebx
jae 0x102e81d
inc dword [ebp - 0x50]
inc eax
inc eax
cmp dword [ebp - 0x50], ecx
jne 0x102e806
mov ecx, 0x3e98a2e5
mov eax, dword [ebp - 0x60]
cmp edi, dword [ebp - 0x58]
je 0x102e90d
cmp dword [edi], eax
ja 0x102e90d
mov edx, dword [edi + 4]
lea ebx, [edx - 8]
shr ebx, 1
cmp dword [ebp - 0x50], ebx
jne 0x102e85c
add edi, edx
cmp edi, dword [ebp - 0x58]
je 0x102e90d
cmp dword [edi], eax
ja 0x102e90d
and dword [ebp - 0x50], 0
jmp 0x102e836
cmp dword [edi], eax
jne 0x102e877
mov edx, dword [ebp - 0x50]
movzx edx, word [edi + edx*2 + 8]
and edx, 0xfff
cmp edx, dword [ebp - 0x5c]
jae 0x102e90d
mov ebx, 0xf000
mov edx, dword [ebp - 0x50]
inc dword [ebp - 0x50]
test word [edi + edx*2 + 8], bx
je 0x102e825
movzx eax, word [edi + edx*2 + 8]
and eax, 0xfff
xor ebx, ebx
mov edx, dword [edi]
lea eax, [eax + edx + 0x1000000]
mov dword [ebp - 0x18], eax
sub dword [ebp - 0x18], esi
mov dword [ebp - 0x24], eax
je 0x102e8d0
movzx eax, byte [ebx + esi]
mov edx, ecx
add eax, ecx
add dword [ebp - 0x20], eax
add eax, dword [ebp - 0x1c]
mul edx
add eax, edx
imul eax, eax, 0x3e98a2e5
ror eax, 0x12
add dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
inc ebx
cmp ebx, dword [ebp - 0x18]
jb 0x102e8a9
mov esi, dword [ebp - 0x24]
mov eax, dword [esi]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x68], eax
xor ebx, ebx
movzx eax, byte [ebp + ebx - 0x68]
add eax, ecx
add dword [ebp - 0x20], eax
add eax, dword [ebp - 0x1c]
mov edx, ecx
mul edx
add eax, edx
imul eax, eax, 0x3e98a2e5
ror eax, 0x12
add dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
inc ebx
cmp ebx, 4
jb 0x102e8dd
add esi, 4
jmp 0x102e822
mov ebx, dword [ebp - 0x38]
xor edi, edi
sub ebx, esi
je 0x102e93c
mov edx, ecx
movzx eax, byte [esi + edi]
add eax, ecx
add dword [ebp - 0x20], eax
add eax, dword [ebp - 0x1c]
mul edx
add eax, edx
imul eax, eax, 0x3e98a2e5
ror eax, 0x12
add dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
inc edi
cmp edi, ebx
jb 0x102e916
xor eax, eax
mov ecx, eax
and ecx, 7
mov cl, byte [ebp + ecx - 0x20]
mov byte [ebp + eax - 0xc], cl
inc eax
cmp eax, 8
jb 0x102e93e
mov eax, 0x65c02976
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x4c]
and eax, 7
mov dword [ebp - 0x24], eax
je 0x102eb1a
xor ecx, ecx
cmp eax, ecx
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x18], ecx
not edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x14], ecx
jle 0x102e9ab
push 0x38
pop edx
movzx ebx, byte [esi]
cmp dword [ebp - 0x14], 4
jge 0x102e998
lea ecx, [edx - 0x20]
shl ebx, cl
or dword [ebp - 0x2c], ebx
jmp 0x102e99f
mov ecx, edx
shl ebx, cl
or dword [ebp - 0x18], ebx
inc esi
inc dword [ebp - 0x14]
sub edx, 8
cmp dword [ebp - 0x14], eax
jl 0x102e985
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov edx, eax
xor ecx, dword [ebp - 0x30]
sub edx, ecx
movzx ecx, word [ebp - 8]
xor eax, dword [ebp - 8]
xor edi, edx
xor eax, edi
xor eax, dword [ebp - 0x30]
movzx edx, word [ebp - 0xa]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edx
mov ebx, eax
xor ecx, eax
imul ecx, edx
ror ebx, 5
movzx edx, word [ebp - 0xc]
sub ecx, ebx
xor edi, ecx
mov ecx, edi
mov ebx, edi
sub ecx, dword [ebp - 8]
rol ecx, 1
imul edx, ecx
mov ecx, dword [ebp - 0xc]
ror ebx, 3
sub edx, ebx
xor eax, edx
movzx edx, word [ebp - 6]
mov ebx, eax
mov dword [ebp - 0x14], edx
add ecx, eax
rol ecx, 5
imul edx, ecx
rol ebx, 0xa
sub edx, ebx
xor edi, edx
mov ebx, dword [ebp - 0x44]
mov ecx, edi
ror ecx, 0xb
xor ecx, dword [ebp - 0x40]
imul ecx, dword [ebp - 0x14]
xor eax, ecx
mov edx, eax
mov ecx, dword [ebp - 8]
sub ecx, eax
rol ecx, 0xe
imul ebx, ecx
ror edx, 0xa
mov ecx, dword [ebp - 8]
add edx, ebx
xor edi, edx
add ecx, edi
rol ecx, 0xe
mov ebx, edi
movzx edx, word [ebp - 0xc]
imul edx, ecx
movzx ecx, word [ebp - 0xc]
ror ebx, 6
add ebx, edx
xor eax, ebx
xor ecx, eax
mov ebx, eax
mov edx, dword [ebp - 0x14]
rol ecx, 5
imul edx, ecx
ror ebx, 5
xor ebx, edx
xor edi, ebx
mov ebx, dword [ebp - 0x40]
mov ecx, edi
sub ecx, dword [ebp - 0xc]
rol ecx, 3
imul ebx, ecx
mov ecx, dword [ebp - 0x40]
mov edx, edi
ror edx, 4
xor edx, ebx
mov ebx, dword [ebp - 0x44]
xor eax, edx
mov edx, ecx
xor edx, eax
rol edx, 2
imul ebx, edx
and dword [ebp - 0x14], 0
mov edx, eax
shr edx, 0xf
add ebx, edx
xor edi, ebx
xor ecx, edi
movzx edx, word [ebp - 0xc]
mov ebx, dword [ebp - 0x24]
imul ecx, edx
mov edx, edi
xor edi, dword [ebp - 0x18]
shr edx, 5
add ecx, edx
xor ecx, dword [ebp - 0x2c]
xor eax, ecx
mov dword [ebp - 0x38], eax
mov ecx, edi
test ebx, ebx
jle 0x102eaf0
cmp dword [ebp - 0x14], 4
jge 0x102ead7
rol dword [ebp - 0x38], 8
mov ebx, dword [ebp - 0x34]
mov dl, byte [ebp - 0x38]
inc dword [ebp - 0x34]
xor byte [ebp - 0xd], dl
mov byte [ebx], dl
jmp 0x102eae5
mov edx, dword [ebp - 0x34]
inc dword [ebp - 0x34]
rol ecx, 8
xor byte [ebp - 0xd], cl
mov byte [edx], cl
inc dword [ebp - 0x14]
mov ebx, dword [ebp - 0x24]
cmp dword [ebp - 0x14], ebx
jl 0x102eabd
add ebx, 0xfffffffc
test ebx, ebx
jle 0x102eb07
push 4
pop ecx
sub ecx, ebx
shl ecx, 3
shr edi, cl
shl edi, cl
mov edx, edi
jmp 0x102eb29
xor edx, edx
test ebx, ebx
jge 0x102eb29
neg ebx
shl ebx, 3
mov ecx, ebx
shr eax, cl
shl eax, cl
jmp 0x102eb29
mov eax, dword [ebp - 0x30]
xor edx, edx
mov dword [ebp - 0x2c], eax
not eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov ecx, dword [ebp - 0x4c]
shr ecx, 3
test ecx, ecx
jbe 0x102ecff
mov edi, dword [ebp - 0xc]
xor edi, dword [ebp - 8]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x70], edi
movzx edi, word [ebp - 6]
mov dword [ebp - 0x14], edi
movzx edi, word [ebp - 0xa]
mov dword [ebp - 0x44], edi
movzx edi, word [ebp - 8]
mov dword [ebp - 0x40], edi
movzx edi, byte [esi + 1]
movzx ecx, byte [esi]
movzx ebx, byte [esi + 5]
shl ecx, 8
or ecx, edi
shl ecx, 8
movzx edi, byte [esi + 2]
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
shl edi, 8
movzx ebx, byte [esi + 6]
or edi, ebx
xor eax, ecx
movzx ebx, byte [esi + 7]
shl edi, 8
or edi, ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 8]
xor ecx, eax
sub ebx, ecx
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x6c], edi
xor ebx, edi
xor edx, ebx
xor ecx, edx
mov edi, dword [ebp - 0x40]
xor eax, ecx
xor edi, eax
imul edi, dword [ebp - 0x44]
mov ecx, eax
add esi, 8
ror ecx, 5
sub edi, ecx
xor edx, edi
mov ebx, edx
mov ecx, edx
movzx edi, word [ebp - 0xc]
sub ecx, dword [ebp - 8]
rol ecx, 1
imul edi, ecx
ror ebx, 3
mov ecx, dword [ebp - 0xc]
sub edi, ebx
xor eax, edi
mov ebx, dword [ebp - 0x14]
mov edi, eax
add ecx, eax
rol ecx, 5
imul ebx, ecx
movzx ecx, word [ebp - 8]
rol edi, 0xa
sub ebx, edi
xor edx, ebx
mov edi, edx
mov ebx, dword [ebp - 0x44]
ror edi, 0xb
xor edi, ecx
imul edi, dword [ebp - 0x14]
xor eax, edi
mov edi, eax
mov ecx, dword [ebp - 8]
sub ecx, eax
rol ecx, 0xe
imul ebx, ecx
ror edi, 0xa
mov ecx, dword [ebp - 8]
add edi, ebx
xor edx, edi
mov ebx, edx
add ecx, edx
movzx edi, word [ebp - 0xc]
rol ecx, 0xe
imul edi, ecx
ror ebx, 6
add ebx, edi
movzx ecx, word [ebp - 0xc]
xor eax, ebx
mov edi, eax
mov ebx, dword [ebp - 0x14]
xor ecx, eax
rol ecx, 5
imul ebx, ecx
ror edi, 5
xor edi, ebx
xor edx, edi
mov ecx, edx
mov ebx, edx
movzx edi, word [ebp - 8]
sub ecx, dword [ebp - 0xc]
rol ecx, 3
imul edi, ecx
ror ebx, 4
xor ebx, edi
movzx edi, word [ebp - 8]
mov ecx, edi
xor eax, ebx
mov ebx, dword [ebp - 0x44]
xor ecx, eax
rol ecx, 2
imul ebx, ecx
mov ecx, eax
shr ecx, 0xf
add ebx, ecx
movzx ecx, word [ebp - 0xc]
mov dword [ebp - 0x40], edi
xor edx, ebx
xor edi, edx
imul edi, ecx
mov ecx, edx
xor edx, dword [ebp - 0x18]
shr ecx, 5
add edi, ecx
xor edi, dword [ebp - 0x2c]
xor eax, edi
mov edi, dword [ebp - 0x34]
mov cl, byte [ebp - 0xd]
xor cl, al
mov byte [edi + 3], al
mov byte [edi + 7], dl
xor cl, dl
ror eax, 8
mov byte [edi + 2], al
xor cl, al
ror edx, 8
mov byte [edi + 6], dl
xor cl, dl
ror eax, 8
xor cl, al
ror edx, 8
xor cl, dl
mov byte [edi + 1], al
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 - 0x38]
mov byte [edi], al
mov byte [edi + 4], dl
add edi, 8
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x6c]
dec dword [ebp - 0x24]
mov dword [ebp - 0x18], ecx
ror eax, 8
ror edx, 8
mov dword [ebp - 0x34], edi
jne 0x102eb58
movzx ecx, byte [ebp - 0xd]
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax + 8]
sub ecx, eax
je 0x102ed96
call fcn.01244f80
mov edi, eax
mov eax, dword [ebp - 0x64]
mov dword [eax + 8], 0x10d8814
lea ecx, [eax + 0xc]
mov edx, 0xfffff000
and ecx, 0xfffffffc
and edi, edx
lea esi, [ecx + 0xfff]
and esi, edx
xor eax, eax
mov edx, 0xffff
mov ebx, dword [0x12d47a4]
imul ebx, ebx, 0x343fd
add ebx, 0x269ec3
mov dword [0x12d47a4], ebx
shr ebx, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, ebx
test edx, edx
jne 0x102ed3f
mov ebx, 0xffff
div ebx
mov dword [ebp - 0x84], edi
inc edx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x48], 0
jmp 0x102ed88
mov eax, dword [ebp - 0x48]
mov dword [ecx], eax
add ecx, 4
cmp ecx, esi
jb 0x102ed80
mov eax, 0x10d8814
jmp 0x102ee67
mov ecx, 0x1000000
mov eax, dword [ebp - 0x3c]
mov edx, dword [0x11e47bc]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
sub ecx, edx
mov dword [ebp - 0x24], ecx
jne 0x102edb9
test eax, eax
je 0x102ee5a
mov ecx, dword [0x11efd70]
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x4c]
sub esi, dword [ebp - 0x3c]
add eax, ebx
xor edi, edi
mov dword [ebp - 0x48], eax
dec ecx
js 0x102edfc
lea eax, [edi + ecx]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x11efd74]
and edx, 0xfffffff
cmp ebx, edx
jae 0x102edf3
lea ecx, [eax - 1]
jmp 0x102edf8
jbe 0x102ee00
lea edi, [eax + 1]
cmp ecx, edi
jge 0x102edd5
mov ebx, edi
jmp 0x102ee52
mov ebx, eax
jmp 0x102ee52
mov eax, dword [ebx*4 + 0x11efd74]
mov ecx, eax
and ecx, 0xfffffff
cmp ecx, dword [ebp - 0x48]
jae 0x102ee5a
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 0x102ee45
dec ecx
je 0x102ee40
dec ecx
jne 0x102ee4b
mov edx, dword [ebp - 0x24]
jmp 0x102ee4b
mov edx, dword [ebp - 0x18]
jmp 0x102ee4b
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x18]
dec eax
dec eax
jne 0x102ee51
add dword [edi], edx
inc ebx
cmp ebx, dword [0x11efd70]
jb 0x102ee04
mov eax, dword [0x1116588]
mov eax, 0x64db0497
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x64]
mov dword [ecx + 8], eax
mov esi, dword [ebp - 0x88]
mov ebx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x90]
mov edx, dword [ebp - 0x84]
mov edi, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
mov esp, ebp
pop ebp
popfd
ret