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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64]
mov edx, dword [0x100080fc]
call fcn.10003e7c
xor eax, eax
push ebp
push 0x10015f4d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x100b6648], 0
jne 0x10015f1c
xor eax, eax
mov dword [0x100b6658], eax
xor eax, eax
mov dword [0x100b665c], eax
cmp dword [0x100b6658], 0
je 0x10015a0d
cmp dword [0x100b665c], 0
je 0x10015a0d
push 0x100b6660
push 0
push 0x100156d0
push 0
call dword [0x100b6658]
test eax, eax
je 0x10015f15
xor eax, eax
mov dword [0x100b6660], eax
cmp dword [0x100b6654], 0
jne 0x10015a2e
xor edx, edx
mov eax, dword [0x100b5c50]
call fcn.1000ab3c
mov dword [0x100b6654], eax
cmp byte [0x100b664c], 0
jne 0x10015e89
mov byte [0x100b664c], 1
cmp byte [0x100b5c30], 0
jne 0x10015e89
lea edx, [ebp - 0xc]
mov eax, dword [0x100b5d74]
call fcn.10006ac4
lea eax, [ebp - 0x6c]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.10006670
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
mov edx, dword [ebp - 0xc]
call fcn.100036b4
mov eax, dword [ebp - 0x68]
call fcn.10003868
push eax
push 0xc
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x10015e89
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
setne byte [ebp - 1]
push 0
push 0
push 0
push 0xf001f
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov edi, eax
test edi, edi
je 0x10015e7f
mov ebx, 0x32
cmp byte [ebp - 1], 0
jne 0x10015afb
mov eax, dword [edi]
mov edx, dword [edi + 4]
push edx
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [esp + 4]
jne 0x10015aed
cmp eax, dword [esp]
pop edx
pop eax
je 0x10015afb
push 0x32
call sub.KERNEL32.dll_Sleep
dec ebx
jne 0x10015acf
cmp byte [ebp - 1], 0
jne 0x10015b16
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov ecx, dword [ebp - 0xc]
cmp edx, dword [ecx + 4]
jne 0x10015b10
cmp eax, dword [ecx]
je 0x10015e71
mov dl, 1
mov eax, dword [0x100b5c4c]
call fcn.1000ab3c
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x100b5cb0]
call fcn.1000aa30
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov dword [ebp - 0x20], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.10016dbc
test eax, eax
jne 0x10015b5d
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x18]
call fcn.1000a8e4
mov edx, dword [ebp - 0x60]
mov eax, 0xe
call fcn.10012620
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x44]
call fcn.100043b4
test eax, eax
jl 0x10015dde
inc eax
xor ebx, ebx
mov edx, ebx
shl edx, 3
sub edx, ebx
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + edx*4 + 0xc]
cmp edx, dword [ebp - 0x14]
jne 0x10015dd6
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x44]
cmp dword [edx + eax*4 + 0x14], 0
jne 0x10015bc8
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x44]
cmp dword [edx + eax*4 + 0x18], 0
je 0x10015dde
mov eax, dword [ebp - 8]
mov byte [eax], 0xff
mov eax, dword [ebp - 8]
mov byte [eax + 1], 0x25
mov eax, dword [ebp - 8]
add eax, 6
mov edx, dword [ebp - 8]
mov dword [edx + 2], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov dword [eax + 6], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov dword [eax + 0xa], edx
lea eax, [ebp - 0x24]
push eax
push 0x20
push 0xe
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 8]
mov dword [edi + 8], eax
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x44]
cmp byte [edx + eax*4 + 0x10], 0
je 0x10015cb9
lea eax, [ebp - 0x24]
push eax
push 0x40
push 8
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + eax*4 + 0x14]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10015dde
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 8]
sub ecx, dword [edx + eax*4 + 4]
sub ecx, 5
mov dword [ebp - 0x10], ecx
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x44]
mov edx, dword [edx + eax*4 + 0x14]
lea eax, [ebp - 0x10]
mov ecx, 4
call fcn.10011280
test al, al
jne 0x10015c8c
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + eax*4 + 0x14]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 8
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + eax*4 + 0x14]
push eax
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 8]
mov dword [0x100b6650], eax
xor esi, esi
jmp 0x10015dde
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x44]
cmp dword [edx + eax*4 + 0x14], 0
je 0x10015d51
lea eax, [ebp - 0x24]
push eax
push 0x40
push 8
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + eax*4 + 0x14]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10015dde
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x44]
mov edx, dword [edx + eax*4 + 0x14]
lea eax, [ebp - 8]
mov ecx, 4
call fcn.10011280
test al, al
jne 0x10015d24
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + eax*4 + 0x14]
mov edx, dword [ebp - 8]
mov dword [eax], edx
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 8
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + eax*4 + 0x14]
push eax
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 8]
mov dword [0x100b6650], eax
xor esi, esi
jmp 0x10015dde
lea eax, [ebp - 0x24]
push eax
push 0x40
push 8
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + eax*4 + 0x18]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10015dde
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebp - 0x10], eax
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x44]
mov edx, dword [edx + eax*4 + 0x18]
lea eax, [ebp - 0x10]
mov ecx, 4
call fcn.10011280
test al, al
jne 0x10015dac
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + eax*4 + 0x18]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 8
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + eax*4 + 0x18]
push eax
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 8]
mov dword [0x100b6650], eax
xor esi, esi
jmp 0x10015dde
inc ebx
dec eax
jne 0x10015b8b
cmp dword [ebp - 0x1c], 0
jne 0x10015de8
cmp dword [ebp - 0x20], 0
je 0x10015e41
lea eax, [ebp - 0x24]
push eax
push 0x40
push 8
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10015e41
lea eax, [ebp - 0x20]
mov ecx, 8
mov edx, dword [ebp - 0x18]
call fcn.10011280
test al, al
jne 0x10015e21
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
mov edx, 8
mov eax, dword [ebp - 0x18]
call fcn.10014560
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 8
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.dll_VirtualProtect
cmp dword [0x100b6650], 0
jne 0x10015e62
push edi
call sub.KERNEL32.dll_UnmapViewOfFile
push 0x8000
push 0
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_VirtualFree
jmp 0x10015e7f
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
mov dword [edi], edx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
jmp 0x10015e7f
mov eax, dword [edi + 8]
mov dword [0x100b6650], eax
push edi
call sub.KERNEL32.dll_UnmapViewOfFile
test esi, esi
je 0x10015e89
push esi
call sub.KERNEL32.dll_CloseHandle
cmp dword [0x100b6650], 0
je 0x10015eb7
push 0
push 0
mov eax, dword [0x100b6650]
push eax
push 0x100157c4
push 0x100b6640
push 0
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.10016008
jmp 0x10015ee6
push 0
push 0
mov dl, 1
mov eax, dword [0x100b5cb0]
call fcn.1000aa30
call fcn.100125b0
push eax
push 0x1001571c
push 0x100b663c
push 0
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.10016008
push 0
push 0
mov dl, 1
mov eax, dword [0x100b5c5c]
call fcn.1000ab3c
call fcn.100125b0
push eax
push 0x10015850
push 0x100b6644
push 0
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.10016008
mov byte [0x100b6648], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10015f54
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.10003438
lea eax, [ebp - 0x64]
mov edx, dword [0x100080fc]
call fcn.10003f40
lea eax, [ebp - 0xc]
call fcn.10003414
ret