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

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x60], ecx
lea eax, [ebp + 4]
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x6c], edi
mov esi, dword [0x1005bf8]
mov edi, dword [eax + 4]
sub eax, 4
mov dword [ebp - 0x20], eax
mov eax, dword [edi]
shr eax, 4
lea ecx, [esi + eax - 1]
mov eax, ecx
xor edx, edx
div esi
sub ecx, edx
mov eax, dword [0x1005bf8]
mov dword [ebp - 0x14], ecx
mov eax, dword [0x1040344]
mov dword [ebp - 0x18], eax
mov eax, dword [0x1005bf8]
mov eax, dword [0x1040344]
test eax, eax
je 0x100b490
mov eax, dword [0x1040344]
xor esi, esi
dec eax
lea ecx, [eax + 1]
xor eax, eax
test ecx, ecx
mov edx, ecx
je 0x100b445
mov ebx, dword [0x104c148]
imul ebx, ebx, 0x343fd
add ebx, 0x269ec3
mov dword [0x104c148], ebx
shr ebx, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, ebx
test edx, edx
jne 0x100b41e
xor edx, edx
div ecx
cmp dword [ebp - 0x18], 0
jbe 0x100b482
mov ecx, 0xffff2e5b
inc esi
lea ebx, [edx*4 + 0x104d53c]
mov eax, 0xd1a4
lock cmpxchg dword [ebx], ecx
cmp eax, 0xd1a4
je 0x100b61d
lea eax, [edx + 1]
xor edx, edx
mov ecx, dword [0x1040344]
div ecx
cmp esi, dword [ebp - 0x18]
jb 0x100b44f
and dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x100b513
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov ebx, eax
push 0x40
inc esi
push 0x1000
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x100b633
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x11
jb 0x100b49a
and dword [ebp - 8], 0
cmp dword [ebp - 8], 0x10000
jb 0x100b4d7
test dword [ebp - 8], 3
je 0x100b4f1
cmp dword [ebp - 8], 0
je 0x100b4ed
push 0x8000
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
and dword [ebp - 8], 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 8], 0
je 0x100b3f1
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x100b513
mov byte [eax], 0
inc eax
dec ecx
jne 0x100b50c
mov eax, 0x8a7fd456
mov eax, dword [edi]
mov ecx, eax
shr ecx, 1
shr eax, 4
and ecx, 7
lea ebx, [ecx + edi + 8]
mov edi, eax
lea esi, [edi + ebx]
mov eax, dword [0x1005bf8]
sub eax, edi
mov dword [ebp - 0xc], ebx
lea ecx, [eax + 1]
sub dword [ebp - 0xc], 0x1000000
mov dword [ebp - 0x18], ebx
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x14], ecx
je 0x100b57d
mov edx, dword [0x104c148]
shr dword [ebp - 0x14], 0x10
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov dword [0x104c148], edx
shr edx, 0x10
shl eax, 0x10
or eax, edx
cmp dword [ebp - 0x14], 0
jne 0x100b553
xor edx, edx
div ecx
mov eax, dword [ebp - 8]
push edi
push dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, 0x71e5050e
test edi, edi
mov eax, dword [esi]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 4]
pop ecx
pop ecx
mov dword [ebp - 0x44], eax
mov byte [ebp - 1], 0
jbe 0x100ba38
lea esi, [ebp - 0x48]
mov eax, 0xa29b9be8
mov eax, 0xfffffff
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x48]
and esi, eax
mov ecx, dword [0x1033b04]
and edi, eax
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov eax, 0x1000000
mov dword [ebp - 0x3c], ebx
add esi, eax
sub eax, ecx
mov dword [ebp - 0x24], eax
jne 0x100b63b
cmp edi, ebx
jbe 0x100b802
mov ecx, 0x54594da6
mov edx, ecx
movzx eax, byte [ebx + esi]
add eax, ecx
add dword [ebp - 0x40], eax
add eax, dword [ebp - 0x3c]
mul edx
add eax, edx
mov edx, eax
imul edx, edx, 0xa77f
rol edx, 6
ror eax, 6
xor edx, eax
add dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
inc ebx
cmp ebx, edi
jb 0x100b5eb
jmp 0x100b802
mov eax, dword [0x1005bf8]
imul eax, edx
lea eax, [eax + 0x1043008]
mov dword [ebp - 8], eax
jmp 0x100b486
mov dword [ebp - 8], eax
jmp 0x100b4c5
mov ecx, esi
mov edx, dword [0x100003c]
lea eax, [edi + esi]
lea edx, [edx + 0x10000a0]
mov ebx, 0x1000000
mov dword [ebp - 0x2c], eax
mov eax, dword [edx]
add eax, ebx
sub ecx, ebx
mov ebx, dword [edx + 4]
mov edx, ecx
and edx, 0xfffff000
mov dword [ebp - 0x14], edx
mov edx, ecx
sub edx, dword [ebp - 0x14]
add ecx, edi
mov edi, ecx
and edi, 0xfffff000
sub ecx, edi
add ebx, eax
mov dword [ebp - 0x5c], edi
cmp eax, ebx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ebx
mov edi, eax
je 0x100b699
mov eax, dword [ebp - 0x14]
cmp dword [edi], eax
jae 0x100b699
add edi, dword [edi + 4]
cmp edi, dword [ebp - 0x54]
jne 0x100b68a
and dword [ebp - 0x4c], 0
cmp edi, dword [ebp - 0x54]
je 0x100b6cd
mov eax, dword [ebp - 0x14]
cmp dword [edi], eax
jne 0x100b6cd
mov ecx, dword [edi + 4]
sub ecx, 8
shr ecx, 1
je 0x100b6cd
lea eax, [edi + 8]
movzx ebx, word [eax]
and ebx, 0xfff
cmp ebx, edx
jae 0x100b6cd
inc dword [ebp - 0x4c]
inc eax
inc eax
cmp dword [ebp - 0x4c], ecx
jne 0x100b6b6
mov ecx, 0x54594da6
mov edx, dword [ebp - 0x5c]
cmp edi, dword [ebp - 0x54]
je 0x100b7cc
cmp dword [edi], edx
ja 0x100b7cc
mov eax, dword [edi + 4]
lea ebx, [eax - 8]
shr ebx, 1
cmp dword [ebp - 0x4c], ebx
jne 0x100b70c
add edi, eax
cmp edi, dword [ebp - 0x54]
je 0x100b7cc
cmp dword [edi], edx
ja 0x100b7cc
and dword [ebp - 0x4c], 0
jmp 0x100b6e6
cmp dword [edi], edx
jne 0x100b726
mov eax, dword [ebp - 0x4c]
movzx eax, word [edi + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x58]
jae 0x100b7cc
mov eax, dword [ebp - 0x4c]
inc dword [ebp - 0x4c]
mov ebx, 0xf000
test word [edi + eax*2 + 8], bx
je 0x100b6d5
movzx eax, word [edi + eax*2 + 8]
mov edx, dword [edi]
and eax, 0xfff
lea eax, [eax + edx + 0x1000000]
xor ebx, ebx
mov dword [ebp - 0x14], eax
sub dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
je 0x100b788
mov edx, ecx
movzx eax, byte [ebx + esi]
add eax, ecx
add dword [ebp - 0x40], eax
add eax, dword [ebp - 0x3c]
mul edx
add eax, edx
mov edx, eax
imul edx, edx, 0xa77f
rol edx, 6
ror eax, 6
xor edx, eax
mov eax, edx
add dword [ebp - 0x40], eax
inc ebx
mov dword [ebp - 0x3c], edx
cmp ebx, dword [ebp - 0x14]
jb 0x100b758
mov esi, dword [ebp - 8]
mov eax, dword [esi]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
xor ebx, ebx
movzx eax, byte [ebp + ebx - 0x28]
mov edx, ecx
add eax, ecx
add dword [ebp - 0x40], eax
add eax, dword [ebp - 0x3c]
mul edx
add eax, edx
mov edx, eax
imul edx, edx, 0xa77f
rol edx, 6
ror eax, 6
xor edx, eax
add dword [ebp - 0x40], edx
inc ebx
mov dword [ebp - 0x3c], edx
cmp ebx, 4
jb 0x100b795
add esi, 4
jmp 0x100b6d2
mov ebx, dword [ebp - 0x2c]
xor edi, edi
sub ebx, esi
je 0x100b802
movzx eax, byte [edi + esi]
add eax, ecx
mov edx, ecx
add dword [ebp - 0x40], eax
add eax, dword [ebp - 0x3c]
mul edx
add eax, edx
mov edx, eax
imul edx, edx, 0xa77f
rol edx, 6
ror eax, 6
xor edx, eax
add dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
inc edi
cmp edi, ebx
jb 0x100b7d5
xor eax, eax
mov ecx, eax
and ecx, 7
mov cl, byte [ebp + ecx - 0x40]
mov byte [ebp + eax - 0x38], cl
inc eax
cmp eax, 6
jb 0x100b804
mov eax, 0xa3efe014
mov esi, 0x100
mov eax, dword [ebp - 0x1c]
or byte [ebp - 0x38], 1
or byte [ebp - 0x36], 1
or byte [ebp - 0x34], 1
or byte [ebp - 0x33], 1
dec eax
mov dword [ebp - 0x14], eax
je 0x100b9ac
mov ecx, dword [ebp - 0x18]
add eax, ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
sub eax, ecx
mov dword [ebp - 0x2c], eax
test byte [ebp - 0x14], 1
je 0x100b8f7
mov edx, dword [ebp - 8]
movzx edi, byte [ebp - 0x35]
mov al, byte [edx]
mov cl, al
xor cl, byte [ebp - 0x35]
and cl, 1
movzx eax, al
mov byte [ebp - 2], cl
je 0x100b887
mov ebx, edi
shr ebx, 1
movzx ecx, byte [ebp - 0x36]
shr ecx, 1
xor ecx, ebx
mov ebx, eax
xor ebx, esi
sar ebx, 1
xor ecx, ebx
jmp 0x100b88d
mov ecx, eax
xor ecx, edi
shr ecx, 1
movzx edx, byte [edx - 1]
mov ebx, edx
xor ebx, ecx
test bl, 1
je 0x100b8ce
cmp byte [ebp - 2], 0
je 0x100b8b2
movzx ecx, byte [ebp - 0x36]
shr ecx, 1
shr edi, 1
xor eax, esi
xor ecx, edi
sar eax, 1
xor ecx, eax
jmp 0x100b8b8
xor eax, edi
shr eax, 1
mov ecx, eax
movzx eax, byte [ebp - 0x33]
shr eax, 1
xor edx, ecx
xor eax, 0x80
sar edx, 1
xor eax, edx
jmp 0x100b990
cmp byte [ebp - 2], 0
je 0x100b8e6
movzx ecx, byte [ebp - 0x36]
shr ecx, 1
shr edi, 1
xor eax, esi
xor ecx, edi
sar eax, 1
xor ecx, eax
jmp 0x100b8ec
xor eax, edi
shr eax, 1
mov ecx, eax
xor edx, ecx
sar edx, 1
mov eax, edx
jmp 0x100b990
mov eax, dword [ebp - 8]
mov cl, byte [eax]
mov al, cl
movzx ecx, cl
xor al, byte [ebp - 0x37]
and al, 1
mov byte [ebp - 2], al
movzx eax, byte [ebp - 0x37]
je 0x100b925
mov edx, eax
movzx edi, byte [ebp - 0x38]
shr edx, 1
shr edi, 1
xor edi, edx
mov edx, ecx
xor edx, esi
sar edx, 1
xor edi, edx
jmp 0x100b92b
mov edi, eax
xor edi, ecx
shr edi, 1
mov edx, dword [ebp - 8]
movzx ebx, byte [edx - 1]
mov edx, ebx
xor edx, edi
test dl, 1
je 0x100b96c
cmp byte [ebp - 2], 0
je 0x100b953
movzx edx, byte [ebp - 0x38]
shr edx, 1
shr eax, 1
xor ecx, esi
xor edx, eax
sar ecx, 1
xor edx, ecx
jmp 0x100b959
xor eax, ecx
shr eax, 1
mov edx, eax
movzx eax, byte [ebp - 0x34]
shr eax, 1
xor ebx, edx
xor eax, 0x80
sar ebx, 1
xor eax, ebx
jmp 0x100b990
cmp byte [ebp - 2], 0
je 0x100b984
movzx edx, byte [ebp - 0x38]
shr edx, 1
shr eax, 1
xor ecx, esi
xor edx, eax
sar ecx, 1
xor edx, ecx
jmp 0x100b98a
xor eax, ecx
shr eax, 1
mov edx, eax
xor ebx, edx
sar ebx, 1
mov eax, ebx
xor byte [ebp - 1], al
mov edx, dword [ebp - 8]
dec dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
dec dword [ebp - 8]
cmp dword [ebp - 0x14], 0
mov byte [ecx + edx], al
ja 0x100b84e
mov eax, dword [ebp - 0x18]
mov cl, byte [eax]
mov bl, cl
movzx ecx, cl
movzx eax, byte [ebp - 0x37]
xor bl, byte [ebp - 0x37]
and bl, 1
je 0x100b9d8
mov edi, eax
movzx edx, byte [ebp - 0x38]
shr edi, 1
shr edx, 1
xor edx, edi
mov edi, ecx
xor edi, esi
sar edi, 1
xor edx, edi
jmp 0x100b9de
mov edx, eax
xor edx, ecx
shr edx, 1
test dl, 1
je 0x100ba09
test bl, bl
je 0x100b9f9
movzx edi, byte [ebp - 0x38]
shr edi, 1
shr eax, 1
xor ecx, esi
xor edi, eax
sar ecx, 1
xor edi, ecx
jmp 0x100b9ff
xor eax, ecx
shr eax, 1
mov edi, eax
movzx edx, byte [ebp - 0x34]
xor edx, edi
xor edx, esi
jmp 0x100ba25
test bl, bl
je 0x100ba1f
movzx edx, byte [ebp - 0x38]
shr edx, 1
shr eax, 1
xor ecx, esi
xor edx, eax
sar ecx, 1
xor edx, ecx
jmp 0x100ba25
xor eax, ecx
shr eax, 1
mov edx, eax
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
sar edx, 1
mov eax, dword [ebp - 0x10]
xor byte [ebp - 1], dl
mov byte [eax], dl
mov al, byte [esi + 8]
xor al, byte [ebp - 1]
je 0x100bac9
call fcn.0100ddeb
mov edx, 0xfffff000
mov edi, eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 8], 0x1040348
lea ecx, [eax + 0xc]
and ecx, 0xfffffffc
lea esi, [ecx + 0xfff]
and edi, edx
and esi, edx
xor eax, eax
mov edx, 0xffff
mov ebx, dword [0x104c148]
imul ebx, ebx, 0x343fd
add ebx, 0x269ec3
mov dword [0x104c148], ebx
shr ebx, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, ebx
test edx, edx
jne 0x100ba71
mov ebx, 0xffff
div ebx
inc edx
cmp ecx, esi
mov dword [ebp - 0x70], edi
mov eax, ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x30], 0
jae 0x100babf
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
add eax, 4
cmp eax, esi
jb 0x100bab3
mov eax, 0x1040348
jmp 0x100bb96
mov ecx, 0x1000000
mov eax, ebx
sub eax, dword [ebp - 0x10]
mov edx, dword [0x1033b04]
sub ecx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
jne 0x100baeb
test eax, eax
je 0x100bb89
mov ecx, dword [0x101a560]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
sub esi, ebx
add eax, edi
mov dword [ebp - 0x30], eax
xor ebx, ebx
dec ecx
js 0x100bb2b
lea eax, [ecx + ebx]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x101a564]
and edx, 0xfffffff
cmp dword [ebp - 0xc], edx
jae 0x100bb22
lea ecx, [eax - 1]
jmp 0x100bb27
jbe 0x100bb2f
lea ebx, [eax + 1]
cmp ecx, ebx
jge 0x100bb03
mov edi, ebx
jmp 0x100bb81
mov edi, eax
jmp 0x100bb81
mov eax, dword [edi*4 + 0x101a564]
mov ecx, eax
and ecx, 0xfffffff
cmp ecx, dword [ebp - 0x30]
jae 0x100bb89
lea edx, [ecx + esi + 0x1000000]
mov ecx, eax
shl ecx, 2
sar ecx, 0x1e
sar eax, 0x1e
and ecx, 3
and eax, 3
xor ebx, ebx
dec ecx
je 0x100bb74
dec ecx
je 0x100bb6f
dec ecx
jne 0x100bb7a
mov ebx, dword [ebp - 0x1c]
jmp 0x100bb7a
mov ebx, dword [ebp - 0x18]
jmp 0x100bb7a
mov ebx, dword [ebp - 0x1c]
sub ebx, dword [ebp - 0x18]
dec eax
dec eax
jne 0x100bb80
add dword [edx], ebx
inc edi
cmp edi, dword [0x101a560]
jb 0x100bb33
mov eax, dword [0x1005bf8]
mov eax, 0x8b7bd2b3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x70]
mov esi, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x68]
mov esp, ebp
pop ebp
popfd
ret