Function at 0x423f85
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], edx
xor ebx, ebx
mov dword [ebp - 0x3c], esi
and dword [ebp - 0x14], ebx
push edi
mov eax, dword [esi + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], eax
mov ecx, dword [eax + 0x44]
add ecx, 0x24
call fcn.0041c6fd
mov dword [ebp - 0x2c], eax
test eax, eax
jle 0x424386
mov byte [ebp - 8], bl
cmp byte [ebp + 0x10], bl
je 0x42400a
mov ecx, dword [esi]
call fcn.00422870
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
ja 0x42400a
lea eax, [ebp - 1]
mov edx, ecx
push ebx
push eax
mov ecx, esi
lfence
call fcn.004214f5
pop ecx
pop ecx
test eax, eax
je 0x423ff2
lfence
jmp 0x424440
mov eax, dword [ebp - 8]
cmp byte [ebp - 1], 2
push 1
movzx eax, al
pop ecx
cmove eax, ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
mov edi, dword [ebp - 0x20]
mov ecx, dword [edi + 0x48]
call fcn.004206a4
test eax, eax
jne 0x424440
mov edx, dword [ebp - 0x2c]
lfence
mov ecx, dword [edi + 0x44]
dec edx
add ecx, 0x24
call fcn.0041c71c
mov eax, ebx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42403d
mov ecx, dword [ebx + 0x44]
jmp 0x424043
mov ecx, dword [edi + 0x44]
add ecx, 0x20
call fcn.0041c6fd
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], eax
push 0
push ecx
mov edx, eax
mov ecx, esi
call fcn.00421d63
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x42437f
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x38], ebx
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x1c], eax
lea ecx, [eax + 4]
call fcn.0041c6fd
mov ecx, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x18], edx
test edx, edx
jne 0x4240c5
test cl, cl
jne 0x4240c5
mov ecx, dword [ebx + 0x48]
call fcn.004206a4
mov edi, eax
test edi, edi
jne 0x42442f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
push 4
mov dword [eax], ecx
mov ecx, dword [ebp - 0x20]
push dword [ebx + 0x44]
mov eax, dword [ecx + 0x44]
add eax, 0x20
push eax
call fcn.0044fb10
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [eax], ebx
jmp 0x4241f3
movzx eax, word [esi + 0x1e]
shr eax, 2
sub eax, 2
cmp edx, eax
jg 0x424377
test cl, cl
je 0x4241fd
mov ecx, dword [ebp - 0x28]
cmp dword [ebp + 0xc], ecx
jne 0x4241fd
mov eax, dword [ebp - 0x10]
mov byte [ebp - 8], 0
mov dword [eax], ebx
mov ecx, dword [ebx + 0x48]
call fcn.004206a4
mov edi, eax
test edi, edi
jne 0x42442f
mov edx, dword [ebx + 0x44]
cmp dword [ebp - 0x18], eax
jne 0x424134
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x424120
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x44]
add eax, 0x20
jmp 0x424123
mov eax, dword [eax + 0x44]
push 4
push edx
push eax
call fcn.0044fb10
add esp, 0xc
jmp 0x4241f3
lea ecx, [edx + 8]
call fcn.0041c6fd
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push 0
push ecx
mov edx, eax
mov ecx, esi
call fcn.00421d63
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x42442f
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax + 0x48]
call fcn.004206a4
mov edi, eax
test edi, edi
jne 0x42436f
lfence
mov eax, dword [ebp - 0x1c]
push 4
push dword [ebx + 0x44]
push dword [eax + 0x44]
call fcn.0044fb10
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov edx, dword [ebp - 0x18]
dec edx
mov ecx, dword [eax + 0x44]
add ecx, 4
call fcn.0041c71c
mov eax, edx
shl eax, 2
push eax
mov eax, dword [ebx + 0x44]
add eax, 0xc
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x44]
add eax, 8
push eax
call fcn.0044fb10
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
call fcn.00421dfb
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4241d3
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + 0x44]
add ecx, 0x20
jmp 0x4241eb
mov ecx, dword [eax + 0x48]
call fcn.004206a4
mov edi, eax
test edi, edi
jne 0x42442f
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x44]
mov edx, dword [ebp - 0x28]
call fcn.0041c71c
xor ebx, ebx
mov dword [ebp - 0x24], ebx
jmp 0x424351
mov ecx, dword [ebx + 0x48]
call fcn.004206a4
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
jne 0x42442f
cmp dword [ebp + 0xc], eax
jbe 0x424295
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0xc], edx
lea ecx, [ecx + 8]
call fcn.0041c6fd
sub eax, dword [ebp + 0xc]
xor edx, edx
inc edx
mov ecx, edx
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x18], edx
jle 0x42429c
mov ebx, dword [ebp - 0x18]
mov edx, eax
mov edi, dword [ebp - 0xc]
neg edx
test eax, eax
cmovns edx, eax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x1c]
lea ecx, [ecx + 2]
mov esi, edx
lea ecx, [eax + ecx*4]
call fcn.0041c6fd
sub eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0x2c]
cmp eax, edx
cmovl edx, eax
cmp eax, esi
mov dword [ebp - 0x2c], edx
cmovge ecx, edi
mov edi, ecx
mov ecx, dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x28], ecx
cmp ecx, ebx
jl 0x424249
mov ebx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
jmp 0x42429f
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x42429f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + 2]
lea eax, [ecx + eax*4]
mov ecx, eax
mov dword [ebp - 0x38], eax
call fcn.0041c6fd
cmp byte [ebp - 8], 0
je 0x4242c1
cmp eax, dword [ebp + 0xc]
jne 0x424351
mov edi, dword [ebp + 8]
mov dword [edi], eax
mov ecx, dword [esi]
call fcn.00422870
cmp dword [edi], eax
ja 0x424377
mov ecx, dword [ebp - 0x18]
lfence
lea eax, [ecx - 1]
cmp dword [ebp - 0xc], eax
jge 0x424300
lfence
mov eax, dword [ebp - 0x1c]
push 4
lea eax, [eax + ecx*4]
add eax, 4
push eax
push dword [ebp - 0x38]
call fcn.0044fb10
mov ecx, dword [ebp - 0x18]
add esp, 0xc
lea edx, [ecx - 1]
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx + 4]
call fcn.0041c71c
mov edx, dword [edi]
xor eax, eax
inc eax
mov ecx, esi
push eax
push dword [ebp - 0x10]
call fcn.00421d63
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x42434d
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x48]
call fcn.00420870
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x48]
call fcn.004206a4
mov edi, eax
test edi, edi
je 0x42434d
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call fcn.00421dfb
mov byte [ebp - 8], 0
mov ecx, dword [ebp - 0x14]
call fcn.00421dfb
and dword [ebp - 0x14], 0
cmp byte [ebp - 8], 0
je 0x42442f
mov edi, dword [ebp - 0x20]
jmp 0x42402f
mov ecx, dword [ebp - 0x1c]
jmp 0x42442a
push 0xb
pop edi
jmp 0x42442f
xor ebx, ebx
jmp 0x42442f
mov ecx, dword [esi]
call fcn.00422870
lea edi, [eax + 1]
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4243b9
lea edi, [ecx + 1]
xor edx, edx
mov dword [eax], edi
mov eax, 0x40000000
movzx ecx, word [esi + 0x1c]
div ecx
inc eax
cmp edi, eax
jne 0x4243b9
mov eax, dword [ebp + 8]
inc edi
mov dword [eax], edi
mov dword [ebp - 0x28], edi
cmp byte [esi + 0x13], bl
je 0x4243f1
mov edx, edi
mov dword [ebp - 0x28], edi
mov ecx, esi
call fcn.00421435
cmp eax, edi
mov eax, dword [ebp + 8]
jne 0x4243f4
inc edi
xor edx, edx
mov dword [eax], edi
mov eax, 0x40000000
movzx ecx, word [esi + 0x1c]
div ecx
inc eax
cmp edi, eax
mov eax, dword [ebp + 8]
jne 0x4243f7
inc edi
mov dword [eax], edi
jmp 0x4243f7
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x28]
cmp dword [esi + 0x18], ebx
je 0x424401
mov dword [esi + 0x18], edi
mov edi, dword [eax]
push 0
push dword [ebp - 0x10]
mov edx, edi
mov ecx, esi
call fcn.00421d63
pop ecx
pop ecx
test eax, eax
jne 0x424440
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x48]
call fcn.004206a4
mov edi, eax
test edi, edi
je 0x42442f
mov ecx, dword [esi]
call fcn.00421dfb
mov ecx, ebx
call fcn.00421dfb
mov ecx, dword [ebp - 0x14]
call fcn.00421dfb
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret