Function at 0x10009310
Capabilities:
Allocate or change rwx memory
Check for time delay via gettickcount
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10021aa5
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100290c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x10042240]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test esi, esi
je 0x10009375
cmp dword [0x11dd6a8c], 0
lea eax, [ebp - 0x14]
push eax
push 0x40
push 1
push esi
je 0x10009364
call edi
mov byte [esi], 0xc3
jmp 0x10009369
call edi
mov byte [esi], 0x55
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 1
push esi
call edi
mov esi, dword [0x10042138]
test esi, esi
je 0x100093a9
cmp dword [0x1004271c], 0
lea eax, [ebp - 0x14]
push eax
push 0x40
push 1
push esi
je 0x10009398
call edi
mov byte [esi], 0xc3
jmp 0x1000939d
call edi
mov byte [esi], 0x55
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 1
push esi
call edi
mov esi, dword [0x10042670]
test esi, esi
je 0x100093e3
cmp dword [0x10042750], 0
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push esi
je 0x100093cf
call edi
mov dword [esi], 0xd45d0ff3
jmp 0x100093d7
call edi
mov dword [esi], 0xd05d0ff3
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 4
push esi
call edi
cmp dword [0x100421a8], 0
mov esi, dword [0x1004212c]
je 0x10009410
mov eax, dword [0x10042688]
cmp dword [eax], 0
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
push esi
jbe 0x10009419
call edi
push 5
push 0x10025734
jmp 0x10009422
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
push esi
call edi
push 5
push 0x1002573c
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 5
push esi
call edi
cmp dword [0x10042150], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x10009776
mov ecx, 0xa2
xor edx, edx
mov al, byte [edx + 0x10025744]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x3c], al
and ecx, 0x800000ff
jns 0x1000946e
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x15
jl 0x10009451
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x27], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add eax, 0xcdbe
mov ecx, 0xd
mov dword [0x10042250], eax
xor edx, edx
mov al, byte [edx + str.ZNDDA3V_Q7_]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x34], al
and ecx, 0x800000ff
jns 0x100094b0
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xc
jl 0x10009493
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x34]
mov ecx, dword [0x10042218]
mov eax, dword [0x10042214]
add ecx, 0x12c
push edx
push 0xffffff00
push ecx
add eax, 0x1c2
push eax
push dword [0x10041ff4]
call fcn.10003a30
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
cmp byte [0x100421d3], 0
je 0x10009547
mov word [ebp - 0x14], 0x4e4f
mov byte [ebp - 0x12], 0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x14]
mov ecx, dword [0x10042218]
mov eax, dword [0x10042214]
add ecx, 0x12c
push edx
push 0xfff50000
push ecx
add eax, 0x1fe
push eax
push dword [0x10041ff4]
call fcn.10003a30
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x10042250]
test ecx, ecx
je 0x1000978a
cmp dword [0x10042004], 0
jne 0x1000957a
push 6
add ecx, 0xfffffffa
mov edx, 0x10008b90
call fcn.100020a0
add esp, 4
mov dword [0x10042004], 0x64
cmp byte [0x100421d3], 0
jne 0x10009597
mov dword [0x100421d8], 0
mov dword [0x100421a4], 0
mov eax, dword [0x10042688]
cmp dword [eax], 0
jbe 0x1000978a
mov eax, dword [0x100421f0]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [0x10042644]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [0x11dd6998]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
lea ecx, [eax + edx]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [0x100422ac]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + ecx]
call fcn.10004b00
test eax, eax
jle 0x1000978a
mov eax, dword [0x100422a8]
test eax, eax
je 0x10009791
mov ecx, dword [0x100421a4]
test ecx, ecx
jne 0x10009619
mov eax, dword [eax + 0x11c]
mov dword [0x100421d8], eax
mov dword [0x100421a4], 0x64
jmp 0x10009627
cmp ecx, 0x64
jne 0x10009791
mov eax, dword [0x100421d8]
test eax, eax
je 0x10009791
push 0x45
mov dword [0x100426b4], 0x10002450
call fcn.10002450
cwde
shr eax, 0x10
test eax, eax
je 0x10009672
cmp byte [0x11dd7d48], 0
je 0x10009664
cmp dword [0x11dd7d4c], 0
je 0x10009679
call ebx
cmp dword [0x11dd7d4c], eax
ja 0x10009679
mov byte [0x11dd7d48], 1
mov eax, 1
jmp 0x1000967b
mov byte [0x11dd7d48], 0
xor eax, eax
test eax, eax
je 0x10009690
cmp byte [0x100421d3], 0
sete al
mov byte [0x100421d3], al
jmp 0x10009695
mov al, byte [0x100421d3]
test al, al
je 0x10009791
push 0xa2
mov dword [0x100426b4], 0x10002450
call fcn.10002450
cwde
shr eax, 0x10
test eax, eax
je 0x100096ed
cmp byte [0x11dd8030], 0
je 0x100096d8
cmp dword [0x11dd8034], 0
je 0x100096f4
call ebx
mov ecx, dword [0x11dd8034]
inc ecx
cmp ecx, eax
ja 0x100096f4
mov byte [0x11dd8030], 1
call ebx
mov dword [0x11dd8034], eax
mov eax, 1
jmp 0x100096f6
mov byte [0x11dd8030], 0
xor eax, eax
test eax, eax
je 0x1000970a
imul eax, dword [0x10041a00], 0xffffe4a0
add dword [0x100421d8], eax
push 0x20
mov dword [0x100426b4], 0x10002450
call fcn.10002450
cwde
shr eax, 0x10
test eax, eax
je 0x10009757
cmp byte [0x11dd7c20], 0
je 0x10009742
cmp dword [0x11dd7c24], 0
je 0x1000975e
call ebx
mov ecx, dword [0x11dd7c24]
inc ecx
cmp ecx, eax
ja 0x1000975e
mov byte [0x11dd7c20], 1
call ebx
mov dword [0x11dd7c24], eax
mov eax, 1
jmp 0x10009760
mov byte [0x11dd7c20], 0
xor eax, eax
test eax, eax
je 0x10009791
imul eax, dword [0x10041a00], 0x1b60
add dword [0x100421d8], eax
jmp 0x10009791
mov dword [0x100421d8], 0
mov dword [0x100421a4], 0
mov byte [0x100421d3], 0
cmp dword [0x10042238], 0
je 0x100098f8
mov esi, dword [0x1004201c]
test esi, esi
jne 0x100097ed
mov ecx, 0xc2
xor edx, edx
nop
mov al, byte [edx + 0x1002576c]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x3c], al
and ecx, 0x800000ff
jns 0x100097cd
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x15
jl 0x100097b0
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x27], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea esi, [eax + 0xc15c]
mov dword [0x1004201c], esi
cmp dword [0x10042000], 0
jne 0x10009841
mov ecx, 0xc2
xor edx, edx
nop dword [eax]
mov al, byte [edx + 0x1002576c]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x3c], al
and ecx, 0x800000ff
jns 0x1000981d
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x15
jl 0x10009800
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x27], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [0x1004201c]
add eax, 0xc164
mov dword [0x10042000], eax
mov eax, dword [0x10042688]
cmp dword [eax], 0
jbe 0x100098cc
push 0x20
mov dword [0x100426b4], 0x10002450
call fcn.10002450
cwde
shr eax, 0x10
test eax, eax
je 0x1000989c
cmp byte [0x11dd7c20], 0
je 0x10009887
cmp dword [0x11dd7c24], 0
je 0x100098a3
call ebx
mov ecx, dword [0x11dd7c24]
inc ecx
cmp ecx, eax
ja 0x100098a3
mov byte [0x11dd7c20], 1
call ebx
mov dword [0x11dd7c24], eax
mov eax, 1
jmp 0x100098a5
mov byte [0x11dd7c20], 0
xor eax, eax
test eax, eax
je 0x100098c6
mov eax, dword [0x10042000]
mov edx, 0x10008b80
mov ecx, dword [0x1004201c]
sub eax, ecx
push eax
call fcn.100020a0
add esp, 4
jmp 0x100098f8
mov esi, dword [0x1004201c]
cmp byte [esi], 0xe9
jne 0x100098f8
lea eax, [ebp - 0x14]
push eax
push 0x40
push 8
push esi
call edi
push 8
push 0x10025784
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 8
push esi
call edi
mov eax, dword [0x10042688]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x10009966
cmp dword [eax], 0
jbe 0x10009966
mov esi, dword [0x10042618]
test esi, esi
jne 0x10009974
mov eax, dword [0x10042200]
xor edi, edi
mov dword [ebp - 0x18], eax
mov eax, dword [0x100421d4]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x11dd675c]
mov dword [ebp - 0x14], eax
push 4
push eax
call ebx
test eax, eax
jne 0x10009952
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax]
add eax, edi
add eax, dword [ecx]
mov ecx, dword [ebp - 0x18]
cmp dword [eax + ecx], 0x101
cmove esi, edi
mov eax, dword [ebp - 0x14]
inc edi
cmp edi, 0x96
jle 0x10009930
mov dword [0x10042618], esi
jmp 0x1000996c
mov esi, dword [0x10042618]
test esi, esi
je 0x10009cf2
mov eax, dword [0x11dd675c]
mov edi, dword [eax]
mov eax, dword [0x100421d4]
add edi, dword [eax]
add edi, dword [0x10042200]
add edi, esi
cmp dword [0x100421e0], 0
jne 0x100099df
cmp dword [0x1004269c], 0
jne 0x10009aa7
cmp dword [0x10042604], 0
jne 0x10009b6f
cmp dword [0x11dd6acc], 0
jne 0x10009c37
push 4
push edi
call ebx
test eax, eax
jne 0x100099d2
push 4
push edi
call ebx
test eax, eax
jne 0x100099d2
mov dword [edi], 0x101
cmp dword [0x100421e0], 0
je 0x10009a9a
mov eax, dword [0x10042688]
cmp dword [eax], 0
jbe 0x10009a9a
mov eax, dword [0x100421f0]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x10042644]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [0x11dd6998]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
lea ecx, [eax + edx]
mov dword [ebp - 0x14], ecx
mov eax, dword [0x100421f0]
mov esi, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x10042644]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [0x11dd6998]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
lea ecx, [eax + edx]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x100422ac]
push 4
push edi
mov ecx, dword [eax + ecx]
imul ecx, dword [0x10042268]
mov eax, dword [0x10042244]
add ecx, esi
cmp dword [ecx + eax + 0x50], 0
jne 0x10009a85
call ebx
test eax, eax
jne 0x10009a9a
push 4
push edi
call ebx
test eax, eax
jne 0x10009a9a
mov dword [edi], 0x1100
jmp 0x10009a9a
call ebx
test eax, eax
jne 0x10009a9a
push 4
push edi
call ebx
test eax, eax
jne 0x10009a9a
mov dword [edi], 0x101
cmp dword [0x1004269c], 0
je 0x10009b62
mov eax, dword [0x10042688]
cmp dword [eax], 0
jbe 0x10009b62
mov eax, dword [0x100421f0]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [0x10042644]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x11dd6998]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
lea ecx, [eax + edx]
mov dword [ebp - 0x24], ecx
mov eax, dword [0x100421f0]
mov esi, dword [ebp - 0x24]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [0x10042644]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x11dd6998]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
lea ecx, [eax + edx]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [0x100422ac]
push 4
push edi
mov ecx, dword [eax + ecx]
imul ecx, dword [0x10042268]
mov eax, dword [0x10042244]
add ecx, esi
cmp dword [ecx + eax + 0x50], 0
jne 0x10009b4d
call ebx
test eax, eax
jne 0x10009b62
push 4
push edi
call ebx
test eax, eax
jne 0x10009b62
mov dword [edi], 0x1100
jmp 0x10009b62
call ebx
test eax, eax
jne 0x10009b62
push 4
push edi
call ebx
test eax, eax
jne 0x10009b62
mov dword [edi], 0x101
cmp dword [0x10042604], 0
je 0x10009c2a
mov eax, dword [0x10042688]
cmp dword [eax], 0
jbe 0x10009c2a
mov eax, dword [0x100421f0]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [0x10042644]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x11dd6998]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
lea ecx, [eax + edx]
mov dword [ebp - 0x24], ecx
mov eax, dword [0x100421f0]
mov esi, dword [ebp - 0x24]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [0x10042644]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x11dd6998]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
lea ecx, [eax + edx]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [0x100422ac]
push 4
push edi
mov ecx, dword [eax + ecx]
imul ecx, dword [0x10042268]
mov eax, dword [0x10042244]
add ecx, esi
cmp dword [ecx + eax + 0x50], 0
jne 0x10009c15
call ebx
test eax, eax
jne 0x10009c2a
push 4
push edi
call ebx
test eax, eax
jne 0x10009c2a
mov dword [edi], 0x1100
jmp 0x10009c2a
call ebx
test eax, eax
jne 0x10009c2a
push 4
push edi
call ebx
test eax, eax
jne 0x10009c2a
mov dword [edi], 0x101
cmp dword [0x11dd6acc], 0
je 0x10009cf2
mov eax, dword [0x10042688]
cmp dword [eax], 0
jbe 0x10009cf2
mov eax, dword [0x100421f0]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [0x10042644]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x11dd6998]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
lea ecx, [eax + edx]
mov dword [ebp - 0x40], ecx
mov eax, dword [0x100421f0]
mov esi, dword [ebp - 0x40]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [0x10042644]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x11dd6998]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
lea ecx, [eax + edx]
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
mov ecx, dword [0x100422ac]
push 4
push edi
mov ecx, dword [eax + ecx]
imul ecx, dword [0x10042268]
mov eax, dword [0x10042244]
add ecx, esi
cmp dword [ecx + eax + 0x50], 0
jne 0x10009cdd
call ebx
test eax, eax
jne 0x10009cf2
push 4
push edi
call ebx
test eax, eax
jne 0x10009cf2
mov dword [edi], 0x1100
jmp 0x10009cf2
call ebx
test eax, eax
jne 0x10009cf2
push 4
push edi
call ebx
test eax, eax
jne 0x10009cf2
mov dword [edi], 0x101
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10020ae5
mov esp, ebp
pop ebp
ret