Function at 0x100fd350
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x3c
call fcn.100857c0
push edi
mov edi, dword [esp + 0x50]
push edi
mov dword [esp + 0x3c], 0
call fcn.100c0390
push edi
call fcn.100c02c0
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
je 0x100fd803
push esi
mov esi, dword [esp + 0x54]
push esi
call fcn.100c02c0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x100fd802
push ebp
push esi
call fcn.100c02c0
mov ebp, eax
add esp, 4
mov dword [esp + 0x3c], ebp
test ebp, ebp
je 0x100fd801
push esi
call fcn.100c02c0
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
test esi, esi
je 0x100fd801
push ebx
mov ebx, dword [esp + 0x58]
push ebx
push dword [esp + 0x58]
push ebp
call fcn.100fcf10
add esp, 0xc
test eax, eax
je 0x100fd800
push ebp
call fcn.100986d0
add esp, 4
test eax, eax
jne 0x100fd800
push ebx
push esi
call fcn.10098400
add esp, 8
test eax, eax
je 0x100fd800
push ebp
call fcn.10098790
push esi
mov dword [esp + 0x24], eax
call fcn.10098790
mov ebx, dword [ebx + 4]
push ebx
push ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ebx
call fcn.10098e40
add esp, 0x10
test eax, eax
je 0x100fd800
mov eax, dword [ebp + 4]
mov esi, dword [ebp]
mov dword [esp + 0x3c], esi
cmp eax, ebx
jge 0x100fd455
mov ecx, ebx
lea edi, [esi + eax*4]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x24]
push ebx
push edi
mov dword [ebp + 4], ebx
call fcn.10098e40
add esp, 8
test eax, eax
je 0x100fd800
mov ebp, dword [edi]
mov dword [esp + 0x18], ebp
mov dword [ebp], 1
cmp ebx, 1
jle 0x100fd48a
lea ecx, [ebx - 1]
xor eax, eax
lea edi, [ebp + 4]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x24]
mov dword [edi + 4], ebx
push ebx
mov ebx, dword [esp + 0x2c]
push ebx
call fcn.10098e40
add esp, 8
test eax, eax
je 0x100fd800
mov edx, dword [esp + 0x20]
mov ebx, dword [ebx]
mov dword [esp + 0x10], ebx
test edx, edx
jle 0x100fd4b9
mov ecx, edx
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x38]
mov edi, dword [eax]
mov dword [esp + 0x14], edi
nop
test ecx, ecx
je 0x100fd5a7
nop dword [eax + eax]
mov ebx, dword [esi]
test bl, 1
jne 0x100fd59f
mov ecx, dword [esp + 0x58]
dec edx
mov eax, dword [ebp]
mov ebp, eax
and ebp, 1
neg ebp
mov ecx, dword [ecx]
mov ecx, dword [ecx]
and ecx, ebp
xor eax, ecx
xor ecx, ecx
mov dword [esp + 0x34], ecx
test edx, edx
jle 0x100fd57b
mov ecx, dword [esp + 0x18]
mov edx, esi
sub edx, ecx
mov dword [esp + 0x30], 0xfffffffc
sub dword [esp + 0x30], ecx
mov dword [esp + 0x48], edx
lea edi, [ecx + 4]
mov edx, dword [edx + edi]
mov ecx, edx
shl ecx, 0x1f
shr ebx, 1
or ecx, ebx
shr eax, 1
mov ebx, dword [esp + 0x34]
mov dword [esi + ebx*4], ecx
mov ebx, edx
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x3c]
mov ecx, dword [ecx]
add ecx, edi
mov edx, dword [ecx + edx + 4]
and edx, ebp
xor edx, dword [edi]
mov ecx, edx
shl ecx, 0x1f
or ecx, eax
mov eax, edx
mov edx, dword [esp + 0x20]
mov dword [edi - 4], ecx
dec edx
mov ecx, dword [esp + 0x34]
add edi, 4
inc ecx
cmp ecx, edx
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x48]
jl 0x100fd527
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
shr ebx, 1
mov dword [esi + ecx*4], ebx
shr eax, 1
mov dword [ebp + ecx*4], eax
mov ecx, dword [esp + 0x1c]
sub ecx, 1
mov dword [esp + 0x1c], ecx
jne 0x100fd4e0
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
cmp ecx, 0x20
jg 0x100fd5bf
mov eax, dword [esi]
test eax, eax
je 0x100fd800
cmp eax, 1
je 0x100fd7d9
cmp ecx, dword [esp + 0x2c]
jge 0x100fd60e
mov ebp, dword [esp + 0x40]
mov eax, ecx
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x38], ebp
mov ebp, dword [ebp]
mov dword [esp + 0x24], esi
mov esi, edi
mov dword [esp + 0x14], ebp
mov ebp, ebx
mov dword [esp + 0x28], eax
mov eax, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], eax
jmp 0x100fd612
mov eax, dword [esp + 0x10]
xor edi, edi
test edx, edx
jle 0x100fd782
cmp edx, 4
jb 0x100fd739
lea eax, [eax + edx*4]
lea ebx, [edx*4 - 4]
add eax, 0xfffffffc
add ebx, ebp
cmp ebp, eax
ja 0x100fd644
mov eax, dword [esp + 0x10]
cmp ebx, eax
jae 0x100fd73d
lea eax, [edx - 1]
lea ebx, [edx*4 - 4]
lea eax, [esi + eax*4]
add ebx, ebp
cmp ebp, eax
ja 0x100fd65f
cmp ebx, esi
jae 0x100fd739
mov eax, dword [esp + 0x14]
lea ebx, [edx*4 - 4]
add ebx, ebp
lea eax, [eax + edx*4]
add eax, 0xfffffffc
cmp ebp, eax
ja 0x100fd680
cmp ebx, dword [esp + 0x14]
jae 0x100fd739
mov eax, dword [esp + 0x10]
lea ebx, [edx - 1]
lea ebx, [esi + ebx*4]
lea eax, [eax + edx*4]
add eax, 0xfffffffc
cmp esi, eax
ja 0x100fd6a0
mov eax, dword [esp + 0x10]
cmp ebx, eax
jae 0x100fd73d
mov eax, dword [esp + 0x14]
lea ebx, [edx - 1]
lea ebx, [esi + ebx*4]
lea eax, [eax + edx*4]
add eax, 0xfffffffc
cmp esi, eax
ja 0x100fd6ba
cmp ebx, dword [esp + 0x14]
jae 0x100fd739
mov eax, edx
and eax, reloc.WS2_32.dll_closesocket
jns 0x100fd6c8
dec eax
or eax, 0xfffffffc
inc eax
mov ebp, dword [esp + 0x14]
mov ebx, edx
mov edx, dword [esp + 0x18]
sub ebp, esi
mov dword [esp + 0x48], ebp
sub ebx, eax
mov ebp, dword [esp + 0x10]
mov eax, esi
sub ebp, esi
sub edx, esi
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
nop dword [eax + eax]
movups xmm0, xmmword [eax]
add edi, 4
lea eax, [eax + 0x10]
movups xmm1, xmmword [eax + ebp - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
movups xmm1, xmmword [eax + edx - 0x10]
movups xmm0, xmmword [eax + esi - 0x10]
pxor xmm1, xmm0
movups xmmword [eax + esi - 0x10], xmm1
cmp edi, ebx
jl 0x100fd700
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
cmp edi, edx
jge 0x100fd782
mov ebx, dword [esp + 0x14]
lea ecx, [esi + edi*4]
sub eax, esi
sub ebp, esi
sub ebx, esi
mov dword [esp + 0x48], eax
sub edx, edi
mov dword [esp + 0x34], ebp
mov edi, eax
nop word [eax + eax]
mov eax, dword [ebx + ecx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
mov eax, dword [ecx + edi - 4]
xor dword [ecx + ebp - 4], eax
sub edx, 1
jne 0x100fd760
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
cmp ecx, dword [esp + 0x2c]
jne 0x100fd4d0
lea eax, [ecx - 1]
cdq
and edx, 0x1f
lea edi, [edx + eax]
sar edi, 5
mov eax, dword [esi + edi*4]
test eax, eax
jne 0x100fd7b5
test edi, edi
je 0x100fd7b5
mov eax, dword [esi + edi*4 - 4]
dec edi
test eax, eax
je 0x100fd7a8
push eax
call fcn.10098800
mov edx, dword [esp + 0x24]
add esp, 4
mov ebx, dword [esp + 0x10]
shl edi, 5
lea ecx, [edi + eax]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
jmp 0x100fd4d0
mov esi, dword [esp + 0x24]
push esi
call fcn.10098c40
push esi
push dword [esp + 0x58]
call fcn.10098400
xor ecx, ecx
add esp, 0xc
test eax, eax
mov edx, 1
cmovne ecx, edx
mov dword [esp + 0x44], ecx
pop ebx
pop ebp
pop esi
push dword [esp + 0x50]
call fcn.100c0240
mov eax, dword [esp + 0x3c]
add esp, 4
pop edi
add esp, 0x3c
ret