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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004a00b
mov eax, dword fs:[0]
push eax
mov eax, 0x100f8
call fcn.1001c920
mov eax, dword [0x1006b850]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10020], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x1001c], eax
mov eax, dword [ebp - 0x1001c]
mov dword [ebp - 0x100d0], eax
mov ecx, dword [ebp - 0x100d0]
mov edx, dword [ebp - 0x1001c]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x1009c], edx
mov eax, dword [ebp - 0x1009c]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0x100e4], ecx
mov edx, 8
shl edx, 1
mov eax, dword [ebp - 0x1009c]
mov ecx, dword [ebp - 0x1001c]
add ecx, dword [eax + edx + 0x78]
mov dword [ebp - 0x10038], ecx
mov edx, dword [ebp - 0x10038]
movzx eax, word [edx + 0xe]
mov ecx, dword [ebp - 0x10038]
movzx edx, word [ecx + 0xc]
add eax, edx
mov dword [ebp - 0x100e0], eax
mov dword [ebp - 0x1005c], 0
jmp 0x1001684b
mov eax, dword [ebp - 0x1005c]
add eax, 1
mov dword [ebp - 0x1005c], eax
mov ecx, dword [ebp - 0x1005c]
cmp ecx, dword [ebp - 0x100e0]
jge 0x10016aa7
mov edx, dword [ebp - 0x10038]
add edx, 0x10
mov dword [ebp - 0x1003c], edx
mov eax, dword [ebp - 0x1005c]
mov ecx, dword [ebp - 0x1003c]
lea edx, [ecx + eax*8]
mov dword [ebp - 0x1003c], edx
mov eax, dword [ebp - 0x1003c]
mov ecx, dword [eax]
and ecx, 0x7fffffff
mov dword [ebp - 0x10054], ecx
mov edx, dword [ebp - 0x1003c]
mov eax, dword [edx]
and eax, 0x80000000
jne 0x100168d8
cmp dword [ebp - 0x10054], 3
je 0x10016aa2
cmp dword [ebp - 0x10054], 0xe
je 0x10016aa2
cmp dword [ebp - 0x10054], 0x10
je 0x10016aa2
cmp dword [ebp - 0x10054], 0x18
je 0x10016aa2
mov ecx, 1
test ecx, ecx
je 0x10016aa2
mov edx, dword [ebp - 0x1003c]
mov eax, dword [edx + 4]
and eax, 0x7fffffff
mov dword [ebp - 0x1006c], eax
mov ecx, dword [ebp - 0x1006c]
add ecx, dword [ebp - 0x10038]
mov dword [ebp - 0x1006c], ecx
mov edx, dword [ebp - 0x1006c]
mov dword [ebp - 0x10084], edx
mov eax, dword [ebp - 0x10084]
movzx ecx, word [eax + 0xe]
mov edx, dword [ebp - 0x10084]
movzx eax, word [edx + 0xc]
add ecx, eax
mov dword [ebp - 0x100c8], ecx
mov dword [ebp - 0x1004c], 0
jmp 0x1001694e
mov ecx, dword [ebp - 0x1004c]
add ecx, 1
mov dword [ebp - 0x1004c], ecx
mov edx, dword [ebp - 0x1004c]
cmp edx, dword [ebp - 0x100c8]
jge 0x10016aa2
mov eax, dword [ebp - 0x10084]
add eax, 0x10
mov dword [ebp - 0x10068], eax
mov ecx, dword [ebp - 0x1004c]
mov edx, dword [ebp - 0x10068]
lea eax, [edx + ecx*8]
mov dword [ebp - 0x10068], eax
mov ecx, dword [ebp - 0x10068]
mov edx, dword [ecx + 4]
and edx, 0x7fffffff
mov dword [ebp - 0x1007c], edx
mov eax, dword [ebp - 0x1007c]
add eax, dword [ebp - 0x10038]
mov dword [ebp - 0x1007c], eax
mov ecx, dword [ebp - 0x1007c]
mov dword [ebp - 0x10078], ecx
mov edx, dword [ebp - 0x10078]
movzx eax, word [edx + 0xe]
mov ecx, dword [ebp - 0x10078]
movzx edx, word [ecx + 0xc]
add eax, edx
mov dword [ebp - 0x100b8], eax
mov dword [ebp - 0x10058], 0
jmp 0x100169ee
mov eax, dword [ebp - 0x10058]
add eax, 1
mov dword [ebp - 0x10058], eax
mov ecx, dword [ebp - 0x10058]
cmp ecx, dword [ebp - 0x100b8]
jge 0x10016a9d
mov edx, dword [ebp - 0x10078]
add edx, 0x10
mov dword [ebp - 0x10070], edx
mov eax, dword [ebp - 0x10058]
mov ecx, dword [ebp - 0x10070]
lea edx, [ecx + eax*8]
mov dword [ebp - 0x10070], edx
mov eax, dword [ebp - 0x10070]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10080], ecx
mov edx, dword [ebp - 0x10080]
add edx, dword [ebp - 0x10038]
mov dword [ebp - 0x10080], edx
mov eax, dword [ebp - 0x10080]
mov dword [ebp - 0x100ac], eax
mov ecx, dword [ebp - 0x10020]
mov edx, dword [ebp - 0x100ac]
mov eax, dword [edx]
mov dword [ebp + ecx*8 - 0x8010], eax
mov ecx, dword [ebp - 0x10020]
mov edx, dword [ebp + ecx*8 - 0x8010]
mov eax, dword [ebp - 0x100ac]
add edx, dword [eax + 4]
mov ecx, dword [ebp - 0x10020]
mov dword [ebp + ecx*8 - 0x800c], edx
mov edx, dword [ebp - 0x10020]
add edx, 1
mov dword [ebp - 0x10020], edx
jmp 0x100169df
jmp 0x1001693f
jmp 0x1001683c
mov dword [ebp - 0x10030], 0
jmp 0x10016ac2
mov eax, dword [ebp - 0x10030]
add eax, 1
mov dword [ebp - 0x10030], eax
mov ecx, dword [ebp - 0x10020]
sub ecx, 1
cmp dword [ebp - 0x10030], ecx
jge 0x10016b94
mov edx, dword [ebp - 0x10030]
mov dword [ebp - 0x10034], edx
jmp 0x10016af4
mov eax, dword [ebp - 0x10034]
add eax, 1
mov dword [ebp - 0x10034], eax
mov ecx, dword [ebp - 0x10034]
cmp ecx, dword [ebp - 0x10020]
jge 0x10016b8f
mov edx, dword [ebp - 0x10030]
mov eax, dword [ebp - 0x10034]
mov ecx, dword [ebp + edx*8 - 0x8010]
cmp ecx, dword [ebp + eax*8 - 0x8010]
jbe 0x10016b8a
mov edx, dword [ebp - 0x10030]
mov eax, dword [ebp + edx*8 - 0x8010]
mov ecx, dword [ebp + edx*8 - 0x800c]
mov dword [ebp - 0x100d8], eax
mov dword [ebp - 0x100d4], ecx
mov edx, dword [ebp - 0x10034]
mov eax, dword [ebp + edx*8 - 0x8010]
mov ecx, dword [ebp + edx*8 - 0x800c]
mov edx, dword [ebp - 0x10030]
mov dword [ebp + edx*8 - 0x8010], eax
mov dword [ebp + edx*8 - 0x800c], ecx
mov eax, dword [ebp - 0x10034]
mov ecx, dword [ebp - 0x100d8]
mov dword [ebp + eax*8 - 0x8010], ecx
mov edx, dword [ebp - 0x100d4]
mov dword [ebp + eax*8 - 0x800c], edx
jmp 0x10016ae5
jmp 0x10016ab3
mov dword [ebp - 0x10064], 0
mov dword [ebp - 0x10064], 0
mov dword [ebp - 0x10028], 0
jmp 0x10016bc3
mov eax, dword [ebp - 0x10028]
add eax, 1
mov dword [ebp - 0x10028], eax
mov ecx, dword [ebp - 0x10020]
sub ecx, 1
cmp dword [ebp - 0x10028], ecx
jge 0x10016ca4
mov edx, dword [ebp - 0x10028]
mov eax, dword [ebp - 0x10028]
mov ecx, dword [ebp + edx*8 - 0x800c]
cmp ecx, dword [ebp + eax*8 - 0x8008]
jb 0x10016c9f
mov dword [ebp - 0x10064], 1
mov edx, dword [ebp - 0x10028]
mov eax, dword [ebp - 0x10028]
mov ecx, dword [ebp + edx*8 - 0x800c]
cmp ecx, dword [ebp + eax*8 - 0x8004]
jae 0x10016c38
mov edx, dword [ebp - 0x10028]
mov eax, dword [ebp - 0x10028]
mov ecx, dword [ebp + eax*8 - 0x8004]
mov dword [ebp + edx*8 - 0x800c], ecx
mov edx, dword [ebp - 0x10028]
add edx, 1
mov dword [ebp - 0x10048], edx
jmp 0x10016c58
mov eax, dword [ebp - 0x10048]
add eax, 1
mov dword [ebp - 0x10048], eax
mov ecx, dword [ebp - 0x10048]
cmp ecx, dword [ebp - 0x10020]
jge 0x10016c90
mov edx, dword [ebp - 0x10048]
mov eax, dword [ebp + edx*8 - 0x8008]
mov ecx, dword [ebp + edx*8 - 0x8004]
mov edx, dword [ebp - 0x10048]
mov dword [ebp + edx*8 - 0x8010], eax
mov dword [ebp + edx*8 - 0x800c], ecx
jmp 0x10016c49
mov eax, dword [ebp - 0x10020]
sub eax, 1
mov dword [ebp - 0x10020], eax
jmp 0x10016bb4
cmp dword [ebp - 0x10064], 0
jne 0x10016b9e
mov dword [ebp - 0x10090], 0
lea ecx, [ebp - 0x10090]
push ecx
lea edx, [ebp - 0x10010]
push edx
call fcn.10015fa0
add esp, 8
push 0x1400000
call fcn.1001c60e
add esp, 4
mov dword [ebp - 0x100b0], eax
mov eax, dword [ebp - 0x100b0]
mov dword [ebp - 0x10024], eax
mov dword [ebp - 0x10014], 0
jmp 0x10016d0b
mov ecx, dword [ebp - 0x10014]
add ecx, 1
mov dword [ebp - 0x10014], ecx
mov edx, dword [ebp - 0x10014]
cmp edx, dword [ebp - 0x10090]
jge 0x100171de
mov eax, dword [ebp - 0x10014]
mov ecx, dword [ebp + eax*8 - 0x1000c]
push ecx
mov edx, dword [ebp - 0x10014]
mov eax, dword [ebp + edx*8 - 0x10010]
push eax
push str.seco__x__x_n
call fcn.1001c721
add esp, 0xc
mov dword [ebp - 0x100a4], 1
mov ecx, dword [ebp - 0x10014]
mov edx, dword [ebp + ecx*8 - 0x10010]
mov dword [ebp - 0x10050], edx
jmp 0x10016d74
mov eax, dword [ebp - 0x10050]
add eax, 1
mov dword [ebp - 0x10050], eax
mov ecx, dword [ebp - 0x10014]
mov edx, dword [ebp - 0x10050]
cmp edx, dword [ebp + ecx*8 - 0x1000c]
jae 0x10016da8
mov eax, dword [ebp - 0x1001c]
add eax, dword [ebp - 0x10050]
movsx ecx, byte [eax]
test ecx, ecx
je 0x10016da6
mov dword [ebp - 0x100a4], 0
jmp 0x10016d65
cmp dword [ebp - 0x100a4], 0
je 0x10016dc3
push str.all_zero._skip...._r_n
call fcn.1001c721
add esp, 4
jmp 0x100171b0
mov dword [ebp - 0x10074], 0
mov dword [ebp - 0x100a0], htonl
mov dword [ebp - 0x1008c], 0
mov dword [ebp - 0x10060], 0
jmp 0x10016dfc
mov edx, dword [ebp - 0x10060]
add edx, 1
mov dword [ebp - 0x10060], edx
cmp dword [ebp - 0x10060], 4
jge 0x1001705e
mov eax, dword [ebp - 0x10014]
mov ecx, dword [ebp - 0x10014]
mov edx, dword [ebp + eax*8 - 0x1000c]
sub edx, dword [ebp + ecx*8 - 0x10010]
mov dword [ebp - 0x1002c], edx
mov eax, dword [ebp - 0x1002c]
push eax
mov ecx, dword [ebp - 0x10014]
mov edx, dword [ebp - 0x1001c]
add edx, dword [ebp + ecx*8 - 0x10010]
push edx
mov eax, dword [ebp - 0x10024]
push eax
call fcn.10043eb0
add esp, 0xc
mov ecx, dword [ebp - 0x1002c]
push ecx
mov edx, dword [ebp - 0x10024]
push edx
mov eax, dword [ebp - 0x10024]
push eax
call dword [0x1010a2e0]
lea ecx, [ebp - 0x10104]
call fcn.10045b00
mov dword [ebp - 4], 0
push 0xa00000
call fcn.1001c60e
add esp, 4
mov dword [ebp - 0x100c0], eax
mov ecx, dword [ebp - 0x100c0]
mov dword [ebp - 0x10098], ecx
mov dword [ebp - 0x10044], 0xa00000
lea edx, [ebp - 0x10044]
push edx
mov eax, dword [ebp - 0x10098]
push eax
mov ecx, dword [ebp - 0x1002c]
push ecx
mov edx, dword [ebp - 0x10024]
push edx
lea ecx, [ebp - 0x10104]
call fcn.10045be0
mov eax, dword [ebp - 0x10044]
cmp eax, dword [ebp - 0x100a0]
jge 0x10016efd
mov ecx, dword [ebp - 0x10044]
mov dword [ebp - 0x100a0], ecx
mov edx, dword [ebp - 0x10014]
mov eax, dword [ebp + edx*8 - 0x10010]
mov dword [ebp - 0x10074], eax
mov ecx, dword [ebp - 0x1002c]
push ecx
mov edx, dword [ebp - 0x10044]
push edx
push str.comp_len__x_org_len__x_r_n
call fcn.1001c721
add esp, 0xc
mov eax, dword [ebp - 0x10098]
mov dword [ebp - 0x100c4], eax
mov ecx, dword [ebp - 0x100c4]
push ecx
call fcn.1001c684
add esp, 4
cvtsi2sd xmm0, dword [ebp - 0x10044]
cvtsi2sd xmm1, dword [ebp - 0x1002c]
divsd xmm0, xmm1
movsd xmm1, qword [0x1004ccd0]
comisd xmm1, xmm0
jbe 0x1001701d
push str.len_check_ok__r_n
call fcn.1001c721
add esp, 4
mov dword [ebp - 0x1008c], 1
mov dword [ebp - 0x100a8], 0
mov dword [ebp - 0x100cc], 0
lea edx, [ebp - 0x100a8]
push edx
push 0x40
mov eax, dword [ebp - 0x1002c]
push eax
mov ecx, dword [ebp - 0x10014]
mov edx, dword [ebp - 0x1001c]
add edx, dword [ebp + ecx*8 - 0x10010]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0x1002c]
push eax
mov ecx, dword [ebp - 0x10024]
push ecx
mov edx, dword [ebp - 0x10014]
mov eax, dword [ebp - 0x1001c]
add eax, dword [ebp + edx*8 - 0x10010]
push eax
call fcn.10043eb0
add esp, 0xc
lea ecx, [ebp - 0x100cc]
push ecx
mov edx, dword [ebp - 0x100a8]
push edx
mov eax, dword [ebp - 0x1002c]
push eax
mov ecx, dword [ebp - 0x10014]
mov edx, dword [ebp - 0x1001c]
add edx, dword [ebp + ecx*8 - 0x10010]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10104]
call fcn.10012640
jmp 0x1001705e
push str.len_check_err.._retry..._r_n
call fcn.1001c721
add esp, 4
mov eax, dword [ebp - 0x10014]
mov ecx, dword [ebp + eax*8 - 0x10010]
add ecx, 1
mov edx, dword [ebp - 0x10014]
mov dword [ebp + edx*8 - 0x10010], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10104]
call fcn.10012640
jmp 0x10016ded
cmp dword [ebp - 0x1008c], 0
jne 0x100171b0
cmp dword [ebp - 0x10074], 0
je 0x100171b0
mov eax, dword [ebp - 0x10014]
mov ecx, dword [ebp - 0x10074]
mov dword [ebp + eax*8 - 0x10010], ecx
mov edx, dword [ebp - 0x10014]
mov eax, dword [ebp + edx*8 - 0x1000c]
push eax
mov ecx, dword [ebp - 0x10014]
mov edx, dword [ebp + ecx*8 - 0x10010]
push edx
push str.dec_best__x__x_n
call fcn.1001c721
add esp, 0xc
mov eax, dword [ebp - 0x10014]
mov ecx, dword [ebp - 0x10014]
mov edx, dword [ebp + eax*8 - 0x1000c]
sub edx, dword [ebp + ecx*8 - 0x10010]
mov dword [ebp - 0x10040], edx
mov eax, dword [ebp - 0x10040]
push eax
mov ecx, dword [ebp - 0x10014]
mov edx, dword [ebp - 0x1001c]
add edx, dword [ebp + ecx*8 - 0x10010]
push edx
mov eax, dword [ebp - 0x10024]
push eax
call fcn.10043eb0
add esp, 0xc
mov ecx, dword [ebp - 0x10040]
push ecx
mov edx, dword [ebp - 0x10024]
push edx
mov eax, dword [ebp - 0x10024]
push eax
call dword [0x1010a2e0]
mov dword [ebp - 0x10094], 0
mov dword [ebp - 0x100dc], 0
lea ecx, [ebp - 0x10094]
push ecx
push 0x40
mov edx, dword [ebp - 0x10040]
push edx
mov eax, dword [ebp - 0x10014]
mov ecx, dword [ebp - 0x1001c]
add ecx, dword [ebp + eax*8 - 0x10010]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x10040]
push edx
mov eax, dword [ebp - 0x10024]
push eax
mov ecx, dword [ebp - 0x10014]
mov edx, dword [ebp - 0x1001c]
add edx, dword [ebp + ecx*8 - 0x10010]
push edx
call fcn.10043eb0
add esp, 0xc
lea eax, [ebp - 0x100dc]
push eax
mov ecx, dword [ebp - 0x10094]
push ecx
mov edx, dword [ebp - 0x10040]
push edx
mov eax, dword [ebp - 0x10014]
mov ecx, dword [ebp - 0x1001c]
add ecx, dword [ebp + eax*8 - 0x10010]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x10014]
mov eax, dword [ebp + edx*8 - 0x1000c]
push eax
mov ecx, dword [ebp - 0x10014]
mov edx, dword [ebp + ecx*8 - 0x10010]
push edx
push str.secd__x__x_n
call fcn.1001c721
add esp, 0xc
jmp 0x10016cfc
mov dword [ebp - 0x10018], 0
jmp 0x100171f9
mov eax, dword [ebp - 0x10018]
add eax, 1
mov dword [ebp - 0x10018], eax
mov ecx, dword [ebp - 0x10018]
cmp ecx, dword [ebp - 0x10020]
jge 0x10017332
mov edx, dword [ebp - 0x10018]
mov eax, dword [ebp + edx*8 - 0x800c]
push eax
mov ecx, dword [ebp - 0x10018]
mov edx, dword [ebp - 0x10018]
mov eax, dword [ebp + ecx*8 - 0x800c]
sub eax, dword [ebp + edx*8 - 0x8010]
push eax
mov ecx, dword [ebp - 0x10018]
mov edx, dword [ebp + ecx*8 - 0x8010]
push edx
push str._x__x__x_n
call fcn.1001c721
add esp, 0x10
mov dword [ebp - 0x10088], 0
mov dword [ebp - 0x100b4], 0
lea eax, [ebp - 0x10088]
push eax
push 0x40
mov ecx, dword [ebp - 0x10018]
mov edx, dword [ebp - 0x10018]
mov eax, dword [ebp + ecx*8 - 0x800c]
sub eax, dword [ebp + edx*8 - 0x8010]
push eax
mov ecx, dword [ebp - 0x10018]
mov edx, dword [ebp - 0x1001c]
add edx, dword [ebp + ecx*8 - 0x8010]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0x10018]
mov ecx, dword [ebp - 0x10018]
mov edx, dword [ebp + eax*8 - 0x800c]
sub edx, dword [ebp + ecx*8 - 0x8010]
push edx
mov eax, dword [ebp - 0x10018]
mov ecx, dword [ebp - 0x1001c]
add ecx, dword [ebp + eax*8 - 0x8010]
push ecx
mov edx, dword [ebp - 0x10018]
mov eax, dword [ebp - 0x1001c]
add eax, dword [ebp + edx*8 - 0x8010]
push eax
call dword [0x1010a2e0]
lea ecx, [ebp - 0x100b4]
push ecx
mov edx, dword [ebp - 0x10088]
push edx
mov eax, dword [ebp - 0x10018]
mov ecx, dword [ebp - 0x10018]
mov edx, dword [ebp + eax*8 - 0x800c]
sub edx, dword [ebp + ecx*8 - 0x8010]
push edx
mov eax, dword [ebp - 0x10018]
mov ecx, dword [ebp - 0x1001c]
add ecx, dword [ebp + eax*8 - 0x8010]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x100171ea
mov edx, dword [ebp - 0x10024]
mov dword [ebp - 0x100bc], edx
mov eax, dword [ebp - 0x100bc]
push eax
call fcn.1001c684
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001c906
mov esp, ebp
pop ebp
ret