Function at 0x1009768
Capabilities:
Terminate process

Disassembly:
push dword [ebp + 0xc]
mov ecx, esi
mov dword [esi + 0x18], 7
call fcn.01008a6a
pop esi
pop ebp
ret 8
test byte [ebp - 0x3c], 1
jne 0x100e4c8
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
add byte [ecx], al
call fcn.01001635
mov dword [0x10540d0], eax
cmp dword [0x10540c4], 0
jne 0x102dba8
out dx, eax
push eax
add al, byte [eax]
push eax
call dword [sym.imp.msvcrt.dll_exit]
jecxz 0x1008ab5
add byte [ecx], al
stosd dword es:[edi], eax
lodsb al, byte [esi]
add eax, dword [ecx]
test dword [ebx + eax + 0x3acce01], ebp
add dword [edx], eax
lodsd eax, dword [esi]
add eax, dword [ecx]
push edx
lodsd eax, dword [esi]
add eax, dword [ecx]
lodsd eax, dword ss:[esi]
add eax, dword [ecx]
mov dword [0x870103ad], eax
lodsd eax, dword [esi]
add eax, dword [ecx]
fisubr dword [esi - 0x3fadfefd]
add byte [ecx], al
std
scasb al, byte es:[edi]
add eax, dword [ecx]
ja 0x1008aa0
add eax, dword [ecx]
push edi
add byte [ecx], ch
outsb dx, byte [esi]
add byte [eax + eax + 0x6f], ah
add byte [edi], dh
pop edi
add byte [eax], dl
insb byte es:[edi], dx
add byte [ecx], ah
arpl word [eax], ax
add byte gs:[ebp], ch
add byte gs:[esi], ch
je 0x1008b14
add byte [eax], al
nop
nop
mov ch, dh
add byte [ecx], al
cmp dword [ebp + 0xc], 0
lea eax, [esi + 4]
push edi
mov edi, dword [eax]
ja 0x10263b5
push edi
call fcn.01001ff8
pop ecx
pop edi
jmp 0x1008a4f
call fcn.010094b8
push 0x58
push 0x10098e0
call fcn.01008224
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1054a50
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x102db21
xor esi, esi
inc esi
mov eax, dword [0x105417c]
cmp eax, esi
je 0x102db3f
mov eax, dword [0x105417c]
test eax, eax
jne 0x100e4d1
mov dword [0x105417c], esi
push 0x10098dc
push 0x10098d0
call fcn.0100973f
pop ecx
pop ecx
test eax, eax
jne 0x102dbcc
mov eax, dword [0x105417c]
cmp eax, esi
jne 0x1009819
push 0x10098cc
push 0x1009864
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x105417c], 2
test ebx, ebx
jne 0x1009825
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1055ae0], 0
jne 0x102db4c
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
jbe 0x1009908
cmp al, 0x22
je 0x100e4dc
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
jne 0x102db70
inc esi
jmp 0x1009839
test al, al
je 0x1009916
cmp dword [ebp - 0x1c], 0
jne 0x1009846
mov al, byte [esi]
test al, al
je 0x1008a8c
cmp al, 0x20
ja 0x1008a8c
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1009916
movzx eax, word [ebp - 0x38]
jmp 0x1008a99
mov dword [0x10580bc], esi
jmp 0x10097f5
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x100984e
push dword [ebp + 0xc]
push edi
push 8
push eax
call fcn.01009122
jmp 0x1008b2c
cmp eax, esi
jne 0x102db2f
xor esi, esi
inc esi
mov ebx, esi
jmp 0x10097bc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10097a7
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10097f5
push 0x1055ae0
call fcn.010488d7
pop ecx
test eax, eax
je 0x1009832
push 0
push 2
push 0
call dword [0x1055ae0]
jmp 0x1009832
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1009861
cmp dword [0x10580bc], 0
jne 0x102dbb7
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10540d0]
jmp 0x102dbd8
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01008269
ret