Function at 0x10060330
Capabilities:
Create thread
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101716c6
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x101cfdb0]
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, ecx
mov dword [ebp - 0xd8], esi
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x1bc]
mov dword [0x10257888], eax
test edx, edx
je 0x10060ca9
cmp dword [ebp + 0xc], 1
jne 0x10060ca9
mov ecx, dword [esi + 0xf8]
test ecx, ecx
je 0x100603bb
cmp byte [ecx + 0x10d], 0
je 0x100603bb
cmp edx, dword [esi + 4]
jne 0x100603bb
push 0
call dword [0x101b07e0]
mov ecx, dword [esi + 0x1bc]
test ecx, ecx
je 0x100603b8
push 0
call dword [0x101b07e0]
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x104]
test eax, eax
je 0x10060ca5
cmp byte [eax + 0x10d], 0
je 0x10060ca5
cmp edx, dword [esi + 0x174]
jne 0x100603ec
mov ecx, esi
call fcn.10061e60
mov al, 1
jmp 0x10060cab
mov eax, dword [esi + 0x198]
cmp edx, eax
jne 0x1006040d
cmp dword [eax + 0xe0], 3
sete al
mov byte [esi + 0x1a2], al
mov al, 1
jmp 0x10060cab
cmp edx, dword [esi + 0x178]
jne 0x100609fc
mov edi, dword [0x102710b4]
mov ecx, dword [edi + 0x324]
test ecx, ecx
je 0x1006043d
mov eax, dword [0xf3e860]
mov al, byte [eax + 0xce8]
mov byte [ecx + 0x45], al
mov edi, dword [0x102710b4]
mov eax, dword [edi + 0x324]
cmp byte [eax + 0x45], 0x15
je 0x10060592
movaps xmm0, xmmword [str._JP]
xor ecx, ecx
movups xmmword [ebp - 0xb0], xmm0
mov word [ebp - 0x90], 0xb
movaps xmm0, xmmword [0x101b7cc0]
movups xmmword [ebp - 0xa0], xmm0
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp - 0xb0]
xor byte [ebp + ecx - 0xaf], al
inc ecx
cmp ecx, 0x20
jb 0x10060480
sub esp, 0x1c
mov byte [ebp - 0x8f], 0
lea eax, [ebp - 0xaf]
mov ecx, esp
push eax
call fcn.100461a0
lea eax, [ebp - 0x54]
push eax
call fcn.100492e0
add esp, 0x20
mov dword [ebp - 4], 0
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0xd8], ecx
jb 0x100604d5
mov ecx, dword [ecx]
mov dword [ebp - 0xd8], ecx
mov ebx, ecx
lea ecx, [ebx + 1]
nop word [eax + eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100604e0
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.10117010
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xdc], edi
call fcn.101193b0
push ebx
push dword [ebp - 0xd8]
lea esi, [edi + 0x20]
push esi
call fcn.10118c50
add esp, 0x1c
mov dword [edi + 0x14], ebx
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
mov ecx, dword ds:[0xf3690c]
push 0
push 0xba0f30
push dword [ebp - 0xdc]
mov eax, dword [0x101b06ec]
call eax
push edi
call fcn.101163d0
add esp, 4
lea ecx, [ebp - 0x54]
call fcn.100432e0
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x10060564
inc eax
push eax
push dword [ebp - 0x50]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x54]
push 8
push eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
call fcn.100479d0
add esp, 8
mov al, 1
jmp 0x10060cab
cmp byte [esi + 0x1a9], 0
jne 0x100606e2
movaps xmm0, xmmword [0x101b7990]
xor ecx, ecx
movups xmmword [ebp - 0xd4], xmm0
mov word [ebp - 0xb4], 0x75
movaps xmm0, xmmword [0x101b7b90]
movups xmmword [ebp - 0xc4], xmm0
nop word [eax + eax]
mov al, byte [ebp - 0xd4]
xor byte [ebp + ecx - 0xd3], al
inc ecx
cmp ecx, 0x20
jb 0x100605d0
sub esp, 0x1c
mov byte [ebp - 0xb3], 0
lea eax, [ebp - 0xd3]
mov ecx, esp
push eax
call fcn.100461a0
lea eax, [ebp - 0x70]
push eax
call fcn.100492e0
add esp, 0x20
mov dword [ebp - 4], 1
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0xd8], ecx
jb 0x10060625
mov ecx, dword [ecx]
mov dword [ebp - 0xd8], ecx
mov ebx, ecx
lea ecx, [ebx + 1]
nop word [eax + eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10060630
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.10117010
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xdc], edi
call fcn.101193b0
push ebx
push dword [ebp - 0xd8]
lea esi, [edi + 0x20]
push esi
call fcn.10118c50
add esp, 0x1c
mov dword [edi + 0x14], ebx
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
mov ecx, dword ds:[0xf3690c]
push 0
push 0xba0f30
push dword [ebp - 0xdc]
mov eax, dword [0x101b06ec]
call eax
push edi
call fcn.101163d0
add esp, 4
lea ecx, [ebp - 0x70]
call fcn.100432e0
mov eax, dword [ebp - 0x58]
cmp eax, 0x10
jb 0x100606b4
inc eax
push eax
push dword [ebp - 0x6c]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x70]
push 8
push eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0xf
mov byte [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
call fcn.100479d0
add esp, 8
mov al, 1
jmp 0x10060cab
cmp dword [edi + 0x174], 0
jne 0x10060706
push 0
push 0
push 0
push 0x100a2e00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x174], eax
lea ecx, [ebp - 0x100]
mov bl, 0xf1
call fcn.1004f2b0
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0xe8]
mov eax, ecx
mov edx, dword [ebp - 0xec]
sub eax, edx
mov dword [ebp - method.Packet.virtual_0], vtable.Packet.0
mov byte [ebp - 0xe0], 0xe9
cmp eax, 0x989680
jb 0x10060765
push 0x97
push 0x101aff08
push str.size_____10000000
call fcn.10133310
mov ecx, dword [ebp - 0xe8]
add esp, 0xc
mov edx, dword [ebp - 0xec]
mov eax, dword [ebp - 0xf4]
sub ecx, edx
lea edx, [eax + 1]
cmp ecx, edx
jae 0x10060786
push edx
lea ecx, [ebp - 0xf0]
call fcn.10051550
mov eax, dword [ebp - 0xf4]
push eax
lea ecx, [ebp - 0xf0]
call fcn.100514e0
mov byte [eax], bl
mov ecx, dword [ebp - 0xf4]
inc ecx
mov dword [ebp - 0xf4], ecx
mov dword [ebp - 4], 3
mov bl, 1
mov edx, dword [ebp - 0xe8]
mov eax, edx
mov edi, dword [ebp - 0xec]
sub eax, edi
cmp eax, 0x989680
jb 0x100607ea
push 0x97
push 0x101aff08
push str.size_____10000000
call fcn.10133310
mov edx, dword [ebp - 0xe8]
add esp, 0xc
mov edi, dword [ebp - 0xec]
mov ecx, dword [ebp - 0xf4]
sub edx, edi
lea eax, [ecx + 1]
cmp edx, eax
jae 0x10060805
push eax
lea ecx, [ebp - 0xf0]
call fcn.10051550
mov ecx, dword [ebp - 0xf4]
push ecx
lea ecx, [ebp - 0xf0]
call fcn.100514e0
mov byte [eax], bl
mov edx, dword [ebp - 0xe8]
mov eax, edx
mov ecx, dword [ebp - 0xf4]
mov edi, dword [ebp - 0xec]
inc ecx
mov bl, byte [esi + 0x1a9]
sub eax, edi
mov dword [ebp - 0xf4], ecx
cmp eax, 0x989680
jb 0x10060866
push 0x97
push 0x101aff08
push str.size_____10000000
call fcn.10133310
mov edx, dword [ebp - 0xe8]
add esp, 0xc
mov edi, dword [ebp - 0xec]
mov ecx, dword [ebp - 0xf4]
sub edx, edi
lea eax, [ecx + 1]
cmp edx, eax
jae 0x10060881
push eax
lea ecx, [ebp - 0xf0]
call fcn.10051550
mov ecx, dword [ebp - 0xf4]
push ecx
lea ecx, [ebp - 0xf0]
call fcn.100514e0
mov byte [eax], bl
mov edx, dword [ebp - 0xe8]
mov eax, edx
mov ecx, dword [ebp - 0xf4]
mov bl, byte [esi + 0x1a2]
inc ecx
mov esi, dword [ebp - 0xec]
sub eax, esi
mov dword [ebp - 0xf4], ecx
cmp eax, 0x989680
jb 0x100608e2
push 0x97
push 0x101aff08
push str.size_____10000000
call fcn.10133310
mov edx, dword [ebp - 0xe8]
add esp, 0xc
mov esi, dword [ebp - 0xec]
mov ecx, dword [ebp - 0xf4]
sub edx, esi
lea eax, [ecx + 1]
cmp edx, eax
jae 0x100608fd
push eax
lea ecx, [ebp - 0xf0]
call fcn.10051550
mov ecx, dword [ebp - 0xf4]
push ecx
lea ecx, [ebp - 0xf0]
call fcn.100514e0
mov byte [eax], bl
inc dword [ebp - 0xf4]
cmp byte [0x10270fa7], 0
je 0x1006098b
mov eax, dword [ebp - 0xe8]
sub eax, dword [ebp - 0xec]
inc eax
movzx edi, ax
push edi
call fcn.10117010
mov cl, byte [ebp - 0xe0]
mov esi, eax
add esp, 4
mov byte [esi], cl
mov eax, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xec]
sub eax, ecx
je 0x1006095b
push eax
push ecx
lea eax, [esi + 1]
push eax
call fcn.10118c50
add esp, 0xc
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xdc], edi
mov ecx, dword [0x101b0708]
mov ecx, dword ds:[ecx]
push dword [ebp - 0xdc]
push dword [ebp - 0xd8]
call dword [0x101b06a4]
push esi
call fcn.101163d0
add esp, 4
lea ecx, [ebp - 0xf0]
mov dword [ebp - method.ByteBuffer.virtual_0], vtable.ByteBuffer.0
call fcn.100432e0
mov ecx, dword [ebp - 0xec]
test ecx, ecx
je 0x100609da
mov eax, dword [ebp - 0xe4]
sub eax, ecx
push eax
push ecx
call fcn.100479d0
add esp, 8
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov eax, dword [ebp - 0xf0]
push 8
push eax
mov dword [ebp - 0xf0], 0
call fcn.100479d0
add esp, 8
mov al, 1
jmp 0x10060cab
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp edx, dword [esi + 0x17c]
jne 0x10060c1e
mov byte [esi + 0x1a9], 0
mov edi, 0x10c
mov byte [esi + 0x1a2], 0
mov eax, dword [0x102710b4]
mov eax, dword [eax + 0x478]
mov ebx, dword [edi + eax]
test ebx, ebx
je 0x10060a57
push 4
push ebx
call ecx
test eax, eax
jne 0x10060a51
mov dword [0x10271054], ebx
mov dword [0x10270fec], 2
call fcn.100ce410
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add edi, 4
cmp edi, 0x11c
jl 0x10060a21
mov edi, dword [esi + 0x174]
test edi, edi
je 0x10060a8a
push 4
push edi
call ecx
test eax, eax
jne 0x10060a8a
mov dword [0x10271054], edi
mov dword [0x10270fec], 2
call fcn.100ce410
mov esi, dword [esi + 0x198]
test esi, esi
je 0x10060ab6
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10060ab6
mov dword [0x10271054], esi
mov dword [0x10270fec], 2
call fcn.100ce410
movaps xmm0, xmmword [0x101b7cd0]
xor ecx, ecx
mov eax, dword [0x102710b4]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x18], 0x584d4d52
movaps xmm0, xmmword [0x101b7d90]
mov word [eax + 0x448], 0x100
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x14], 0x1359
mov byte [ebp - 0x12], 0
nop dword [eax]
mov al, byte [ebp - 0x38]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0x25
jb 0x10060af0
sub esp, 0x1c
mov byte [ebp - 0x12], 0
lea eax, [ebp - 0x37]
mov ecx, esp
push eax
call fcn.100461a0
lea eax, [ebp - 0x8c]
push eax
call fcn.100492e0
add esp, 0x20
mov dword [ebp - 4], 4
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0xd8], ecx
jb 0x10060b3c
mov ecx, dword [ecx]
mov dword [ebp - 0xd8], ecx
mov ebx, ecx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10060b41
sub ebx, ecx
lea esi, [ebx + 0x21]
push esi
call fcn.10117010
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xdc], edi
call fcn.101193b0
push ebx
push dword [ebp - 0xd8]
lea esi, [edi + 0x20]
push esi
call fcn.10118c50
add esp, 0x1c
mov dword [edi + 0x14], ebx
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
mov ecx, dword ds:[0xf3690c]
push 0
push 0xba0f30
push dword [ebp - 0xdc]
mov eax, dword [0x101b06ec]
call eax
push edi
call fcn.101163d0
add esp, 4
lea ecx, [ebp - 0x8c]
call fcn.100432e0
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x10060bcb
inc eax
push eax
push dword [ebp - 0x88]
call fcn.100479d0
add esp, 8
mov eax, dword [ebp - 0x8c]
push 8
push eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
mov dword [ebp - 0x8c], 0
call fcn.100479d0
mov eax, dword [0x102710b4]
add esp, 8
cmp dword [eax + 0x174], 0
je 0x10060ca5
mov dword [eax + 0x174], 0
mov al, 1
jmp 0x10060cab
xor bh, bh
movzx eax, bh
cmp edx, dword [esi + eax*4 + 0x10c]
jne 0x10060c9a
xor bl, bl
lea edi, [esi + 0x10c]
cmp bh, bl
jne 0x10060c5d
mov al, bh
inc al
mov byte [esi + 0x1a9], al
mov esi, dword [edi]
test esi, esi
je 0x10060c87
push 4
push esi
call ecx
test eax, eax
jne 0x10060c81
mov dword [0x10270fec], 3
jmp 0x10060c76
mov esi, dword [edi]
test esi, esi
je 0x10060c87
push 4
push esi
call ecx
test eax, eax
jne 0x10060c81
mov dword [0x10270fec], 2
mov dword [0x10271054], esi
call fcn.100ce410
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov esi, dword [ebp - 0xd8]
inc bl
add edi, 4
cmp bl, 4
jb 0x10060c34
mov edx, dword [ebp + 8]
inc bh
cmp bh, 4
jb 0x10060c20
mov al, 1
jmp 0x10060cab
xor al, al
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.101163c0
mov esp, ebp
pop ebp
ret 8