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

Disassembly:
sub esp, 0x10
cmp byte [0x10174f84], 0
push esi
je 0x100d6edf
test byte [0x10174f88], 4
je 0x100d6edf
mov edx, str.Adding_sfall_opcodes
mov ecx, 0x10153db8
call fcn.10012ce0
push eax
call fcn.10012f80
add esp, 4
cmp dword [0x101553d8], 0
je 0x100d6edf
mov edx, str.Adding_sfall_opcodes
mov ecx, 0x10141e60
call fcn.10012ce0
push eax
call fcn.10012f80
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 4]
push eax
push 0x40
push 4
push 0x46e370
call esi
lea eax, [esp + 4]
mov dword [0x46e370], 0x300
push eax
push dword [esp + 8]
push 4
push 0x46e370
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 4
push 0x46ce34
call esi
lea eax, [esp + 4]
mov dword [0x46ce34], 0x10173880
push eax
push dword [esp + 8]
push 4
push 0x46ce34
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 4
push 0x46e390
call esi
lea eax, [esp + 4]
mov dword [0x46e390], 0x10173880
push eax
push dword [esp + 8]
push 4
push 0x46e390
call esi
push 1
push 0x100d6e80
mov edx, 0x46ce6a
mov cl, 0xe8
call fcn.100120f0
mov ecx, 0x1013d710
movsx eax, word [ecx]
mov dword [eax*4 + 0x10173f28], ecx
add ecx, 0x5c
cmp ecx, 0x10140f20
jl 0x100d6f81
call fcn.100deed0
sub esp, 0x28
mov ecx, 0x10154dd0
mov eax, esp
mov dword [eax], 0x1012f34c
mov dword [eax + 0x24], eax
lea eax, [esp + 0x30]
push eax
call fcn.1001d210
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x100d6ff4
push dword [esp + 4]
mov edx, dword [esp + 0x10]
push ecx
call fcn.1000fa00
mov ecx, dword [esp + 0x10]
mov eax, 0x66666667
sub ecx, dword [esp + 8]
imul ecx
mov ecx, dword [esp + 8]
mov eax, edx
sar eax, 4
mov edx, eax
shr edx, 0x1f
push 0x28
add edx, eax
call fcn.1000d8e0
push 0
mov edx, str.AllowUnsafeScripting
mov ecx, str.Debugging
call fcn.1000dcb0
test eax, eax
je 0x100d706f
movzx ecx, byte [0x1013d3b0]
xor edx, edx
cmp eax, 2
mov byte [0x10182315], 1
cmove ecx, edx
mov byte [0x1013d3b0], cl
cmp byte [0x10174f84], dl
je 0x100d706f
test byte [0x10174f88], 4
je 0x100d706f
mov edx, str.__Unsafe_functions_write____opcodes_enabled.
mov ecx, 0x10153db8
call fcn.10012ce0
push eax
call fcn.10012f80
add esp, 4
cmp dword [0x101553d8], 0
je 0x100d706f
mov edx, str.__Unsafe_functions_write____opcodes_enabled.
mov ecx, 0x10141e60
call fcn.10012ce0
push eax
call fcn.10012f80
add esp, 4
mov dword [0x10173fbc], 0x100de9e0
mov dword [0x10173fc0], 0x100dea70
mov dword [0x10173fc4], 0x100deb10
mov dword [0x101740ec], 0x100debf0
mov dword [0x10173fc8], 0x100dec70
mov dword [0x10173fcc], 0x100dec70
mov dword [0x10173fd0], 0x100dec70
mov dword [0x10173fd4], 0x100dec70
mov dword [0x10173fd8], 0x100dec70
mov dword [0x10173fdc], 0x100dec70
mov dword [0x10173fe0], 0x100dec70
mov dword [0x10173fe4], 0x100dec70
mov dword [0x10173fe8], 0x100dec70
mov dword [0x10173fec], 0x100dec70
mov dword [0x10173dd8], 0x100de790
mov dword [0x10173ddc], 0x100de820
mov dword [0x10173de0], 0x100de8b0
mov dword [0x10173de4], 0x100de940
mov dword [0x10173e08], 0x100dbf80
mov dword [0x10173e10], 0x100db170
mov dword [0x10173e14], 0x100db880
mov dword [0x10173e18], 0x100db8f0
mov dword [0x10173e1c], 0x100db990
mov dword [0x10173e20], 0x100db9f0
mov dword [0x10173e24], 0x100dba30
mov dword [0x10173e28], 0x100daca0
mov dword [0x10173e2c], 0x100dbeb0
mov dword [0x10173e34], 0x100dbb20
mov dword [0x10173e38], 0x100dbc20
mov dword [0x10173e3c], 0x100dbc90
mov dword [0x10173e40], 0x100e37e0
mov dword [0x10173e48], 0x100e39a0
mov dword [0x10173e4c], 0x100e38c0
mov dword [0x10173e50], 0x100e3930
mov dword [0x10173e60], 0x100e1630
mov dword [0x10173e64], 0x100e1630
mov dword [0x10173e68], 0x100e1630
mov dword [0x10173e6c], 0x100e1630
mov dword [0x10173e70], 0x100e1630
mov dword [0x10173e74], 0x100e1630
mov dword [0x10173e78], 0x100e1630
mov dword [0x10173e7c], 0x100e1630
mov dword [0x10173e80], 0x100e1630
mov dword [0x10173e84], 0x100e1630
mov dword [0x10173e88], 0x100e1630
mov dword [0x10173e8c], 0x100e1630
mov dword [0x10173e90], 0x100e1630
mov dword [0x10173e94], 0x100e1630
mov dword [0x10173e98], 0x100e1630
mov dword [0x10173e9c], 0x100e1630
mov dword [0x10173ea0], 0x100e1630
mov dword [0x10173eb0], 0x100d76a0
mov dword [0x10173eb4], 0x100d7750
mov dword [0x10173eb8], 0x100e14e0
mov dword [0x10173ebc], 0x100e1550
mov dword [0x10173ec4], 0x100e23e0
mov dword [0x10173ecc], 0x100d91d0
mov dword [0x10173ed0], 0x100d9240
mov dword [0x10173eec], 0x100dacd0
mov dword [0x10173ef0], 0x100dad00
mov dword [0x10173f00], 0x100e24d0
mov dword [0x10173f04], 0x100e2520
mov dword [0x10173f08], 0x100e2750
mov dword [0x10173f0c], 0x100dbeb0
mov dword [0x10173f18], 0x100dc410
mov dword [0x10173f1c], 0x100dc480
mov dword [0x10173f20], 0x100dc4f0
mov dword [0x10173f24], 0x100dc560
mov dword [0x10173f2c], 0x100e1c10
mov dword [0x10173f34], 0x100dbd30
mov dword [0x10173f38], 0x100dbda0
mov dword [0x10173f3c], 0x100e3850
mov dword [0x10173f40], 0x100dbe70
mov dword [0x10173f44], 0x100dba70
mov dword [0x10173f48], 0x100dbb90
mov dword [0x10173f4c], 0x100df630
mov dword [0x10173f50], 0x100e2790
mov dword [0x10173f54], 0x100e2800
mov dword [0x10173f58], 0x100df6a0
mov dword [0x10173f5c], 0x100e2870
mov dword [0x10173f60], 0x100e28e0
mov dword [0x10173f64], 0x100e2950
mov eax, 0x10173dd8
mov dword [0x10173f68], 0x100e29c0
mov dword [0x10173f78], 0x100e18e0
mov dword [0x10173f7c], 0x100e1930
mov dword [0x10173f80], 0x100e1940
mov dword [0x10173f8c], 0x100e1b20
mov dword [0x10173f90], 0x100e1950
mov dword [0x10173f98], 0x100e25c0
mov dword [0x10173fa0], 0x100e2720
mov dword [0x10173fa8], 0x100e2670
mov dword [0x10173fac], 0x100e1ba0
mov dword [0x10173fb0], 0x100e1bd0
mov dword [0x10173fb4], 0x100e1be0
mov dword [0x10173fb8], 0x100e1da0
mov dword [0x10173ffc], 0x100d78e0
mov dword [0x10174000], 0x100d7970
mov dword [0x10174010], 0x100daf10
mov dword [0x10174014], 0x100db120
mov dword [0x10174018], 0x100e22a0
mov dword [0x1017401c], 0x100e22d0
mov dword [0x10174020], 0x100e2340
mov dword [0x10174024], 0x100e2370
mov dword [0x10174028], 0x100db1e0
mov dword [0x10174058], 0x10007220
mov dword [0x101740c0], 0x100db360
mov dword [0x101740c4], 0x100db3d0
mov dword [0x101740c8], 0x100db440
mov dword [0x10174098], 0x100db250
mov dword [0x101740cc], 0x100df860
mov dword [0x101740d0], 0x100df8c0
mov dword [0x101740d4], 0x100df890
mov dword [0x101740f0], 0x100dbfb0
mov dword [0x101740f4], 0x100dc030
mov dword [0x101740f8], 0x100dc0b0
mov dword [0x101740fc], 0x100dc130
mov dword [0x10174100], 0x100dc1a0
mov dword [0x10174104], 0x100dc210
mov dword [0x10174108], 0x100df4b0
mov dword [0x1017410c], 0x100df4c0
mov dword [0x10174114], 0x100e1b50
mov dword [0x10174118], 0x100df8f0
mov dword [0x1017411c], 0x100df960
mov dword [0x10174130], 0x100df9a0
mov dword [0x10174168], 0x100e35e0
mov dword [0x1017416c], 0x100d8140
mov dword [0x10174170], 0x100db000
mov dword [0x10174178], 0x100d7a20
mov dword [0x1017417c], 0x100d7a50
mov dword [0x10174180], 0x100df9d0
mov dword [0x10174190], 0x100e21c0
mov dword [0x10174194], 0x100e21f0
mov dword [0x10174198], 0x100e2260
mov dword [0x1017419c], 0x100e1580
mov dword [0x101741a0], 0x100d7a80
mov dword [0x101741a4], 0x100d7b40
mov dword [0x101741a8], 0x100d7c00
mov dword [0x101741ac], 0x100e3750
mov dword [0x101741b0], 0x100dfa00
mov dword [0x101741b4], 0x100d9250
mov dword [0x10174290], 0x100dbe10
cmp dword [eax], 0
jne 0x100d7601
mov dword [eax], 0x100d6da0
add eax, 4
cmp eax, 0x10174480
jl 0x100d75f6
pop esi
add esp, 0x10
ret