Function at 0x570d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], esi
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x50]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x4c]
cmp eax, 0x301
je 0x570e28
ja 0x570e08
cmp eax, 0x100
je 0x570e1b
cmp eax, 0x300
jne 0x570e6f
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], edi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov eax, dword [edx]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.005742c0
cmp eax, 0xfefd
je 0x570e1b
ja 0x570e68
sub eax, 0x302
cmp eax, 1
ja 0x570e6f
mov eax, dword [edx]
add ecx, ebx
sub eax, ebx
mov dword [edx], eax
jmp 0x570e2a
mov eax, dword [edx]
mov dword [esp + 0x48], edi
mov edi, dword [esp + 8]
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
jmp 0x574620
cmp eax, 0xfeff
je 0x570e1b
add esp, 0x1c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
push ebp
xor eax, eax
push edi
push esi
push ebx
sub esp, 0xfc
mov edx, dword [esp + 0x124]
mov esi, dword [esp + 0x110]
cmp edx, 1
mov ebp, dword [esi]
setne al
add eax, dword [esp + 0x128]
xor edi, edi
cmp ebp, eax
jb 0x574985
cmp edx, 1
je 0x5749e0
mov ebx, dword [esp + 0x118]
lea edx, [ebp - 1]
mov edi, dword [esp + 0x12c]
add ebx, edx
movzx ecx, byte [ebx]
mov byte [esp + 0x18], cl
test edi, edi
jne 0x5749b0
add eax, ecx
mov edx, ebp
mov edi, 0x100
sub edx, eax
xor edx, eax
xor eax, ebp
or eax, edx
xor eax, ebp
sar eax, 0x1f
cmp ebp, edi
mov esi, eax
cmovbe edi, ebp
not esi
test ebp, ebp
je 0x5746ec
xor edx, edx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], edx
lea esi, cs:[esi]
mov edx, dword [esp + 0x14]
mov eax, ecx
mov ebp, ecx
add dword [esp + 0x14], 1
sub ebx, 1
sub eax, edx
xor ebp, edx
xor eax, edx
or eax, ebp
xor eax, ecx
cdq
movzx eax, byte [esp + 0x18]
xor al, byte [ebx + 1]
movzx ebp, al
mov eax, edx
not ebp
or eax, ebp
and esi, eax
cmp dword [esp + 0x14], edi
jb 0x5746b0
mov eax, esi
mov ebp, dword [esp + 0x1c]
not eax
movzx eax, al
or esi, 0xffffff00
lea ebx, [ecx + 1]
sub eax, 1
and eax, esi
mov esi, dword [esp + 0x110]
sar eax, 0x1f
and ebx, eax
mov edi, eax
mov eax, ebp
sub eax, ebx
mov dword [esp + 0x14], eax
mov dword [esi], eax
mov eax, 0x40
cmp dword [esp + 0x114], eax
cmovbe eax, dword [esp + 0x114]
cmp eax, dword [esp + 0x128]
jb 0x574998
mov eax, dword [esp + 0x128]
test eax, eax
je 0x5749d0
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x128]
mov dword [esi], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x128]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x130]
mov dword [esp], eax
call fcn.0040e8c0
test eax, eax
jle 0x574998
mov esi, dword [esp + 0x11c]
test esi, esi
je 0x574998
mov ecx, dword [esp + 0x120]
test ecx, ecx
je 0x574998
mov eax, dword [esp + 0x128]
mov dword [esp + 8], 0x104
mov dword [esp + 4], str..._ssl_record_tls_pad.c
mov dword [esp], eax
call fcn.004ce330
mov esi, dword [esp + 0x11c]
mov dword [esp + 0x24], eax
mov dword [esi], eax
test eax, eax
je 0x574998
mov eax, dword [esp + 0x120]
lea edx, [esp + 0x70]
mov esi, dword [esp + 0x114]
mov dword [eax], 1
mov eax, edx
neg eax
mov dword [esp + 4], 0
and eax, 0x3f
lea ecx, [edx + eax]
mov eax, dword [esp + 0x128]
lea edx, [esi - 0x100]
sub edx, dword [esp + 0x128]
mov dword [esp], ecx
add eax, 0x100
mov dword [esp + 0x18], ecx
cmp eax, esi
mov eax, dword [esp + 0x128]
mov esi, 0
cmovb esi, edx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
cmp esi, dword [esp + 0x114]
jae 0x574a53
sub ebx, ebp
xor eax, eax
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x128]
mov dword [esp + 0x28], ebx
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x20], eax
lea esi, cs:[esi]
nop
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
xor eax, esi
mov ebx, eax
sub eax, 1
not ebx
and ebx, eax
mov eax, dword [esp + 0x28]
sar ebx, 0x1f
add eax, esi
or ecx, ebx
and ebx, edx
or dword [esp + 0x20], ebx
xor eax, ebp
xor ebp, esi
or eax, ebp
mov ebp, dword [esp + 0x118]
xor eax, esi
movzx ebx, byte [ebp + esi]
sar eax, 0x1f
mov ebp, dword [esp + 0x18]
add esi, 1
and ecx, eax
lea eax, [edx + 1]
and ebx, ecx
or byte [ebp + edx], bl
mov edx, eax
mov ebx, edi
sub edx, edi
xor ebx, eax
xor edx, edi
or edx, ebx
xor edx, eax
sar edx, 0x1f
and edx, eax
cmp dword [esp + 0x114], esi
jne 0x574870
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov ebx, edi
xor esi, esi
movzx ecx, bl
mov edx, ecx
mov edi, ecx
not edx
mov dword [esp + 0x1c], edi
mov edi, edx
mov dword [esp + 0x20], edi
lea esi, cs:[esi]
movzx ebx, byte [esp + esi + 0x30]
mov edx, eax
mov ecx, eax
lea edi, [eax + 1]
and edx, 0x20
cmp edx, 1
mov byte [esp + 0x14], bl
mov ebx, dword [esp + 0x18]
sbb edx, edx
and ecx, 0xffffffdf
or eax, 0x20
add esi, 1
movzx ecx, byte [ebx + ecx]
movzx eax, byte [ebx + eax]
movzx edx, dl
mov ebp, edx
not edx
movzx ebx, byte [esp + 0x14]
and eax, edx
and ecx, ebp
mov edx, dword [esp + 0x128]
or ecx, eax
mov eax, dword [esp + 0x1c]
xor edx, edi
and ecx, eax
mov eax, dword [esp + 0x20]
and ebx, eax
mov eax, dword [esp + 0x24]
or ecx, ebx
mov byte [eax + esi - 1], cl
mov eax, edi
sub eax, dword [esp + 0x128]
xor eax, dword [esp + 0x128]
or eax, edx
xor eax, edi
sar eax, 0x1f
and eax, edi
cmp dword [esp + 0x128], esi
jne 0x574900
mov edi, 1
add esp, 0xfc
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0xfc
xor edi, edi
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret
sub edx, dword [esp + 0x128]
mov edi, 1
sub edx, ecx
mov eax, edi
mov dword [esi], edx
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0xfc
neg edi
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov eax, 0x40
cmp dword [esp + 0x114], eax
cmovbe eax, dword [esp + 0x114]
cmp eax, dword [esp + 0x128]
jb 0x574998
mov eax, dword [esp + 0x128]
test eax, eax
je 0x574980
mov edx, dword [esp + 0x11c]
mov eax, ebp
sub eax, dword [esp + 0x128]
mov dword [esi], eax
test edx, edx
je 0x574a32
mov edi, dword [esp + 0x11c]
add eax, dword [esp + 0x118]
mov dword [edi], eax
mov edi, dword [esp + 0x120]
test edi, edi
je 0x574980
mov eax, dword [esp + 0x120]
mov dword [eax], 0
jmp 0x574980
xor eax, eax
jmp 0x5748e1