Function at 0x493940
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.0059eec0
mov eax, dword [0x647f80]
xor eax, esp
mov dword [esp + 0x350], eax
cmp dword [ebp + 0x24], 0x100000
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 0x18]
push ebx
mov dword [esp + 0x44], eax
mov ebx, 0x40
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x28]
push edi
mov dword [esp + 0x90], ecx
mov dword [esp + 0x98], esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], 0x28
mov dword [esp + 0x1c], 8
mov byte [esp + 0x1b], 1
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
jae 0x493ab7
push ecx
call fcn.0049ca00
push eax
call fcn.0045ded0
add esp, 8
cmp eax, 0x2a0
jg 0x493a9c
je 0x493a6e
cmp eax, 4
je 0x493a32
cmp eax, ebx
jne 0x493aad
lea eax, [esp + 0xb0]
push eax
call fcn.004d3fd0
add esp, 4
test eax, eax
jle 0x493ab7
mov dword [esp + 0x3c], 0x494420
lea edi, [ebx - 0x2c]
mov dword [esp + 0x20], 0x4d4010
jmp 0x493b4b
lea eax, [esp + 0xb0]
push eax
call fcn.004d53d0
add esp, 4
test eax, eax
jle 0x493ab7
mov ecx, 0x30
mov dword [esp + 0x3c], 0x4943a0
mov dword [esp + 0x20], 0x4d5410
mov edi, 0x10
mov dword [esp + 0x60], ecx
mov byte [esp + 0x1b], 0
jmp 0x493b50
lea eax, [esp + 0xb0]
push eax
call fcn.004d45f0
add esp, 4
test eax, eax
jle 0x493ab7
mov dword [esp + 0x3c], 0x4944c0
mov edi, 0x20
mov dword [esp + 0x20], 0x4d4650
jmp 0x493b4b
sub eax, 0x2a1
je 0x493b11
sub eax, 1
je 0x493af9
sub eax, 1
je 0x493ace
test esi, esi
je 0x493ab7
mov dword [esi], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x350]
xor ecx, esp
call fcn.0059e4d3
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xb0]
push eax
call fcn.004d42a0
add esp, 4
test eax, eax
jle 0x493ab7
mov dword [esp + 0x3c], 0x4944c0
mov edi, 0x1c
mov dword [esp + 0x20], 0x4d4650
jmp 0x493b4b
lea eax, [esp + 0xb0]
push eax
call fcn.004d4fa0
add esp, 4
test eax, eax
jle 0x493ab7
mov edi, ebx
jmp 0x493b2a
lea eax, [esp + 0xb0]
push eax
call fcn.004d4780
add esp, 4
test eax, eax
jle 0x493ab7
mov edi, 0x30
mov ebx, 0x80
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x58], ebx
mov dword [esp + 0x20], 0x4d5050
mov dword [esp + 0x3c], 0x4945b0
mov ecx, 0x28
cmp byte [ebp + 0x30], 0
mov esi, 0xd
mov dword [esp + 0x28], edi
mov dword [esp + 0x70], esi
je 0x493b79
mov esi, dword [ebp + 0x2c]
add esi, 0xb
mov dword [esp + 0x34], 2
add esi, ecx
mov dword [esp + 0x70], esi
jmp 0x493b8a
lea eax, [ebx + 0xff]
xor edx, edx
add eax, edi
div ebx
inc eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
mov ecx, esi
mov edx, dword [ebp + 0x24]
sub ecx, edi
add eax, ecx
dec edx
add eax, ebx
xor edi, edi
add eax, edx
mov dword [esp + 0x40], edi
xor edx, edx
div ebx
xor edx, edx
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
div ebx
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x2c]
add eax, ecx
mov dword [esp + 0x54], edx
xor edx, edx
div ebx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x74], eax
xor eax, eax
cmp byte [ebp + 0x30], al
setne al
add eax, dword [esp + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x34]
cmp dword [esp + 0x24], edx
jae 0x493c03
mov edi, eax
imul edi, ebx
cmp dword [esp + 0x24], edx
mov dword [esp + 0x40], edi
sbb edx, edx
and edx, eax
mov eax, dword [esp + 0x2c]
shl eax, 3
cmp byte [ebp + 0x30], 0
mov dword [esp + 0x44], edx
mov dword [esp + 0x24], eax
jne 0x493ce8
lea eax, [eax + ebx*8]
push ebx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1dc]
push 0
push eax
call fcn.005a0390
mov eax, dword [ebp + 0x2c]
add esp, 0xc
cmp eax, 0x80
ja 0x493ab7
push eax
push dword [esp + 0x68]
lea eax, [esp + 0x1e0]
push eax
call fcn.0059fdf0
movaps xmm2, xmmword [str.6666666666666666jjjjjjjjjjjjjjjjSRTP_AES128_CM_SHA1_80]
add esp, 0xc
xor eax, eax
nop word [eax + eax]
movups xmm0, xmmword [esp + eax + 0x1d8]
movaps xmm1, xmm2
xorps xmm0, xmm2
movups xmmword [esp + eax + 0x1d8], xmm0
movups xmm0, xmmword [esp + eax + 0x1e8]
xorps xmm1, xmm0
movups xmmword [esp + eax + 0x1e8], xmm1
movups xmm0, xmmword [esp + eax + 0x1f8]
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [esp + eax + 0x1f8], xmm1
movups xmm0, xmmword [esp + eax + 0x208]
xorps xmm0, xmm2
movups xmmword [esp + eax + 0x208], xmm0
add eax, 0x40
cmp eax, ebx
jb 0x493c70
lea eax, [esp + 0x1d8]
push eax
lea eax, [esp + 0xb4]
push eax
call dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add esp, 8
mov ecx, dword [esp + 0x1c]
mov edx, eax
shr edx, 0x18
mov dword [esp + 0x2c], edx
mov edx, eax
shr edx, 0x10
shr eax, 8
cmp byte [esp + 0x1b], 0
mov dword [esp + 0x48], edx
mov dword [esp + 0x38], eax
je 0x493d4d
lea eax, [ecx - 4]
push eax
lea eax, [esp + 0x18c]
push 0
push eax
call fcn.005a0390
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
mov byte [esp + ecx + 0x190], al
mov eax, dword [esp + 0x54]
mov byte [esp + ecx + 0x191], al
mov eax, dword [esp + 0x44]
mov byte [esp + ecx + 0x192], al
mov eax, dword [esp + 0x30]
mov byte [esp + ecx + 0x193], al
jmp 0x493d8d
push ecx
lea eax, [esp + 0x18c]
push 0
push eax
call fcn.005a0390
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
mov byte [esp + ecx + 0x18f], al
mov eax, dword [esp + 0x54]
mov byte [esp + ecx + 0x18e], al
mov eax, dword [esp + 0x44]
mov byte [esp + ecx + 0x18d], al
mov eax, dword [esp + 0x30]
mov byte [esp + ecx + 0x18c], al
add esp, 0xc
test edi, edi
je 0x493ebb
cmp byte [ebp + 0x30], 0
je 0x493e3a
cmp esi, ebx
jbe 0x493ab7
push dword [esp + 0x4c]
lea eax, [esp + 0xb4]
sub esi, ebx
push eax
mov dword [esp + 0x40], esi
call dword [esp + 0x28]
mov eax, dword [esp + 0x54]
add eax, ebx
push esi
push eax
lea eax, [esp + 0x268]
push eax
call fcn.0059fdf0
mov eax, ebx
sub eax, esi
push eax
push dword [esp + 0x68]
lea eax, [esp + 0x274]
add eax, esi
push eax
call fcn.0059fdf0
lea eax, [esp + 0x278]
push eax
lea eax, [esp + 0xd4]
push eax
call dword [esp + 0x48]
xor edx, edx
mov eax, edi
div ebx
add esp, 0x28
dec eax
cmp eax, 1
jbe 0x493ebb
mov esi, dword [esp + 0x50]
lea edi, [eax - 1]
sub esi, dword [esp + 0x38]
add esi, ebx
lea eax, [esp + 0xb0]
push esi
push eax
call dword [esp + 0x28]
add esp, 8
add esi, ebx
sub edi, 1
jne 0x493e21
jmp 0x493eb7
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
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
lea eax, [esp + 0x269]
movq qword [esp + 0x25c], xmm0
push esi
push eax
call fcn.0059fdf0
lea eax, [esp + 0x264]
push eax
lea eax, [esp + 0xc0]
push eax
call dword [esp + 0x34]
xor edx, edx
mov eax, edi
div ebx
add esp, 0x14
cmp eax, 1
jbe 0x493ebb
add esi, 0xfffffff3
lea edi, [eax - 1]
add esi, ebx
nop
lea eax, [esp + 0xb0]
push esi
push eax
call dword [esp + 0x28]
add esp, 8
add esi, ebx
sub edi, 1
jne 0x493ea0
mov edi, dword [esp + 0x40]
push 0x40
lea eax, [esp + 0x19c]
push 0
push eax
call fcn.005a0390
mov eax, dword [esp + 0x40]
add esp, 0xc
mov ecx, dword [esp + 0x44]
add eax, ecx
mov dword [esp + 0x88], eax
cmp ecx, eax
ja 0x494190
mov esi, dword [esp + 0x54]
mov eax, esi
shr eax, 0x1f
mov dword [esp + 0x78], eax
lea edx, [esi + 1]
neg esi
mov eax, edx
mov dword [esp + 0x7c], edx
shr eax, 0x1f
mov edx, ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
sub edx, eax
sub eax, ebx
mov dword [esp + 0x80], edx
mov dword [esp + 0x54], esi
lea eax, [esp + eax + 0x188]
mov dword [esp + 0x24], eax
nop word [eax + eax]
mov eax, ecx
xor esi, esi
xor eax, dword [esp + 0x84]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and dl, al
mov eax, ecx
xor eax, dword [esp + 0x74]
neg dl
mov dword [esp + 0x48], edx
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and cl, al
neg cl
movsx eax, cl
mov dword [esp + 0x40], ecx
not cl
or cl, dl
mov byte [esp + 0x33], cl
mov ecx, dword [esp + 0x54]
movd xmm0, eax
mov eax, dword [esp + 0x24]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
movaps xmmword [esp + 0xa0], xmm0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
nop dword [eax + eax]
mov edx, dword [esp + 0x70]
mov byte [esp + 0x1b], 0
cmp edi, edx
jae 0x493fb3
mov eax, dword [esp + 0x4c]
jmp 0x493fc2
mov eax, dword [ebp + 0x24]
add eax, edx
cmp edi, eax
jae 0x493fc9
mov eax, dword [esp + 0x50]
sub eax, edx
mov al, byte [eax + edi]
mov byte [esp + 0x1b], al
mov eax, dword [esp + 0x78]
mov ebx, esi
shr ecx, 0x1f
inc edi
xor cl, al
shr ebx, 0x1f
xor al, bl
or cl, al
mov eax, dword [esp + 0x48]
movzx eax, al
xor cl, bl
dec cl
movzx ecx, cl
and ecx, eax
mov eax, esi
sub eax, dword [esp + 0x7c]
shr eax, 0x1f
xor al, byte [esp + 0x38]
mov dword [esp + 0x1c], ecx
not ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
and dl, 0x80
mov ecx, dword [esp + 0x1c]
and cl, byte [esp + 0x1b]
mov dword [esp + 0x1c], eax
or cl, dl
mov al, bl
xor al, byte [esp + 0x38]
or byte [esp + 0x1c], al
mov eax, dword [esp + 0x1c]
xor al, bl
dec al
and al, byte [esp + 0x48]
not al
and al, cl
and al, byte [esp + 0x33]
mov dword [esp + 0x1c], eax
cmp esi, dword [esp + 0x80]
jb 0x49406a
mov eax, dword [esp + 0x40]
movzx eax, al
mov dword [esp + 0x5c], eax
not eax
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x5c]
and cl, byte [esp + 0x1c]
mov al, byte [eax]
and al, dl
or al, cl
mov ecx, dword [esp + 0x2c]
inc dword [esp + 0x34]
inc ecx
mov ebx, dword [esp + 0x58]
mov byte [esp + esi + 0x2d8], al
inc esi
mov dword [esp + 0x2c], ecx
cmp esi, ebx
jb 0x493fa0
lea eax, [esp + 0x2d8]
push eax
lea eax, [esp + 0xb4]
push eax
call dword [esp + 0x28]
lea eax, [esp + 0x2e0]
push eax
lea eax, [esp + 0xbc]
push eax
call dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
add esp, 0x10
xor eax, eax
cmp edx, 0x40
jb 0x49415f
movaps xmm2, xmmword [esp + 0xa0]
mov ecx, edx
and ecx, 0xffffffc0
nop dword [eax]
nop word [eax + eax]
movups xmm0, xmmword [esp + eax + 0x198]
movups xmm1, xmmword [esp + eax + 0x2d8]
andps xmm1, xmm2
orps xmm1, xmm0
movups xmmword [esp + eax + 0x198], xmm1
movups xmm0, xmmword [esp + eax + 0x1a8]
movups xmm1, xmmword [esp + eax + 0x2e8]
andps xmm1, xmm2
orps xmm1, xmm0
movups xmmword [esp + eax + 0x1a8], xmm1
movups xmm0, xmmword [esp + eax + 0x1b8]
movups xmm1, xmmword [esp + eax + 0x2f8]
andps xmm1, xmm2
orps xmm1, xmm0
movups xmmword [esp + eax + 0x1b8], xmm1
movups xmm1, xmmword [esp + eax + 0x308]
movups xmm0, xmmword [esp + eax + 0x1c8]
andps xmm1, xmm2
orps xmm1, xmm0
movups xmmword [esp + eax + 0x1c8], xmm1
add eax, 0x40
cmp eax, ecx
jb 0x4940e0
cmp eax, edx
jae 0x49417a
mov cl, byte [esp + eax + 0x2d8]
and cl, byte [esp + 0x40]
or byte [esp + eax + 0x198], cl
inc eax
cmp eax, edx
jb 0x494163
mov ecx, dword [esp + 0x44]
inc ecx
mov dword [esp + 0x44], ecx
cmp ecx, dword [esp + 0x88]
jbe 0x493f30
call fcn.004a0690
mov esi, eax
test esi, esi
je 0x49432d
mov edi, dword [esp + 0x8c]
mov eax, dword [edi + 0x828]
push dword [eax + 0x264]
push dword [esp + 0x94]
call fcn.0049ca00
push eax
call fcn.0045ded0
add esp, 8
push eax
mov eax, dword [edi + 0x828]
push dword [eax]
call fcn.0045e940
add esp, 0xc
mov dword [esp + 0x68], eax
test eax, eax
je 0x49432d
push 0
push eax
push esi
call fcn.0049fb80
add esp, 0xc
test eax, eax
jle 0x49432d
cmp byte [ebp + 0x30], 0
je 0x494266
mov edi, dword [esp + 0x60]
lea eax, [esp + 0x1d8]
push edi
push 0x5c
push eax
call fcn.005a0390
push dword [ebp + 0x2c]
push dword [esp + 0x74]
push esi
call fcn.0049ffe0
add esp, 0x18
test eax, eax
jle 0x49432d
push edi
lea eax, [esp + 0x1dc]
push eax
push esi
call fcn.0049ffe0
add esp, 0xc
test eax, eax
jle 0x49432d
push dword [esp + 0x28]
lea eax, [esp + 0x19c]
push eax
push esi
call fcn.0049ffe0
add esp, 0xc
test eax, eax
jg 0x4942f5
jmp 0x49432d
movaps xmm2, xmmword [0x5d5610]
xor eax, eax
nop
movups xmm0, xmmword [esp + eax + 0x1d8]
movaps xmm1, xmm2
xorps xmm0, xmm2
movups xmmword [esp + eax + 0x1d8], xmm0
movups xmm0, xmmword [esp + eax + 0x1e8]
xorps xmm0, xmm2
movups xmmword [esp + eax + 0x1e8], xmm0
movups xmm0, xmmword [esp + eax + 0x1f8]
xorps xmm1, xmm0
movups xmmword [esp + eax + 0x1f8], xmm1
movups xmm0, xmmword [esp + eax + 0x208]
xorps xmm0, xmm2
movups xmmword [esp + eax + 0x208], xmm0
add eax, 0x40
cmp eax, ebx
jb 0x494270
push ebx
lea eax, [esp + 0x1dc]
push eax
push esi
call fcn.0049ffe0
add esp, 0xc
test eax, eax
jle 0x49432d
push dword [esp + 0x28]
lea eax, [esp + 0x19c]
push eax
push esi
call fcn.0049ffe0
add esp, 0xc
test eax, eax
jle 0x49432d
lea eax, [esp + 0x9c]
push eax
push dword [esp + 0x98]
push esi
call fcn.0049f8b0
add esp, 0xc
test eax, eax
je 0x494325
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x494325
mov eax, dword [esp + 0x9c]
mov dword [ecx], eax
mov dword [esp + 0x6c], 1
push esi
call fcn.004a0600
push dword [esp + 0x6c]
call fcn.0045e9a0
mov ecx, dword [esp + 0x364]
add esp, 8
mov eax, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0059e4d3
mov esp, ebp
pop ebp
ret