Function at 0x494950
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x354
call fcn.0051b8b0
mov eax, dword [0x5a49f0]
xor eax, esp
mov dword [esp + 0x350], eax
cmp dword [ebp + 0x20], 0x100000
mov eax, dword [ebp + 8]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [esp + 0x74], eax
mov ebx, 0x40
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esp + 0x34], eax
mov edi, 8
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x80], esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], 0x28
mov dword [esp + 0x20], edi
mov byte [esp + 0x17], 1
jb 0x4949dd
push str.data_plus_mac_plus_padding_size___1024__1024
push 0x1c7
push str.._ssl_s3_cbc.c
call fcn.004b22a0
add esp, 0xc
push dword [esp + 0x60]
call fcn.004b8240
push eax
call fcn.004b1b60
add esp, 8
cmp eax, 0x2a0
jg 0x494ab2
je 0x494a80
cmp eax, 4
je 0x494a40
cmp eax, 0x40
jne 0x494ac7
lea eax, [esp + 0xb0]
push eax
call fcn.00510390
add esp, 4
test eax, eax
jle 0x4951d2
mov dword [esp + 0x30], 0x495570
mov ecx, 0x14
mov dword [esp + 0x18], 0x4c8660
jmp 0x494b8d
lea eax, [esp + 0xb0]
push eax
call fcn.004b0570
add esp, 4
test eax, eax
jle 0x4951d2
mov edx, 0x30
mov dword [esp + 0x30], 0x4954f0
mov dword [esp + 0x18], 0x4af300
mov ecx, 0x10
mov dword [esp + 0x58], edx
mov byte [esp + 0x17], 0
jmp 0x494b92
lea eax, [esp + 0xb0]
push eax
call fcn.004a9560
add esp, 4
test eax, eax
jle 0x4951d2
mov dword [esp + 0x30], 0x495610
mov ecx, 0x20
mov dword [esp + 0x18], 0x4a95c0
jmp 0x494b8d
sub eax, 0x2a1
je 0x494b4e
sub eax, 1
je 0x494b32
sub eax, 1
je 0x494b03
push 0x54db54
push 0x209
push str.._ssl_s3_cbc.c
call fcn.004b22a0
add esp, 0xc
test esi, esi
je 0x4951d2
mov dword [esi], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x350]
xor ecx, esp
call fcn.0051ad3f
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xb0]
push eax
call fcn.004a9220
add esp, 4
test eax, eax
jle 0x4951d2
mov dword [esp + 0x30], 0x495610
mov ecx, 0x1c
mov dword [esp + 0x18], 0x4a95c0
jmp 0x494b8d
lea eax, [esp + 0xb0]
push eax
call fcn.004c8d90
add esp, 4
test eax, eax
jle 0x4951d2
mov ecx, ebx
jmp 0x494b6b
lea eax, [esp + 0xb0]
push eax
call fcn.004c8760
add esp, 4
test eax, eax
jle 0x4951d2
mov ecx, 0x30
mov edi, 0x10
mov dword [esp + 0x18], 0x4c8e40
mov ebx, 0x80
mov dword [esp + 0x20], edi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x30], 0x495700
mov edx, 0x28
cmp byte [ebp + 0x2c], 0
mov eax, 0xd
mov dword [esp + 0x28], ecx
mov dword [esp + 0x4c], eax
je 0x494bb1
mov eax, dword [ebp + 0x28]
add eax, 0xb
add eax, edx
mov dword [esp + 0x4c], eax
xor edx, edx
mov esi, eax
cmp byte [ebp + 0x2c], dl
sete dl
sub esi, ecx
mov ecx, dword [ebp + 0x20]
dec ecx
lea edx, [edx*4 + 2]
mov dword [esp + 0x38], edx
lea eax, [esi + edi]
add eax, ebx
xor edx, edx
add eax, ecx
xor edi, edi
div ebx
mov ecx, dword [ebp + 0x1c]
xor edx, edx
add ecx, esi
mov dword [esp + 0x48], eax
xor eax, eax
mov esi, dword [esp + 0x20]
mov dword [esp + 0x40], eax
mov eax, ecx
div ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x54], edx
xor edx, edx
mov dword [esp + 0x64], eax
lea eax, [ecx + esi]
div ebx
mov edx, dword [esp + 0x38]
xor ecx, ecx
cmp byte [ebp + 0x2c], cl
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x48]
setne cl
add ecx, edx
mov dword [esp + 0x2c], edi
cmp eax, ecx
jbe 0x494c32
sub eax, edx
mov edi, eax
mov dword [esp + 0x40], eax
imul edi, ebx
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x44]
shl eax, 3
cmp byte [ebp + 0x2c], 0
mov dword [esp + 0x1c], eax
jne 0x494ce9
lea eax, [eax + ebx*8]
push ebx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1dc]
push 0
push eax
call fcn.0051de60
mov eax, dword [ebp + 0x28]
add esp, 0xc
cmp eax, 0x80
jbe 0x494c85
push str.mac_secret_length___sizeof_hmac_pad_
push 0x271
push str.._ssl_s3_cbc.c
call fcn.004b22a0
mov eax, dword [ebp + 0x28]
add esp, 0xc
push eax
push dword [esp + 0x60]
lea eax, [esp + 0x1e0]
push eax
call fcn.0051dfc0
movaps xmm1, xmmword [str.6666666666666666jjjjjjjjjjjjjjjj]
add esp, 0xc
xor eax, eax
movups xmm0, xmmword [esp + eax + 0x1d8]
pxor xmm0, xmm1
movups xmmword [esp + eax + 0x1d8], xmm0
movups xmm0, xmmword [esp + eax + 0x1e8]
pxor xmm0, xmm1
movups xmmword [esp + eax + 0x1e8], xmm0
add eax, 0x20
cmp eax, ebx
jb 0x494ca3
lea eax, [esp + 0x1d8]
push eax
lea eax, [esp + 0xb4]
push eax
call dword [esp + 0x20]
add esp, 8
cmp byte [esp + 0x17], 0
je 0x494d37
lea eax, [esi - 4]
push eax
lea eax, [esp + 0x18c]
push 0
push eax
call fcn.0051de60
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov eax, ecx
mov byte [esp + esi + 0x187], cl
shr eax, 0x18
mov byte [esp + esi + 0x184], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + esi + 0x185], al
mov eax, ecx
shr eax, 8
mov byte [esp + esi + 0x186], al
jmp 0x494d79
push esi
lea eax, [esp + 0x18c]
push 0
push eax
call fcn.0051de60
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov eax, ecx
mov byte [esp + esi + 0x180], cl
shr eax, 0x18
mov byte [esp + esi + 0x183], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + esi + 0x182], al
mov eax, ecx
shr eax, 8
mov byte [esp + esi + 0x181], al
test edi, edi
je 0x494ebf
cmp byte [ebp + 0x2c], 0
je 0x494e31
mov eax, dword [esp + 0x4c]
cmp eax, ebx
jbe 0x4951d2
push dword [esp + 0x3c]
sub eax, ebx
mov dword [esp + 0x20], eax
lea eax, [esp + 0xb4]
push eax
call dword [esp + 0x20]
push dword [esp + 0x24]
mov eax, dword [esp + 0x48]
add eax, ebx
push eax
lea eax, [esp + 0x268]
push eax
call fcn.0051dfc0
mov eax, ebx
sub eax, dword [esp + 0x30]
push eax
push dword [esp + 0x4c]
lea eax, [esp + 0x274]
add eax, dword [esp + 0x38]
push eax
call fcn.0051dfc0
lea eax, [esp + 0x278]
push eax
lea eax, [esp + 0xd4]
push eax
call dword [esp + 0x40]
xor edx, edx
mov eax, edi
div ebx
add esp, 0x28
dec eax
cmp eax, 1
jbe 0x494ebf
mov esi, dword [esp + 0x34]
lea edi, [eax - 1]
sub esi, dword [esp + 0x1c]
add esi, ebx
lea eax, [esp + 0xb0]
push esi
push eax
call dword [esp + 0x20]
add esp, 8
add esi, ebx
sub edi, 1
jne 0x494e15
jmp 0x494eb7
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 8]
movq xmm0, qword [ecx]
mov dword [esp + 0x260], eax
mov al, byte [ecx + 0xc]
mov byte [esp + 0x264], al
lea eax, [ebx - 0xd]
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x26d]
movq qword [esp + 0x260], xmm0
push eax
call fcn.0051dfc0
lea eax, [esp + 0x264]
push eax
lea eax, [esp + 0xc0]
push eax
call dword [esp + 0x2c]
xor edx, edx
mov eax, edi
div ebx
add esp, 0x14
cmp eax, 1
jbe 0x494ebf
mov esi, dword [esp + 0x34]
lea edi, [eax - 1]
add esi, 0xfffffff3
add esi, ebx
nop dword [eax]
lea eax, [esp + 0xb0]
push esi
push eax
call dword [esp + 0x20]
add esp, 8
add esi, ebx
sub edi, 1
jne 0x494ea0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
push 0x40
lea eax, [esp + 0x19c]
push 0
push eax
call fcn.0051de60
mov eax, dword [esp + 0x44]
add esp, 0xc
mov ecx, dword [esp + 0x40]
add eax, ecx
mov dword [esp + 0x74], eax
cmp ecx, eax
ja 0x49511e
mov eax, dword [esp + 0x54]
mov edx, eax
shr edx, 0x1f
mov dword [esp + 0x38], edx
lea edx, [eax + 1]
shr edx, 0x1f
mov dword [esp + 0x20], edx
mov edx, ebx
sub edx, esi
sub esi, ebx
mov dword [esp + 0x6c], edx
lea ebx, [esp + 0x188]
mov edx, eax
lea eax, [esp + eax + 0x2d8]
neg edx
mov dword [esp + 0x70], eax
add ebx, esi
mov dword [esp + 0x78], edx
mov dword [esp + 0x54], ebx
nop word [eax + eax]
mov eax, ecx
xor esi, esi
xor eax, dword [esp + 0x64]
lea ebx, [eax - 1]
not eax
shr eax, 0x1f
shr ebx, 0x1f
and bl, al
mov eax, ecx
xor eax, dword [esp + 0x68]
neg bl
mov dword [esp + 0x44], ebx
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and cl, al
neg cl
movsx eax, cl
mov dword [esp + 0x48], ecx
not cl
or cl, bl
mov byte [esp + 0x27], cl
mov ecx, edx
movd xmm0, eax
mov eax, dword [esp + 0x54]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
movaps xmmword [esp + 0xa0], xmm0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], eax
jmp 0x494fa4
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov byte [esp + 0x17], 0
cmp edi, edx
jae 0x494fb7
mov eax, dword [esp + 0x3c]
jmp 0x494fc6
mov eax, dword [ebp + 0x20]
add eax, edx
cmp edi, eax
jae 0x494fcd
mov eax, dword [esp + 0x34]
sub eax, edx
mov al, byte [eax + edi]
mov byte [esp + 0x17], al
shr ecx, 0x1f
mov edx, esi
xor cl, byte [esp + 0x38]
inc edi
shr edx, 0x1f
mov al, dl
xor al, byte [esp + 0x38]
or cl, al
movzx eax, bl
mov ebx, dword [esp + 0x2c]
xor cl, dl
dec ebx
dec cl
shr ebx, 0x1f
xor bl, byte [esp + 0x20]
movzx ecx, cl
and ecx, eax
mov al, dl
xor al, byte [esp + 0x20]
or bl, al
mov al, cl
xor bl, dl
not al
and al, byte [esp + 0x17]
dec bl
and bl, byte [esp + 0x44]
and cl, 0x80
not bl
or al, cl
and bl, al
and bl, byte [esp + 0x27]
cmp esi, dword [esp + 0x6c]
jb 0x49503c
mov eax, dword [esp + 0x48]
movzx ecx, al
mov eax, dword [esp + 0x1c]
mov dl, cl
not dl
and bl, dl
mov al, byte [eax]
and al, cl
or bl, al
mov ecx, dword [esp + 0x2c]
inc esi
mov eax, dword [esp + 0x70]
inc dword [esp + 0x1c]
mov byte [eax + ecx], bl
inc ecx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x2c], ecx
cmp esi, ebx
jb 0x494fa0
lea eax, [esp + 0x2d8]
push eax
lea eax, [esp + 0xb4]
push eax
call dword [esp + 0x20]
lea eax, [esp + 0x2e0]
push eax
lea eax, [esp + 0xbc]
push eax
call dword [esp + 0x40]
mov esi, dword [esp + 0x38]
add esp, 0x10
xor eax, eax
cmp esi, 0x20
jb 0x4950e7
movaps xmm2, xmmword [esp + 0xa0]
mov ecx, esi
and ecx, 0xffffffe0
movups xmm0, xmmword [esp + eax + 0x198]
movups xmm1, xmmword [esp + eax + 0x2d8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0x198], xmm1
movups xmm1, xmmword [esp + eax + 0x2e8]
movups xmm0, xmmword [esp + eax + 0x1a8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [esp + eax + 0x1a8], xmm1
add eax, 0x20
cmp eax, ecx
jb 0x4950a0
cmp eax, esi
jae 0x495105
mov edx, dword [esp + 0x48]
nop
mov cl, byte [esp + eax + 0x2d8]
and cl, dl
or byte [esp + eax + 0x198], cl
inc eax
cmp eax, esi
jb 0x4950f0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x78]
inc ecx
mov dword [esp + 0x40], ecx
cmp ecx, dword [esp + 0x74]
jbe 0x494f30
jmp 0x495122
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x88]
push eax
call fcn.004b4ef0
mov eax, dword [esp + 0x64]
push 0
push dword [eax]
lea eax, [esp + 0x94]
push eax
call fcn.004b4ad0
add esp, 0x10
test eax, eax
jle 0x4951c2
cmp byte [ebp + 0x2c], 0
je 0x4951e9
mov edi, dword [esp + 0x58]
lea eax, [esp + 0x1d8]
push edi
push 0x5c
push eax
call fcn.0051de60
push dword [ebp + 0x28]
lea eax, [esp + 0x98]
push dword [esp + 0x6c]
push eax
call fcn.004b4c80
add esp, 0x18
test eax, eax
jle 0x4951c2
push edi
lea eax, [esp + 0x1dc]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004b4c80
add esp, 0xc
test eax, eax
jle 0x4951c2
push esi
lea eax, [esp + 0x19c]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004b4c80
add esp, 0xc
test eax, eax
jg 0x49525f
lea eax, [esp + 0x88]
push eax
call fcn.004b4c90
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x350]
xor ecx, esp
call fcn.0051ad3f
mov esp, ebp
pop ebp
ret
movaps xmm1, xmmword [0x5559d0]
xor eax, eax
movups xmm0, xmmword [esp + eax + 0x1d8]
pxor xmm0, xmm1
movups xmmword [esp + eax + 0x1d8], xmm0
movups xmm0, xmmword [esp + eax + 0x1e8]
pxor xmm0, xmm1
movups xmmword [esp + eax + 0x1e8], xmm0
add eax, 0x20
cmp eax, ebx
jb 0x4951f2
push ebx
lea eax, [esp + 0x1dc]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004b4c80
add esp, 0xc
test eax, eax
jle 0x4951c2
push esi
lea eax, [esp + 0x19c]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004b4c80
add esp, 0xc
test eax, eax
jle 0x4951c2
lea eax, [esp + 0x84]
push eax
push dword [esp + 0x80]
lea eax, [esp + 0x90]
push eax
call fcn.004b4a00
mov ecx, dword [esp + 0x8c]
add esp, 0xc
test ecx, ecx
je 0x495292
mov eax, dword [esp + 0x84]
mov dword [ecx], eax
lea eax, [esp + 0x88]
push eax
call fcn.004b4c90
mov ecx, dword [esp + 0x360]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051ad3f
mov esp, ebp
pop ebp
ret