Function at 0x100118fc
Capabilities:
Encode data using xor

Disassembly:
push 0x68
mov eax, 0x1003570b
call fcn.10034356
mov ebx, ecx
mov dword [ebp - 0x68], ebx
cmp dword [0x1007cfb0], 0
je 0x1001215f
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x41
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x2b], 0
call fcn.10002607
xor edx, edx
mov dword [ebp - 4], edx
mov ecx, edx
movaps xmm0, xmmword [0x1003e810]
mov esi, dword [ebx]
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0x7f65
mov byte [ebp - 0x12], dl
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x11
jb 0x1001194d
sub esp, 0x18
mov byte [ebp - 0x12], dl
lea eax, [ebp - 0x23]
mov ecx, esp
push eax
call fcn.10002607
mov ecx, esi
call fcn.1000914c
mov ebx, eax
add esp, 0x18
mov dword [ebp - 0x74], ebx
test ebx, ebx
je 0x10012157
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push ebx
call edi
test eax, eax
jne 0x10012157
mov ecx, ebx
call fcn.10009b84
push eax
lea ecx, [ebp - 0x44]
call fcn.10003bad
cmp dword [ebp - 0x30], 0xf
lea eax, [ebp - 0x44]
cmova eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
pop ecx
mov ecx, eax
mov dword [ebp - 0x6c], ecx
test ecx, ecx
jne 0x100119d7
mov edx, 0x1006
lea ecx, [ebp - 0x28]
call fcn.10004ce0
mov byte [ebp - 4], 1
jmp 0x10012142
movzx eax, byte [ebp + 8]
mov dword [ebp - 0x70], eax
sub eax, 5
je 0x100119f6
sub eax, 1
je 0x100119f6
sub eax, 1
je 0x100119f6
sub eax, 1
jne 0x10011b17
cmp byte [0x1007cfbc], 0
mov ebx, dword [0x1007cfb0]
je 0x10011a32
mov ecx, 0x10b8134
call fcn.10009d18
mov esi, eax
test esi, esi
je 0x10011a32
push 4
push esi
call edi
test eax, eax
jne 0x10011a32
push 4
add esi, 0x6dc
push esi
call edi
test eax, eax
jne 0x10011a32
mov al, byte [esi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x10011ab1
sub eax, 1
jne 0x10011b17
mov ebx, dword [0x1007cfb0]
cmp byte [0x1007cfbc], al
je 0x10011a81
mov ecx, 0x10b8134
call fcn.10009d18
mov esi, eax
test esi, esi
je 0x10011a81
push 4
push esi
call edi
test eax, eax
jne 0x10011a81
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x10011a81
mov ax, word [esi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
sub eax, 0xc9
je 0x10011a9b
sub eax, 1
je 0x10011a9b
sub eax, 1
je 0x10011a9b
sub eax, 1
jne 0x10011b17
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.10004ce0
mov byte [ebp - 4], 3
jmp 0x10012142
cmp byte [0x1007cfbc], 0
mov ebx, dword [0x1007cfb0]
je 0x10011aef
mov ecx, 0x10b8134
call fcn.10009d18
mov esi, eax
test esi, esi
je 0x10011aef
push 4
push esi
call edi
test eax, eax
jne 0x10011aef
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x10011aef
mov ax, word [esi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
sub eax, 0x65
je 0x10012131
sub eax, 1
je 0x10012131
sub eax, 1
je 0x10012131
sub eax, 1
je 0x10012131
mov cl, byte [ebp + 8]
cmp cl, 8
jne 0x10011c4c
cmp byte [0x1007cfbc], 0
mov ebx, dword [0x1007cfb0]
je 0x10011b5f
mov ecx, 0x10b8134
call fcn.10009d18
mov esi, eax
test esi, esi
je 0x10011b5f
push 4
push esi
call edi
test eax, eax
jne 0x10011b5f
push 4
add esi, 0x6dc
push esi
call edi
test eax, eax
jne 0x10011b5f
mov al, byte [esi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x10011bdf
sub eax, 1
jne 0x10011d64
mov ebx, dword [0x1007cfb0]
cmp byte [0x1007cfbc], al
je 0x10011bae
mov ecx, 0x10b8134
call fcn.10009d18
mov esi, eax
test esi, esi
je 0x10011bae
push 4
push esi
call edi
test eax, eax
jne 0x10011bae
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x10011bae
mov ax, word [esi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
sub eax, 0xcf
je 0x10011bc9
dec eax
sub eax, 1
je 0x10011bc9
dec eax
sub eax, 1
jne 0x10011d64
mov edx, 0x1007
lea ecx, [ebp - 0x28]
call fcn.10004ce0
mov byte [ebp - 4], 5
jmp 0x10012142
cmp byte [0x1007cfbc], 0
mov ebx, dword [0x1007cfb0]
je 0x10011c1d
mov ecx, 0x10b8134
call fcn.10009d18
mov esi, eax
test esi, esi
je 0x10011c1d
push 4
push esi
call edi
test eax, eax
jne 0x10011c1d
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x10011c1d
mov ax, word [esi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
sub eax, 0x6b
je 0x10011c36
dec eax
sub eax, 1
je 0x10011c36
dec eax
sub eax, 1
jne 0x10011e75
mov edx, 0x1007
lea ecx, [ebp - 0x28]
call fcn.10004ce0
mov byte [ebp - 4], 4
jmp 0x10012142
cmp cl, 7
jne 0x10011d64
cmp byte [0x1007cfbc], 0
mov ebx, dword [0x1007cfb0]
je 0x10011c91
mov ecx, 0x10b8134
call fcn.10009d18
mov esi, eax
test esi, esi
je 0x10011c91
push 4
push esi
call edi
test eax, eax
jne 0x10011c91
push 4
add esi, 0x6dc
push esi
call edi
test eax, eax
jne 0x10011c91
mov al, byte [esi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x10011d05
sub eax, 1
jne 0x10011e75
mov ebx, dword [0x1007cfb0]
cmp byte [0x1007cfbc], al
je 0x10011ce0
mov ecx, 0x10b8134
call fcn.10009d18
mov esi, eax
test esi, esi
je 0x10011ce0
push 4
push esi
call edi
test eax, eax
jne 0x10011ce0
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x10011ce0
mov ax, word [esi]
mov word [ebx + 0x3e], ax
mov eax, 0xcd
cmp word [ebx + 0x3e], ax
jne 0x10011e75
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.10004ce0
mov byte [ebp - 4], 7
jmp 0x10012142
cmp byte [0x1007cfbc], 0
mov ebx, dword [0x1007cfb0]
je 0x10011d43
mov ecx, 0x10b8134
call fcn.10009d18
mov esi, eax
test esi, esi
je 0x10011d43
push 4
push esi
call edi
test eax, eax
jne 0x10011d43
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x10011d43
mov ax, word [esi]
mov word [ebx + 0x3e], ax
cmp word [ebx + 0x3e], 0x69
jne 0x10011e75
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.10004ce0
mov byte [ebp - 4], 6
jmp 0x10012142
cmp byte [ebp + 8], 6
jne 0x10011e75
cmp byte [0x1007cfbc], 0
mov ebx, dword [0x1007cfb0]
je 0x10011daa
mov ecx, 0x10b8134
call fcn.10009d18
mov esi, eax
test esi, esi
je 0x10011daa
push 4
push esi
call edi
test eax, eax
jne 0x10011daa
push 4
add esi, 0x6dc
push esi
call edi
test eax, eax
jne 0x10011daa
mov al, byte [esi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x10011e1a
sub eax, 1
jne 0x10011e75
mov ebx, dword [0x1007cfb0]
cmp byte [0x1007cfbc], al
je 0x10011df9
mov ecx, 0x10b8134
call fcn.10009d18
mov esi, eax
test esi, esi
je 0x10011df9
push 4
push esi
call edi
test eax, eax
jne 0x10011df9
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x10011df9
mov ax, word [esi]
mov word [ebx + 0x3e], ax
mov eax, 0xcf
cmp word [ebx + 0x3e], ax
jne 0x10011e75
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.10004ce0
mov byte [ebp - 4], 9
jmp 0x10012142
cmp byte [0x1007cfbc], 0
mov ebx, dword [0x1007cfb0]
je 0x10011e58
mov ecx, 0x10b8134
call fcn.10009d18
mov esi, eax
test esi, esi
je 0x10011e58
push 4
push esi
call edi
test eax, eax
jne 0x10011e58
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x10011e58
mov ax, word [esi]
mov word [ebx + 0x3e], ax
cmp word [ebx + 0x3e], 0x6b
jne 0x10011e75
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.10004ce0
mov byte [ebp - 4], 8
jmp 0x10012142
mov eax, dword [ebp - 0x70]
sub eax, 5
je 0x10011f1c
sub eax, 1
je 0x10011ef0
sub eax, 1
je 0x10011ec4
sub eax, 1
jne 0x10012157
mov eax, dword [ebp - 0x68]
mov cl, 0x1c
mov dword [ebp - 0x1c], 0x6e686f1c
mov dword [ebp - 0x18], 0x437b7275
mov word [ebp - 0x14], 0x2b
mov esi, dword [eax]
xor eax, eax
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 8
jae 0x10011f48
mov cl, byte [ebp - 0x1c]
jmp 0x10011eb1
mov eax, dword [ebp - 0x68]
mov cl, 0x58
mov dword [ebp - 0x1c], 0x2a2c2b58
mov dword [ebp - 0x18], 0x73f3631
mov word [ebp - 0x14], 0x6e
mov esi, dword [eax]
xor eax, eax
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 8
jae 0x10011f48
mov cl, byte [ebp - 0x1c]
jmp 0x10011ee1
mov eax, dword [ebp - 0x68]
mov cl, 0x25
mov dword [ebp - 0x1c], 0x57515625
mov dword [ebp - 0x18], 0x7a424b4c
mov word [ebp - 0x14], 0x10
mov esi, dword [eax]
xor eax, eax
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 8
jae 0x10011f48
mov cl, byte [ebp - 0x1c]
jmp 0x10011f0d
mov eax, dword [ebp - 0x68]
mov cl, 0x48
mov dword [ebp - 0x1c], 0x3a3c3b48
mov dword [ebp - 0x18], 0x172f2621
mov word [ebp - 0x14], 0x7c
mov esi, dword [eax]
xor eax, eax
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 8
jae 0x10011f48
mov cl, byte [ebp - 0x1c]
jmp 0x10011f39
sub esp, 0x18
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x1b]
mov ecx, esp
push eax
call fcn.10002607
mov ecx, esi
call fcn.1000914c
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x10012157
push 4
push ebx
call edi
test eax, eax
jne 0x10012157
mov ecx, ebx
call fcn.10009b84
push eax
lea ecx, [ebp - 0x44]
call fcn.10003bad
cmp dword [ebp - 0x30], 0xf
lea eax, [ebp - 0x44]
cmova eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp byte [0x1007cfbc], 0
mov esi, eax
mov eax, dword [0x1007cfb0]
pop ecx
mov dword [ebp - 0x2c], eax
je 0x10011ff1
mov ecx, 0x10b8134
call fcn.10009d18
mov dword [ebp - 0x64], eax
test eax, eax
je 0x10011fee
push 4
push eax
call edi
test eax, eax
jne 0x10011fee
mov eax, dword [ebp - 0x64]
add eax, 0x6e8
push 4
push eax
mov dword [ebp - 0x64], eax
call edi
test eax, eax
jne 0x10011fee
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x2c]
mov al, byte [eax]
mov byte [ecx + 0x3c], al
mov eax, ecx
jmp 0x10011ff1
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + 0x3c]
cmp esi, eax
jl 0x1001200f
mov edx, 0x1131
lea ecx, [ebp - 0x28]
call fcn.10004ce0
mov byte [ebp - 4], 0xa
jmp 0x10012142
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x2c], 0x32
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
push 0x1000
lea ecx, [ebp - 0x60]
call fcn.10004a49
push 1
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], vtable.Packet.0
call fcn.10004beb
mov al, byte [ebp + 8]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xc
mov byte [ebp - 0x2c], al
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.10004beb
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
sub edx, eax
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x2c], eax
cmp edx, 0x4000
ja 0x10012087
mov ecx, dword ds:[0x1003863c]
mov ecx, dword ds:[ecx]
push dword [ebp - 0x64]
push dword [ebp - 0x2c]
call dword [0x10038638]
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x74]
dec eax
mov edx, eax
mov dword [ebp - 0x6c], eax
call fcn.10009c04
mov edi, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
mov eax, dword [edi]
mov dword [eax + 0x158], ecx
mov eax, dword [edi]
cmp dword [eax + 0x158], 0
ja 0x100120d9
mov ecx, dword [edi + 0x18]
mov dl, 2
call fcn.1000944c
mov ecx, dword [edi + 0x1c]
mov dl, 2
call fcn.1000944c
mov ecx, dword [edi + 0x20]
mov dl, 2
call fcn.1000944c
mov ecx, dword [edi + 0x24]
mov dl, 2
call fcn.1000944c
inc esi
mov ecx, ebx
mov edx, esi
call fcn.10009c04
mov eax, dword [ebp - 0x70]
sub eax, 5
je 0x10012118
sub eax, 1
je 0x1001210e
sub eax, 1
je 0x10012104
sub eax, 1
jne 0x10012120
mov eax, dword [edi]
mov dword [eax + 0x178], esi
jmp 0x10012120
mov eax, dword [edi]
mov dword [eax + 0x174], esi
jmp 0x10012120
mov eax, dword [edi]
mov dword [eax + 0x170], esi
jmp 0x10012120
mov eax, dword [edi]
mov dword [eax + 0x16c], esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x60], vtable.ByteBuffer.0
call fcn.10004ac0
jmp 0x10012157
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.10004ce0
mov byte [ebp - 4], 2
mov edx, 0xffff3b3b
lea ecx, [ebp - 0x28]
call fcn.10004387
lea ecx, [ebp - 0x28]
call fcn.10002413
lea ecx, [ebp - 0x44]
call fcn.10002413
call fcn.10034314
ret 4