Function at 0x10042210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009add6
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x100bd078]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
cmp dword [0x100c19b4], 0
je 0x10042965
push dword [ebp - 0x70]
mov edx, dword [esi + 0x160]
lea ebx, [esi + 0x15c]
push ecx
mov ecx, dword [ebx]
mov dword [ebp - 0x58], ebx
call fcn.10043c10
mov eax, dword [ebx]
xor edi, edi
mov dword [ebx + 4], eax
add esp, 8
mov ecx, dword [esi + 0x154]
mov eax, 0x4ec4ec4f
sub ecx, dword [esi + 0x150]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
imul ecx
mov dword [ebp - 0x30], edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x100423e2
xor esi, esi
nop dword [eax]
nop dword [eax + eax]
mov edx, dword [ebp - 0x34]
mov ebx, dword [edx + 0x150]
cmp byte [esi + ebx + 0x63], 0
je 0x10042326
cmp byte [0x100c19c2], 0
mov eax, dword [0x100c19b4]
mov dword [ebp - 0x38], eax
je 0x10042319
mov ecx, 0xd78c9c
call fcn.100173f0
mov edi, eax
test edi, edi
je 0x10042310
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10042310
push 4
add edi, 0xb7c
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov edx, dword [ebp - 0x34]
test eax, eax
jne 0x10042313
mov ecx, dword [ebp - 0x38]
mov al, byte [edi]
mov byte [ecx + 0x3a], al
mov eax, ecx
jmp 0x10042316
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x30]
mov al, byte [eax + 0x3a]
cmp byte [esi + ebx + 0x63], al
jne 0x100423aa
mov eax, dword [edx + 0x150]
mov dword [ebp - 0x54], eax
mov al, byte [esi + eax + 0x63]
cmp al, 1
je 0x1004233b
cmp al, 2
jne 0x10042393
cmp byte [0x100c19c2], 0
mov ebx, dword [0x100c19b4]
je 0x10042387
mov ecx, 0xd78c9c
call fcn.100173f0
mov edi, eax
test edi, edi
je 0x10042384
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10042384
push 4
add edi, 0x6a0
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov edx, dword [ebp - 0x34]
test eax, eax
jne 0x10042387
mov al, byte [edi]
mov byte [ebx + 0x34], al
jmp 0x10042387
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x54]
mov al, byte [ebx + 0x34]
cmp byte [esi + ecx + 0x63], al
jne 0x100423a7
mov eax, dword [edx + 0x150]
lea ecx, [edx + 0x15c]
add eax, esi
push eax
call fcn.10043660
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
inc edi
add esi, 0x68
mov dword [ebp - 0x30], edi
mov ecx, dword [eax + 0x154]
sub ecx, dword [eax + 0x150]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jl 0x100422b0
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov esi, dword [ebp - 0x34]
mov eax, dword [esi + 0x15c]
cmp eax, dword [esi + 0x160]
jne 0x10042454
lea edi, [esi + 0xc]
mov ebx, 4
mov esi, dword [edi]
test esi, esi
je 0x10042414
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10042414
push eax
mov ecx, esi
call dword [0x100b0d90]
add edi, 4
sub ebx, 1
jne 0x100423f8
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebx + 0x134]
mov edi, dword [ebx + 0x148]
test esi, esi
je 0x10042445
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10042445
push edi
mov ecx, esi
call dword [0x100b0df0]
mov dword [ebx + 0x14c], 1
jmp 0x10042965
mov ecx, dword [esi + 0x160]
sub esp, 8
sub ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100b1d10]
mulsd xmm0, qword [0x100b1180]
movsd qword [ebp - 0x74], xmm0
fld qword [ebp - 0x74]
fstp qword [esp]
call fcn.10095e90
fstp qword [ebp - 0x74]
movsd xmm0, qword [ebp - 0x74]
movsd qword [esp], xmm0
call fcn.10043f80
add esp, 8
call fcn.10097180
mov dword [esi + 0x14c], eax
cmp dword [esi + 0x148], eax
jbe 0x100424ce
mov dword [esi + 0x148], 1
movzx eax, byte [ebp + 8]
lea ecx, [esi + 8]
shl eax, 2
or edx, 0xffffffff
mov dword [ebp - 0x78], eax
add eax, 0xfffffffc
imul edi, eax, 0x68
mov dword [ebp - 0x6c], eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x54], edi
nop dword [eax]
inc edx
add ecx, 4
add eax, 0x18
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x38], eax
cmp edx, 4
jg 0x10042938
mov esi, dword [ebp - 0x58]
mov eax, 0x4ec4ec4f
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
dec eax
add eax, edx
cmp dword [ebp - 0x6c], eax
jle 0x10042550
mov ecx, dword [ebp - 0x30]
mov esi, dword [ecx]
test esi, esi
je 0x1004291c
push 4
push esi
call ebx
test eax, eax
jne 0x10042919
push eax
mov ecx, esi
call dword [0x100b0d90]
jmp 0x10042919
mov eax, dword [esi]
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x54]
mov edi, 0xffc4fc03
push 0xffffffffffffffff
add eax, esi
mov dword [ebp - 0x18], 0xf
push 0
push eax
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.10002440
mov eax, dword [ebp - 0x58]
mov dword [ebp - 4], 0
mov eax, dword [eax]
cmp byte [esi + eax + 0x64], 2
jne 0x100425ee
movaps xmm0, xmmword [0x100b1f00]
xor ecx, ecx
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0x534e5b49
mov dword [ebp - 0x3c], 0x675455
nop dword [eax]
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x16
jb 0x100425b0
cmp byte [ebp - 0x4f], 0
mov byte [ebp - 0x39], 0
jne 0x100425cb
xor ecx, ecx
jmp 0x100425da
lea ecx, [ebp - 0x4f]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100425d1
sub ecx, edx
push ecx
lea eax, [ebp - 0x4f]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10005f30
mov edi, 0xff5cb9fe
jmp 0x10042649
mov cl, 0x72
mov dword [ebp - 0x68], 0x27295272
mov dword [ebp - 0x64], 0x17161c
xor eax, eax
mov dword [ebp - 0x60], 0xb130552
mov word [ebp - 0x5c], 0x2f
nop dword [eax]
xor byte [ebp + eax - 0x67], cl
inc eax
cmp eax, 0xc
jae 0x1004261f
mov cl, byte [ebp - 0x68]
jmp 0x10042610
cmp byte [ebp - 0x67], 0
mov byte [ebp - 0x5b], 0
jne 0x1004262d
xor ecx, ecx
jmp 0x1004263c
lea ecx, [ebp - 0x67]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10042633
sub ecx, edx
push ecx
lea eax, [ebp - 0x67]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10005f30
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x3c], 0xf
cmovae edx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp byte [edx], 0
jne 0x1004266f
xor ecx, ecx
jmp 0x1004267d
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10042674
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.10002880
mov esi, dword [ebp - 0x38]
lea edx, [ebp - 0x50]
mov byte [ebp - 4], 1
mov ecx, dword [esi]
call fcn.100170e0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x100426b1
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.10002760
mov esi, dword [esi]
test esi, esi
je 0x100426c9
push 4
push esi
call ebx
test eax, eax
jne 0x100426c9
push edi
mov ecx, esi
call dword [0x100b0df4]
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp - 0x54]
movaps xmm0, xmmword [str.kBQBK_a_a]
mov ecx, dword [eax]
movzx eax, byte [edi + ecx + 0x62]
push eax
movzx eax, byte [edi + ecx + 0x61]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x88], xmm0
nop dword [eax]
mov al, byte [ebp - 0x88]
xor byte [ebp + ecx - 0x87], al
inc ecx
cmp ecx, 0xe
jb 0x100426f0
sub esp, 0x18
mov byte [ebp - 0x79], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x10042724
mov eax, dword [edx]
jmp 0x10042726
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x87], 0
jne 0x10042736
xor ecx, ecx
jmp 0x10042749
lea ecx, [ebp - 0x87]
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10042740
sub ecx, esi
push ecx
lea eax, [ebp - 0x87]
mov ecx, edx
push eax
call fcn.10002880
lea eax, [ebp - 0xa0]
push eax
call fcn.10009ac0
add esp, 0x24
mov edx, eax
mov byte [ebp - 4], 2
cmp dword [edx + 0x14], 0x10
jb 0x10042775
mov edx, dword [edx]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp byte [edx], 0
jne 0x10042790
xor ecx, ecx
jmp 0x1004279e
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10042795
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.10002880
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x50]
mov byte [ebp - 4], 3
mov ecx, dword [ecx - 4]
call fcn.100170e0
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x100427cf
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.10002760
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp eax, 0x10
jb 0x10042803
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.10002760
mov esi, dword [ebp - 0x58]
lea ecx, [ebp - 0xa0]
mov eax, dword [esi]
movzx edx, byte [eax + edi + 0x63]
call fcn.1003c730
mov edx, eax
mov byte [ebp - 4], 4
cmp dword [edx + 0x14], 0x10
jb 0x10042826
mov edx, dword [edx]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp byte [edx], 0
jne 0x10042841
xor ecx, ecx
jmp 0x10042852
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10042846
sub ecx, esi
mov esi, dword [ebp - 0x58]
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.10002880
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x50]
mov byte [ebp - 4], 5
mov ecx, dword [eax + 8]
call fcn.100170e0
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x10042883
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.10002760
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp eax, 0x10
jb 0x100428b7
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.10002760
mov eax, dword [esi]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov eax, dword [edi + eax + 0x18]
mov dword [ecx - 8], eax
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 0xa0], 0
mov esi, dword [ecx]
test esi, esi
je 0x100428fd
push 4
push esi
call ebx
test eax, eax
jne 0x100428fa
push 1
mov ecx, esi
call dword [0x100b0d90]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x1004291c
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10002760
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x6c]
add edi, 0x68
mov edx, dword [ebp - 0x70]
inc eax
cmp eax, dword [ebp - 0x78]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x54], edi
jl 0x100424f0
mov esi, dword [ebp - 0x34]
mov edi, dword [esi + 0x148]
mov esi, dword [esi + 0x134]
test esi, esi
je 0x1004295d
push 4
push esi
call ebx
test eax, eax
jne 0x1004295d
push edi
mov ecx, esi
call dword [0x100b0df0]
mov ecx, dword [ebp - 0x34]
call fcn.10041a30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10067c75
mov esp, ebp
pop ebp
ret 4