Function at 0x1002037c
Capabilities:
Encode data using xor

Disassembly:
push 0xf0
mov eax, 0x1007955b
call fcn.10040a5d
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
mov dword [0x100a626c], eax
test ecx, ecx
je 0x10020bce
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], ebx
jne 0x10020bce
cmp dword [0x100a6048], 0
je 0x10020bce
cmp dword [esi + 4], 0
je 0x100203cf
cmp ecx, dword [esi + 4]
jne 0x100203cf
mov ecx, esi
call fcn.10021371
jmp 0x100204ce
mov eax, dword [esi + 0x138]
test eax, eax
je 0x100203ee
cmp ecx, eax
jne 0x100203ee
mov eax, dword [esi + 0x144]
cmp eax, ebx
jle 0x100204ce
dec eax
jmp 0x1002040f
mov eax, dword [esi + 0x13c]
test eax, eax
je 0x10020425
cmp ecx, eax
jne 0x10020425
mov eax, dword [esi + 0x144]
cmp eax, dword [esi + 0x148]
jge 0x100204ce
inc eax
mov dword [esi + 0x144], eax
mov ecx, esi
movzx eax, al
push eax
call fcn.10022273
jmp 0x100204ce
mov eax, dword [esi + 0x15c]
sub eax, dword [esi + 0x158]
push 0x68
pop edi
cdq
idiv edi
mov dword [ebp - 0xc8], edi
test eax, eax
je 0x100204ce
push 4
lea eax, [esi + 0x30]
xor edi, edi
pop edx
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc0], edx
cmp dword [eax], 0
je 0x100204ba
cmp ecx, dword [eax]
jne 0x100204ba
mov ebx, dword [eax - 0x14]
mov eax, dword [esi + 0x15c]
sub eax, dword [esi + 0x158]
cdq
idiv dword [ebp - 0xc8]
test eax, eax
jle 0x100204a9
mov ecx, dword [esi + 0x158]
add ecx, 0x18
cmp dword [ecx], ebx
je 0x100204d5
push 0x68
pop eax
add ecx, eax
inc edi
mov eax, dword [esi + 0x15c]
sub eax, dword [esi + 0x158]
cdq
idiv dword [ebp - 0xc8]
cmp edi, eax
jl 0x10020485
mov ecx, dword [ebp + 8]
xor ebx, ebx
xor edi, edi
inc ebx
mov eax, dword [ebp - 0xbc]
mov edx, dword [ebp - 0xc0]
add eax, 0x18
sub edx, 1
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc0], edx
jne 0x10020459
mov al, bl
jmp 0x10020bd0
or dword [ebp - 0xcc], 0xffffffff
xor edx, edx
mov dword [esi + 0x140], ebx
mov eax, dword [esi + 0x158]
imul ebx, edi, 0x68
mov dword [ebp - 0x9c], ebx
cmp byte [ebx + eax + 0x65], 2
jne 0x10020579
movaps xmm0, xmmword [0x100957b0]
mov ecx, edx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x3234293c
mov word [ebp - 0x14], 0x33
mov byte [ebp - 0x12], dl
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x15
jb 0x10020517
lea eax, [ebp - 0x27]
mov byte [ebp - 0x12], dl
push eax
lea ecx, [ebp - 0xe4]
call fcn.10004181
xor edi, edi
lea edx, [ebp - 0xe4]
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x7c]
call fcn.1000ff04
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
xor eax, eax
push edi
inc eax
push eax
call fcn.10004036
mov ecx, dword [esi + 0x7c]
mov edx, 0xff5cb9fe
call fcn.1000ff4a
mov dword [ebp - 0xcc], 0xff808080
jmp 0x10020602
mov cl, 0x1e
mov dword [ebp - 0xb8], 0x704b451e
mov dword [ebp - 0xb4], 0x3e6c7b7a
mov eax, edx
mov dword [ebp - 0xb0], 0x43677f69
mov byte [ebp - 0xac], dl
xor byte [ebp + eax - 0xb7], cl
inc eax
cmp eax, 0xb
jae 0x100205b6
mov cl, byte [ebp - 0xb8]
jmp 0x100205a1
lea eax, [ebp - 0xb7]
mov byte [ebp - 0xac], dl
push eax
lea ecx, [ebp - 0xe4]
call fcn.10004181
xor edi, edi
lea edx, [ebp - 0xe4]
inc edi
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x7c]
call fcn.1000ff04
or dword [ebp - 4], 0xffffffff
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0xe4]
call fcn.10004036
mov ecx, dword [esi + 0x7c]
mov edx, 0xffc4fc03
call fcn.1000ff4a
lea edi, [ebx + 0x58]
mov dword [ebp - 0x5c], 0x48
lea ecx, [esi + 0x84]
mov dword [ebp - 0xc4], edi
lea ebx, [esi + 0xa8]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x98], 4
mov eax, dword [esi + 0x158]
xor edx, edx
cmp word [edi + eax - 0x10], dx
je 0x10020952
mov cl, 0x3c
mov dword [ebp - 0x88], 0x5752693c
mov dword [ebp - 0x84], 0x524b5352
mov eax, edx
mov byte [ebp - 0x80], dl
xor byte [ebp + eax - 0x87], cl
inc eax
cmp eax, 7
jae 0x10020671
mov cl, byte [ebp - 0x88]
jmp 0x1002065c
lea eax, [ebp - 0x87]
mov byte [ebp - 0x80], dl
push eax
lea ecx, [ebp - 0x40]
call fcn.10004181
xor eax, eax
mov dword [ebp - 4], 2
mov word [ebp - 0x60], 0x29
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x5f], al
lea eax, [ebp - 0x5f]
push eax
call fcn.10004181
mov ecx, dword [ebp - 0x5c]
mov byte [ebp - 4], 3
mov eax, dword [esi + 0x158]
add eax, dword [ebp - 0x9c]
movzx ecx, word [ecx + eax]
call fcn.1000ad9d
test eax, eax
je 0x100206f4
add eax, 4
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x100206d9
push 0xffffffffffffffff
xor ecx, ecx
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.10003e07
mov ecx, dword [ebx]
xor eax, eax
lea edx, [eax + 1]
call fcn.1000f6a4
mov ecx, dword [ebx + 4]
xor dl, dl
call fcn.1000f6a4
jmp 0x100207f0
mov eax, dword [esi + 0x158]
xor ecx, ecx
inc ecx
cmp word [edi + eax - 0x10], cx
jne 0x100207f0
cmp byte [0x100a610a], 0
mov ebx, dword [0x100a6048]
je 0x1002074c
mov ecx, 0x10b8134
call fcn.10010043
mov edi, eax
test edi, edi
je 0x1002074c
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002074c
push 4
add edi, 0x6dc
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002074c
mov al, byte [edi]
mov byte [ebx + 0x38], al
mov al, byte [ebx + 0x38]
xor edx, edx
xor ebx, ebx
inc ebx
cmp al, bl
mov eax, edx
jne 0x1002079c
mov cl, 0x56
mov dword [ebp - 0xa8], 0x763a1356
mov dword [ebp - 0xa4], 0x3724391b
mov word [ebp - 0xa0], 0x32
xor byte [ebp + eax - 0xa7], cl
inc eax
cmp eax, 8
jae 0x1002078e
mov cl, byte [ebp - 0xa8]
jmp 0x10020779
mov byte [ebp - 0x9f], dl
lea edi, [ebp - 0xa7]
jmp 0x100207c3
mov cl, 0x63
mov dword [ebp - 0x7c], 0x11022863
mov word [ebp - 0x78], 0x1016
mov byte [ebp - 0x76], dl
xor byte [ebp + eax - 0x7b], cl
inc eax
cmp eax, 5
jae 0x100207bd
mov cl, byte [ebp - 0x7c]
jmp 0x100207ae
mov byte [ebp - 0x76], dl
lea edi, [ebp - 0x7b]
push edi
call fcn.10004164
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.100040eb
mov dl, bl
mov ebx, dword [ebp - 0x74]
mov ecx, dword [ebx + 4]
call fcn.1000f6a4
mov ecx, dword [ebx]
xor dl, dl
call fcn.1000f6a4
mov edi, dword [ebp - 0xc4]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0xe4]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.10004181
mov byte [ebp - 4], 4
lea edx, [ebp - 0xe4]
mov ecx, dword [ebx + 8]
call fcn.1000ff04
xor eax, eax
mov byte [ebp - 4], 3
push eax
inc eax
lea ecx, [ebp - 0xe4]
push eax
call fcn.10004036
mov edx, dword [ebp - 0xcc]
mov ecx, dword [ebx + 8]
call fcn.1000ff4a
mov ecx, dword [esi + 0x158]
xor edx, edx
movzx eax, word [ecx + edi]
push eax
movzx eax, word [ecx + edi - 8]
mov cl, 0x5e
push eax
mov dword [ebp - 0x94], 0x7e3a7b5e
mov eax, edx
mov dword [ebp - 0x90], 0x3a7b7e71
mov byte [ebp - 0x8c], dl
xor byte [ebp + eax - 0x93], cl
inc eax
cmp eax, 7
jae 0x10020881
mov cl, byte [ebp - 0x94]
jmp 0x1002086c
sub esp, 0x18
mov byte [ebp - 0x8c], dl
lea eax, [ebp - 0x93]
mov ecx, esp
push eax
call fcn.10004181
lea eax, [ebp - 0x28]
push eax
call fcn.10003c4b
add esp, 0x24
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x100208b0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xe4]
call fcn.10004181
mov byte [ebp - 4], 6
lea edx, [ebp - 0xe4]
mov ecx, dword [ebx + 0xc]
call fcn.1000ff04
xor eax, eax
lea ecx, [ebp - 0xe4]
push eax
inc eax
push eax
call fcn.10004036
xor eax, eax
mov byte [ebp - 4], 3
push eax
inc eax
lea ecx, [ebp - 0x28]
push eax
call fcn.10004036
mov eax, dword [esi + 0x158]
mov ecx, dword [ebx + 0x10]
movzx eax, word [edi + eax]
push eax
call fcn.1000fd52
mov eax, dword [esi + 0x158]
xorps xmm3, xmm3
pop ecx
mov ecx, dword [ebx + 0x10]
xorps xmm2, xmm2
movzx eax, word [edi + eax - 8]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.1000fda7
mov ecx, dword [ebp - 0x70]
xor eax, eax
mov ecx, dword [ecx]
lea edx, [eax + 1]
call fcn.1000f6a4
xor eax, eax
lea ecx, [ebp - 0x58]
push eax
inc eax
push eax
call fcn.10004036
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
xor eax, eax
push eax
inc eax
push eax
call fcn.10004036
jmp 0x1002095b
mov ecx, dword [ecx]
xor dl, dl
call fcn.1000f6a4
mov ecx, dword [ebp - 0x70]
add edi, 2
add dword [ebp - 0x5c], 2
add ecx, 4
add ebx, 0x14
mov dword [ebp - 0xc4], edi
sub dword [ebp - 0x98], 1
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ebx
jne 0x1002062e
mov ecx, dword [ebp - 0x9c]
lea eax, [esi + 0x94]
add ecx, 0x34
mov dword [ebp - 0x5c], eax
lea edi, [esi + 0xf8]
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x74], 5
mov eax, dword [esi + 0x158]
mov ebx, dword [eax + ecx - 0x14]
mov eax, dword [eax + ecx]
mov ecx, 0x35a4f8a0
mov dword [ebp - 0x9c], eax
lea eax, [ebx - 1]
cmp eax, 0x5f5e0fe
cmovbe ebx, ecx
mov ecx, ebx
call fcn.1000ad11
mov dword [ebp - 0x70], eax
test eax, eax
je 0x10020aed
xor eax, eax
mov word [ebp - 0x64], 0x41
mov byte [ebp - 0x63], al
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x63]
push eax
call fcn.10004181
mov ecx, dword [ebp - 0x70]
mov edx, ebx
mov dword [ebp - 4], 7
call fcn.1000ad31
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x10020a40
xor ecx, ecx
cmp dword [eax + 0x3c], ecx
je 0x10020a40
push ebx
push eax
xor edx, edx
lea ecx, [ebp - 0x58]
call fcn.1000adf5
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10007a5b
xor eax, eax
lea ecx, [ebp - 0x58]
push eax
inc eax
push eax
call fcn.10004036
mov ebx, dword [ebp - 0x70]
jmp 0x10020a69
push ebx
mov ebx, dword [ebp - 0x70]
lea ecx, [ebp - 0x58]
xor eax, eax
mov edx, ebx
push eax
call fcn.1000adf5
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10007a5b
xor eax, eax
lea ecx, [ebp - 0x58]
push eax
inc eax
push eax
call fcn.10004036
mov ecx, dword [edi]
test ecx, ecx
je 0x10020ab0
add ecx, 4
lea edx, [ebp - 0x28]
call fcn.1000d28d
mov eax, dword [edi]
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ebp - 0x9c]
mov dword [eax + 0x60], ebx
mov eax, dword [edi]
mov dword [eax + 0x64], ecx
mov eax, dword [edi]
mov dword [eax + 0x68], edx
test ecx, ecx
je 0x10020aa5
movsx ecx, word [ecx + 0x4e]
movsx eax, word [ebx + 0x5e]
add ecx, eax
jmp 0x10020aa9
movsx ecx, word [ebx + 0x5e]
mov eax, dword [edi]
mov dword [eax + 0x6c], ecx
jmp 0x10020ab6
mov edx, dword [ebp - 0x9c]
mov ecx, dword [edi + 4]
call fcn.1000ff27
mov ecx, dword [edi + 8]
lea edx, [ebp - 0x28]
call fcn.1000fb7f
mov ecx, dword [ebp - 0x5c]
xor ebx, ebx
inc ebx
mov dl, bl
mov ecx, dword [ecx]
call fcn.1000f6a4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
xor eax, eax
push eax
push ebx
call fcn.10004036
jmp 0x10020ba4
mov ecx, dword [ebp - 0x5c]
xor dl, dl
mov ecx, dword [ecx]
call fcn.1000f6a4
mov ecx, dword [edi + 4]
xor edx, edx
call fcn.1000ff27
lea eax, [ebp - 0x67]
mov word [ebp - 0x68], 0x70
xor ebx, ebx
lea ecx, [ebp - 0xe4]
push eax
mov byte [ebp - 0x67], bl
call fcn.10004181
mov dword [ebp - 4], 8
lea edx, [ebp - 0xe4]
mov ecx, dword [edi + 8]
call fcn.1000fb7f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
xor eax, eax
push ebx
inc eax
push eax
call fcn.10004036
cmp dword [edi], ebx
je 0x10020ba1
lea eax, [ebp - 0x6b]
mov word [ebp - 0x6c], 0xa
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 0x6b], bl
call fcn.10004181
mov dword [ebp - 4], 9
lea edx, [ebp - 0xfc]
mov ecx, dword [edi]
add ecx, 4
call fcn.1000d28d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
xor eax, eax
push ebx
inc eax
push eax
call fcn.10004036
mov eax, dword [edi]
mov dword [eax + 0x60], ebx
mov eax, dword [edi]
mov dword [eax + 0x64], ebx
mov eax, dword [edi]
mov dword [eax + 0x68], ebx
mov eax, dword [edi]
mov dword [eax + 0x6c], ebx
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x98]
add edi, 0xc
add dword [ebp - 0x5c], 4
add ecx, 4
sub dword [ebp - 0x74], 1
mov dword [ebp - 0x98], ecx
jne 0x100209a9
mov ecx, dword [ebp + 8]
xor edi, edi
jmp 0x100204ae
xor al, al
call fcn.10040a07
ret 8