Function at 0x10009a90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file on windows
Resolve function by parsing pe exports
Resume thread
Suspend thread
Terminate process

Disassembly:
sub esp, 0x4c0
push ebx
push ebp
push esi
xor ebx, ebx
mov dword [esp + 0x58], ebx
mov ebp, dword [0x1005c4dc]
push edi
push ebx
mov dword [esp + 0x5c], ebp
call fcn.10002e75
push 2
call fcn.10002e89
mov esi, dword [esp + 0x4dc]
add esp, 8
cmp esi, ebx
mov dword [esp + 0x24], eax
mov word [eax], bx
mov dword [esp + 0x54], ebx
je 0x10009c7f
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], ebx
call fcn.100035c0
push 0x10021074
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], ebx
call fcn.100035c0
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], ebx
call fcn.100035c0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.10005a10
mov eax, dword [esp + 0x38]
push eax
call fcn.10002e75
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.10002e75
add esp, 0x14
xor edi, edi
nop
mov edx, dword [esp + edi*4 + 0x40]
mov ecx, dword [ebp + 4]
push edx
call fcn.10016230
test eax, eax
mov esi, dword [esp + 0x4f8]
jne 0x10009b55
add edi, 1
cmp edi, 2
jb 0x10009b30
jmp 0x10009c5b
mov eax, dword [esp + edi*4 + 0x40]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x58], 1
call fcn.100035c0
mov ecx, dword [esp + 0x4d8]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0x10020478
call fcn.100075d0
mov edx, dword [esp + 0x4f4]
mov eax, dword [esp + 0x4f0]
mov ecx, dword [esp + 0x4ec]
mov ebp, dword [esp + 0x24]
push esi
push edx
mov edx, dword [esp + 0x4f0]
push eax
mov eax, dword [esp + 0x4f0]
push ecx
mov ecx, dword [esp + 0x4f0]
push edx
mov edx, dword [esp + 0x4f0]
push eax
push ecx
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x54]
push ecx
push ebp
call fcn.100082f0
add esp, 0x2c
test eax, eax
jne 0x10009c4e
cmp dword [0x1005c4bc], ebx
je 0x10009bfe
push 0x10021020
lea ecx, [esp + 0x60]
call fcn.1000f610
mov ecx, eax
call fcn.1000f990
lea ecx, [esp + 0x5c]
call fcn.1000f640
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esp + 0x1c]
push edx
call fcn.10002e75
add esp, 4
mov dword [esp + 0x1c], ebx
lea esi, [esp + 0x48]
mov edi, 1
mov eax, dword [esi - 4]
sub esi, 4
push eax
call fcn.10002e75
add esp, 4
sub edi, 1
mov dword [esi], ebx
jns 0x10009c20
push ebp
call fcn.10002e75
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c0
ret 0x28
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10002e75
add esp, 4
lea edi, [esp + 0x48]
mov ebp, 1
mov edx, dword [edi - 4]
sub edi, 4
push edx
call fcn.10002e75
add esp, 4
sub ebp, 1
mov dword [edi], ebx
jns 0x10009c64
jmp 0x10009f97
mov ebp, dword [esp + 0x4d8]
push ebp
mov dword [esp + 0x14], ebp
mov byte [esp + 0x2f], bl
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 1
mov edi, ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ebx
je 0x10009ccb
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10002e89
mov edi, eax
add esp, 4
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], esi
mov esi, ebp
cmp word [esi], bx
je 0x1000a01f
mov dword [esp + 0x14], ebx
lea ebx, [ebx]
movzx eax, word [ebp]
cmp ax, 0x22
mov cl, byte [esp + 0x2b]
jne 0x10009d1a
cmp cl, bl
jne 0x1000a26c
cmp ax, ax
jne 0x10009d1a
cmp ebp, esi
jne 0x10009d1a
mov eax, dword [esp + 0x44]
lea ecx, [eax + eax]
push ecx
push edi
mov byte [esp + 0x33], 1
call fcn.1000cdf0
add esp, 8
jmp 0x10009e3f
cmp ax, 0x20
jne 0x10009e2c
cmp cl, bl
je 0x10009d3c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dx, word [ebp]
mov word [edi + eax*2], dx
jmp 0x10009e3f
mov esi, dword [esp + 0x14]
sar esi, 1
lea ebp, [esi + 1]
xor edi, edi
cmp ebp, ebx
jbe 0x10009d68
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10002e89
add esp, 4
mov edi, eax
add esi, esi
lea eax, [esi + 2]
push eax
push edi
call fcn.1000cdf0
mov ecx, dword [esp + 0x4e0]
push esi
push ecx
push edi
call fcn.1000ce10
add esp, 0x14
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], ebx
call fcn.100035c0
push 0x10021074
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], ebx
call fcn.100035c0
push edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], ebx
call fcn.100035c0
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.10005a10
mov edx, dword [esp + 0x48]
push edx
call fcn.10002e75
mov eax, dword [esp + 0x3c]
push eax
call fcn.10002e75
mov ebp, dword [esp + 0x6c]
add esp, 0x14
xor esi, esi
mov edx, dword [esp + esi*4 + 0x34]
mov ecx, dword [ebp + 4]
push edx
call fcn.10016230
test eax, eax
jne 0x10009e69
add esi, 1
cmp esi, 2
jb 0x10009de5
lea esi, [esp + 0x3c]
mov ebp, 1
mov eax, dword [esi - 4]
sub esi, 4
push eax
call fcn.10002e75
add esp, 4
sub ebp, 1
mov dword [esi], ebx
jns 0x10009e07
cmp edi, ebx
je 0x10009e3f
push edi
call fcn.10002e75
add esp, 4
jmp 0x10009e3f
cmp cl, bl
je 0x10009e3f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov cx, word [ebp]
mov word [edi + eax*2], cx
mov ebp, dword [esp + 0x10]
add dword [esp + 0x14], 2
mov esi, dword [esp + 0x4d8]
add ebp, 2
cmp word [ebp], bx
mov dword [esp + 0x10], ebp
je 0x1000a01f
mov edi, dword [esp + 0x40]
jmp 0x10009ce0
mov ebp, 1
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x18], ebx
call fcn.100035c0
mov esi, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x28]
call fcn.100035c0
push esi
call fcn.10002e75
add esp, 4
push ebx
lea ecx, [esp + 0x4c]
call fcn.100075d0
mov edx, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], 0x10020bb8
mov dword [esp + 0x20], ebx
call fcn.100035c0
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebx
call fcn.100035c0
mov esi, dword [esp + 0x4f8]
mov eax, dword [esp + 0x4f4]
mov ecx, dword [esp + 0x4f0]
mov edx, dword [esp + 0x4ec]
push esi
push eax
mov eax, dword [esp + 0x4f0]
push ecx
mov ecx, dword [esp + 0x4f0]
push edx
mov edx, dword [esp + 0x4f0]
push eax
mov eax, dword [esp + 0x4f0]
push ecx
push edx
push eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x6c]
push edx
push eax
call fcn.100082f0
add esp, 0x2c
test eax, eax
je 0x1000a4bc
mov ecx, dword [esp + 0x20]
push ecx
call fcn.10002e75
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x28], ebx
call fcn.10002e75
mov eax, dword [esp + 0x54]
push eax
mov dword [esp + 0x28], ebx
call fcn.10002e75
add esp, 0xc
lea ebp, [esp + 0x3c]
mov dword [esp + 0x10], 1
lea ecx, [ecx]
mov edx, dword [ebp - 4]
sub ebp, 4
push edx
call fcn.10002e75
add esp, 4
sub dword [esp + 0x10], 1
mov dword [ebp], ebx
jns 0x10009f60
cmp edi, ebx
je 0x10009f86
push edi
call fcn.10002e75
add esp, 4
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x10009f97
push eax
call fcn.10002e75
add esp, 4
mov ebp, dword [esp + 0x54]
cmp ebp, ebx
jne 0x1000a570
mov ecx, dword [esp + 0x4f4]
mov edx, dword [esp + 0x4f0]
mov eax, dword [esp + 0x58]
cmp dword [eax + 0x18], ebx
mov eax, dword [eax + 0x74c]
push esi
push ecx
mov ecx, dword [esp + 0x4f4]
push edx
mov edx, dword [esp + 0x4f4]
push ecx
mov ecx, dword [esp + 0x4f4]
jne 0x1000a57a
push edx
mov edx, dword [esp + 0x4f4]
push ecx
mov ecx, dword [esp + 0x4f4]
push edx
mov edx, dword [esp + 0x4f4]
push ecx
mov ecx, dword [esp + 0x4f4]
push edx
push ecx
call eax
mov edx, dword [esp + 0x24]
push edx
mov esi, eax
call fcn.10002e75
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x4c0
ret 0x28
push esi
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], ebx
call fcn.100035c0
push 0x10021074
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.100035c0
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
call fcn.100035c0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.10005a10
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10002e75
mov edx, dword [esp + 0x24]
push edx
call fcn.10002e75
mov ebp, dword [esp + 0x6c]
add esp, 0x14
xor edi, edi
mov edi, edi
mov eax, dword [esp + edi*4 + 0x34]
mov ecx, dword [ebp + 4]
push eax
call fcn.10016230
test eax, eax
mov esi, dword [esp + 0x4f8]
jne 0x1000a0a5
add edi, 1
cmp edi, 2
jb 0x1000a080
jmp 0x1000a248
mov ecx, dword [esp + edi*4 + 0x34]
push ecx
mov ebp, 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x58], ebp
call fcn.100035c0
push ebx
mov dword [esp + 0x4c], 0x10020bb4
mov dword [esp + 0x50], ebx
call fcn.10002e75
push 2
mov dword [esp + 0x54], ebx
call fcn.10002e89
add esp, 8
mov dword [esp + 0x4c], eax
mov word [eax], bx
push 0x100203b8
lea ecx, [esp + 0x20]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x1c], 0x10020bb8
mov dword [esp + 0x20], ebx
call fcn.100035c0
push ebx
mov dword [esp + 0x24], ebx
call fcn.10002e75
push 2
mov dword [esp + 0x28], ebx
call fcn.10002e89
mov edx, dword [esp + 0x4fc]
mov ecx, dword [esp + 0x4f4]
mov ebp, dword [esp + 0x2c]
push esi
push edx
mov edx, dword [esp + 0x4f8]
mov dword [esp + 0x30], eax
mov word [eax], bx
mov eax, dword [esp + 0x500]
push eax
mov eax, dword [esp + 0x4f8]
push ecx
mov ecx, dword [esp + 0x4f8]
push edx
mov edx, dword [esp + 0x4f8]
push eax
push ecx
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x74]
push ecx
push ebp
call fcn.100082f0
add esp, 0x34
test eax, eax
jne 0x1000a21f
cmp dword [0x1005c4bc], ebx
je 0x1000a19b
push 0x10021020
lea ecx, [esp + 0x34]
call fcn.1000f610
mov ecx, eax
call fcn.1000f990
lea ecx, [esp + 0x30]
call fcn.1000f640
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esp + 0x20]
push edx
call fcn.10002e75
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x28], ebx
call fcn.10002e75
mov ecx, dword [esp + 0x54]
push ecx
mov dword [esp + 0x28], ebx
call fcn.10002e75
add esp, 0xc
mov dword [esp + 0x4c], ebx
lea esi, [esp + 0x3c]
mov edi, 1
lea esp, [esp]
mov edx, dword [esi - 4]
sub esi, 4
push edx
call fcn.10002e75
add esp, 4
sub edi, 1
mov dword [esi], ebx
jns 0x1000a1e0
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x1000a207
push eax
call fcn.10002e75
add esp, 4
push ebp
call fcn.10002e75
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c0
ret 0x28
mov eax, dword [esp + 0x20]
push eax
call fcn.10002e75
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x28], ebx
call fcn.10002e75
mov edx, dword [esp + 0x54]
push edx
mov dword [esp + 0x28], ebx
call fcn.10002e75
add esp, 0xc
lea edi, [esp + 0x3c]
mov ebp, 1
mov eax, dword [edi - 4]
sub edi, 4
push eax
call fcn.10002e75
add esp, 4
sub ebp, 1
mov dword [edi], ebx
jns 0x1000a251
jmp 0x10009f86
mov esi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], ebx
call fcn.100035c0
push 0x10021074
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.100035c0
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
call fcn.100035c0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.10005a10
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10002e75
mov edx, dword [esp + 0x24]
push edx
call fcn.10002e75
add esp, 0x14
xor edi, edi
jmp 0x1000a2d0
mov eax, dword [esp + 0x58]
mov edx, dword [esp + edi*4 + 0x34]
mov ecx, dword [eax + 4]
push edx
call fcn.10016230
test eax, eax
mov esi, dword [esp + 0x4f8]
jne 0x1000a2f9
add edi, 1
cmp edi, 2
jb 0x1000a2d0
jmp 0x1000a498
mov eax, dword [esp + edi*4 + 0x34]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x58], 1
call fcn.100035c0
push ebx
mov dword [esp + 0x4c], 0x10020bb4
mov dword [esp + 0x50], ebx
call fcn.10002e75
push 2
mov dword [esp + 0x54], ebx
call fcn.10002e89
add esp, 8
mov dword [esp + 0x4c], eax
mov word [eax], bx
add ebp, 2
push ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x54], 1
mov dword [esp + 0x1c], 0x10020bb8
mov dword [esp + 0x20], ebx
call fcn.100035c0
push ebx
mov dword [esp + 0x24], ebx
call fcn.10002e75
push 2
mov dword [esp + 0x28], ebx
call fcn.10002e89
mov ecx, dword [esp + 0x4fc]
mov edx, dword [esp + 0x4f8]
mov ebp, dword [esp + 0x2c]
push esi
push ecx
mov ecx, dword [esp + 0x4f8]
push edx
mov edx, dword [esp + 0x4f8]
mov dword [esp + 0x34], eax
mov word [eax], bx
mov eax, dword [esp + 0x500]
push eax
mov eax, dword [esp + 0x4f8]
push ecx
mov ecx, dword [esp + 0x4f8]
push edx
push eax
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x74]
push eax
push ebp
call fcn.100082f0
add esp, 0x34
test eax, eax
jne 0x1000a46f
cmp dword [0x1005c4bc], ebx
je 0x1000a3f1
push 0x10021020
lea ecx, [esp + 0x34]
call fcn.1000f610
mov ecx, eax
call fcn.1000f990
lea ecx, [esp + 0x30]
call fcn.1000f640
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.10002e75
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x28], ebx
call fcn.10002e75
mov eax, dword [esp + 0x54]
push eax
mov dword [esp + 0x28], ebx
call fcn.10002e75
add esp, 0xc
mov dword [esp + 0x4c], ebx
lea esi, [esp + 0x3c]
mov edi, 1
nop
mov ecx, dword [esi - 4]
sub esi, 4
push ecx
call fcn.10002e75
add esp, 4
sub edi, 1
mov dword [esi], ebx
jns 0x1000a430
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x1000a457
push eax
call fcn.10002e75
add esp, 4
push ebp
call fcn.10002e75
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c0
ret 0x28
mov edx, dword [esp + 0x20]
push edx
call fcn.10002e75
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x28], ebx
call fcn.10002e75
mov ecx, dword [esp + 0x54]
push ecx
mov dword [esp + 0x28], ebx
call fcn.10002e75
add esp, 0xc
lea edi, [esp + 0x3c]
mov ebp, 1
mov edx, dword [edi - 4]
sub edi, 4
push edx
call fcn.10002e75
add esp, 4
sub ebp, 1
mov dword [edi], ebx
jns 0x1000a4a1
jmp 0x10009f86
cmp dword [0x1005c4bc], ebx
je 0x1000a4e2
push 0x10021020
lea ecx, [esp + 0x34]
call fcn.1000f610
mov ecx, eax
call fcn.1000f990
lea ecx, [esp + 0x30]
call fcn.1000f640
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x20]
push eax
call fcn.10002e75
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x28], ebx
call fcn.10002e75
mov edx, dword [esp + 0x54]
push edx
mov dword [esp + 0x28], ebx
call fcn.10002e75
add esp, 0xc
mov dword [esp + 0x4c], ebx
lea esi, [esp + 0x3c]
jmp 0x1000a520
mov eax, dword [esi - 4]
sub esi, 4
push eax
call fcn.10002e75
add esp, 4
sub ebp, 1
mov dword [esi], ebx
jns 0x1000a520
cmp edi, ebx
je 0x1000a543
push edi
call fcn.10002e75
add esp, 4
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x1000a554
push eax
call fcn.10002e75
add esp, 4
mov ecx, dword [esp + 0x24]
push ecx
call fcn.10002e75
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c0
ret 0x28
mov dword [esp + 0x30], 1
jmp 0x1000a5ad
or edx, 4
push edx
mov edx, dword [esp + 0x4f4]
push ecx
mov ecx, dword [esp + 0x4f4]
push edx
mov edx, dword [esp + 0x4f4]
push ecx
mov ecx, dword [esp + 0x4f4]
push edx
push ecx
call eax
cmp eax, ebx
mov dword [esp + 0x30], eax
je 0x1000a8e2
mov edi, dword [esp + 0x4e8]
mov eax, dword [esi]
shr edi, 2
and edi, 1
push eax
mov dword [esp + 0x70], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.1000d030
add esp, 8
cmp ebp, ebx
mov dword [esp + 0x64], eax
je 0x1000a84f
mov ecx, dword [esp + 0x24]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea edx, [esp + 0x6c]
push edx
mov edi, eax
push 0x40
lea eax, [esp + 0xd4]
push eax
push edi
call ebp
mov ecx, dword [esp + 0x104]
push ebx
push ebx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea edx, [esp + 0x6c]
push edx
push 0xf8
lea eax, [esp + 0x3e4]
push eax
push edi
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x428]
mov ecx, dword [0x1005c48c]
xor edx, edx
mov eax, edi
div ecx
mov ebp, dword [esp + 0x40c]
mov dword [esp + 0x60], ebp
cmp edx, ebx
jne 0x1000a664
mov dword [esp + 0x10], edi
jmp 0x1000a66e
add eax, 1
imul eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi]
lea ecx, [esp + 0x34]
push ecx
push 0x18
lea edx, [esp + 0x78]
push edx
push ebx
push eax
call dword [0x1005c4c4]
mov eax, dword [esp + 0x74]
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi]
push 0x1d8
lea edx, [esp + 0x208]
push edx
push eax
push ecx
call edi
mov ecx, dword [esp + 0x208]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esi]
push 0x40
lea eax, [esp + 0x90]
push eax
push ecx
push edx
call edi
mov edx, dword [esp + 0x208]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc8]
push 0xf8
lea ecx, [esp + 0x110]
push ecx
mov ecx, dword [esi]
add eax, edx
push eax
push ecx
call edi
mov eax, dword [esp + 0x208]
mov ecx, dword [esp + 0xc4]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esi]
push 4
push 0xf8
add ecx, eax
push ecx
push edx
mov dword [esp + 0x204], ebx
mov dword [esp + 0x208], ebx
call edi
mov edx, dword [esp + 0x208]
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0xc8]
push 0xf8
lea ecx, [esp + 0x110]
push ecx
mov ecx, dword [esi]
add eax, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x208]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0xc8]
push eax
mov eax, dword [esi]
push 0xf8
add edx, ecx
push edx
push eax
call edi
mov edi, dword [esp + 0x158]
mov ecx, dword [0x1005c48c]
xor edx, edx
mov eax, edi
div ecx
cmp edx, ebx
je 0x1000a78e
lea edi, [eax + 1]
imul edi, ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x208]
xor eax, eax
add ecx, ebp
cmp ecx, edx
mov dword [esp + 0x2c], eax
jbe 0x1000a7d5
add edi, edx
cmp ebp, edi
jae 0x1000a7d5
cmp ebp, edx
jae 0x1000a7c4
cmp edx, ecx
ja 0x1000a7c4
mov eax, 1
mov dword [esp + 0x48], ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], eax
cmp edi, ecx
jae 0x1000a7e6
mov dword [esp + eax*4 + 0x48], edi
mov dword [esp + eax*4 + 0x18], ecx
add eax, 1
jmp 0x1000a7e2
mov eax, 1
mov dword [esp + 0x48], ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x1000a843
mov edi, edi
mov eax, dword [esp + 0x10]
mov edi, dword [esp + eax*4 + 0x48]
mov ebp, dword [esp + eax*4 + 0x18]
mov edx, dword [esi]
push 1
push 0x2000
sub ebp, edi
push ebp
push edi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test eax, eax
je 0x1000a884
mov eax, dword [esi]
push 0x40
push 0x1000
push ebp
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test eax, eax
je 0x1000a8c1
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
jl 0x1000a7f0
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x60], ebp
mov ebp, dword [esp + 0x54]
cmp dword [esp + 0x64], ebx
je 0x1000a95f
cmp ebp, ebx
je 0x1000a8fe
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x64], 1
call fcn.1000daf0
mov eax, dword [eax]
add esp, 8
xor ecx, ecx
jmp 0x1000a903
mov ecx, dword [esi]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi]
push eax
call edi
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esi + 4], ebx
mov dword [esi], ebx
call fcn.10002e75
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c0
ret 0x28
mov edx, dword [esi]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi]
push ecx
call edi
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov edx, dword [esp + 0x24]
push edx
call fcn.10002e75
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c0
ret 0x28
mov ecx, dword [esi + 4]
xor eax, eax
mov edx, ebp
neg edx
sbb edx, edx
and edx, dword [esp + 0x4e8]
push edx
mov edx, ebp
neg edx
sbb edx, edx
and edx, dword [esp + 0x64]
push edx
push eax
mov eax, dword [esi]
push ebp
push ecx
mov ecx, dword [esp + 0x6c]
push eax
call fcn.10008580
test byte [esp + 0x5c], 1
mov ebp, eax
je 0x1000a941
mov ecx, dword [esp + 0x64]
push ecx
call fcn.10002e75
add esp, 4
cmp ebp, ebx
je 0x1000a955
cmp edi, ebx
je 0x1000a96d
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x1000a96d
cmp edi, ebx
jne 0x1000a96d
mov eax, dword [esi + 4]
push eax
jmp 0x1000a967
cmp edi, ebx
jne 0x1000a96d
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esp + 0x24]
push edx
call fcn.10002e75
mov eax, dword [esp + 0x34]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c0
ret 0x28