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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb8
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x70]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
push eax
call fcn.005427d0
add esp, 0x14
mov edi, dword [esp + 0xa4]
cmp dword [esp + 0x70], 0
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edi
je 0x50df28
mov ecx, dword [esp + 0x8c]
cmp ecx, edi
je 0x50e0fc
mov esi, dword [esp + 0x88]
mov eax, dword [esp + 0xac]
mov dword [esp + 8], ecx
mov edx, dword [esp + 8]
mov ecx, esi
mov ecx, dword [esp + 0x80]
mov ebx, eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x20], eax
sub ebx, esi
mov dword [esp + 0x58], ebx
mov ebx, edx
lea esi, [ecx - 1]
mov dword [esp + 0x1c], ecx
cmp esi, eax
mov dword [esp + 0x54], esi
mov esi, ecx
setb byte [esp + 0x13]
sub esi, edx
mov dword [esp + 0x34], esi
mov esi, edx
xor edx, edx
neg esi
mov dword [esp + 0x28], esi
mov esi, eax
sub esi, ecx
cmovb esi, edx
lea edx, [eax - 1]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x94]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x3c], edx
mov edx, ebx
lea ebx, [esi + ebx]
mov dword [esp + 0x50], ebx
lea ebx, [ecx + edx]
lea edx, [esi + ebx]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x44]
lea esi, [edx + ecx]
mov dword [esp + 0x68], esi
lea esi, [edx + ecx - 1]
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 8]
lea ecx, [ecx + esi - 1]
mov dword [esp + 0x2c], ecx
lea ecx, [esi + eax - 1]
cmp ecx, edi
jae 0x50e0fc
add eax, esi
cmp dword [esp + 4], 0xffffffff
mov dword [esp + 0x18], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x60]
lea eax, [esi + eax]
mov dword [esp + 0x30], eax
mov eax, esi
je 0x50dde0
mov eax, dword [esp + 0x34]
neg eax
mov dword [esp + 0x64], eax
mov eax, esi
cmp esi, eax
jne 0x50e0fc
mov eax, dword [esp + 0x14]
mov esi, 1
xor ebx, ebx
movzx ecx, byte [eax + ecx]
xor eax, eax
shld eax, esi, cl
shl esi, cl
test cl, 0x20
cmovne eax, esi
cmovne esi, ebx
and eax, dword [esp + 0x3c]
and esi, dword [esp + 0x40]
or esi, eax
je 0x50dd50
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
cmp eax, esi
cmova esi, eax
cmp esi, edi
mov dword [esp + 0x24], esi
cmova edi, esi
nop word [eax + eax]
cmp edi, esi
je 0x50dd80
mov eax, dword [esp + 0x18]
add eax, esi
cmp eax, dword [esp + 0xc]
jae 0x50e095
movzx ebx, byte [edx + esi]
mov ecx, dword [esp + 0x50]
lea eax, [esi + 1]
cmp bl, byte [ecx + esi]
mov esi, eax
je 0x50dd20
add eax, dword [esp + 0x64]
mov edi, dword [esp + 0xc]
jmp 0x50dd54
mov eax, dword [esp + 8]
xor esi, esi
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], esi
mov esi, dword [esp + 0x18]
add ecx, eax
cmp ecx, edi
jb 0x50dcca
jmp 0x50e0fc
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
nop dword [eax + eax]
cmp dword [esp + 4], esi
jae 0x50ddd0
mov eax, dword [esp + 0x20]
dec esi
cmp esi, eax
jae 0x50df1c
mov eax, dword [esp + 0x18]
lea ecx, [esi + eax]
cmp ecx, edi
jae 0x50e09f
mov ebx, edi
movzx eax, byte [edx + esi]
mov edi, dword [esp + 0x14]
cmp al, byte [edi + ecx]
mov edi, ebx
je 0x50dd90
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x30]
jmp 0x50dd56
mov dword [esp + 4], 0
jmp 0x50ded8
mov eax, dword [esp + 0x28]
neg eax
mov dword [esp + 0x24], eax
jmp 0x50ddff
mov eax, dword [esp + 0x38]
lea ecx, [esi + eax]
cmp ecx, edi
jae 0x50dfd7
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x50dfaa
mov eax, dword [esp + 0x14]
mov esi, 1
movzx ecx, byte [eax + ecx]
xor eax, eax
shld eax, esi, cl
shl esi, cl
test cl, 0x20
mov ecx, 0
cmovne eax, esi
cmovne esi, ecx
and eax, dword [esp + 0x3c]
and esi, dword [esp + 0x40]
or esi, eax
mov esi, dword [esp + 8]
je 0x50ddf0
xor ecx, ecx
nop
cmp dword [esp + 0x6c], ecx
je 0x50de70
mov eax, dword [esp + 0x4c]
add eax, ecx
cmp eax, edi
jae 0x50e0b8
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x48]
lea esi, [ecx + 1]
movzx eax, byte [eax + ecx]
cmp al, byte [ebx + ecx]
mov ecx, esi
je 0x50de40
add esi, dword [esp + 0x24]
jmp 0x50ddf0
test byte [esp + 0x13], 1
mov esi, dword [esp + 8]
je 0x50df05
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x1c]
nop dword [eax + eax]
sub ebx, 1
jb 0x50ded0
cmp ecx, edi
jae 0x50e09f
movzx eax, byte [esi]
mov edx, edi
mov edi, dword [esp + 0x14]
dec esi
mov byte [esp + 4], al
movzx eax, byte [esp + 4]
cmp al, byte [edi + ecx]
mov edi, edx
mov edx, dword [esp + 0x44]
lea ecx, [ecx - 1]
je 0x50de90
mov esi, dword [esp + 0x30]
jmp 0x50ddf0
mov dword [esp + 4], 0xffffffff
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 8]
sub dword [esp + 0x34], eax
add dword [esp + 0x50], eax
sub dword [esp + 0x28], eax
add dword [esp + 0x48], eax
add dword [esp + 0x4c], eax
add dword [esp + 0x2c], eax
cmp esi, edi
jne 0x50dc90
jmp 0x50dff5
cmp dword [esp + 0x1c], 0
mov eax, dword [esp + 0x20]
mov dword [esp + 4], 0xffffffff
je 0x50dee0
mov esi, dword [esp + 0x54]
push 0x60a644
push eax
push esi
jmp 0x50e0cc
cmp byte [esp + 0x7e], 0
jne 0x50e0fc
mov edi, dword [esp + 0x74]
mov ebx, dword [esp + 0x14]
movzx ecx, byte [esp + 0x7c]
test edi, edi
je 0x50df7d
cmp dword [esp + 0xc], edi
mov edx, dword [ebp + 0xc]
jbe 0x50dfb1
mov ch, byte [ebx + edi]
cmp ch, 0xc0
jl 0x50e10e
mov edx, ecx
xor dl, 1
test ch, ch
js 0x50dffd
test cl, cl
je 0x50e0fa
mov eax, edx
xor al, 1
test dl, dl
mov edx, eax
jne 0x50df70
jmp 0x50e0fa
cmp dword [esp + 0xc], 0
mov edx, dword [ebp + 0xc]
je 0x50dfe0
mov ch, byte [ebx + edi]
mov eax, ebx
test ch, ch
js 0x50e03c
test cl, cl
je 0x50e0fa
nop dword [eax]
xor cl, 1
jne 0x50dfa0
jmp 0x50e0fa
mov esi, eax
jmp 0x50e0fc
jne 0x50e10e
test cl, cl
mov esi, edx
je 0x50e0fc
nop word cs:[eax + eax]
nop dword [eax + eax]
xor cl, 1
jne 0x50dfd0
jmp 0x50dff5
mov esi, dword [esp + 0x18]
jmp 0x50e0fc
test cl, cl
mov esi, edx
je 0x50e0fc
nop word [eax + eax]
xor cl, 1
jne 0x50dff0
mov esi, dword [ebp + 0xc]
jmp 0x50e0fc
cmp ch, 0xe0
jb 0x50e0a8
cmp ch, 0xf0
jb 0x50e0e1
movzx eax, byte [ebx + edi + 1]
mov esi, ebx
movzx esi, byte [ebx + edi + 2]
and eax, 0x3f
and esi, 0x3f
shl eax, 0xc
shl esi, 6
or esi, eax
test cl, cl
je 0x50e037
mov eax, edx
xor al, 1
test dl, dl
mov edx, eax
jne 0x50e02f
mov edx, dword [ebp + 0xc]
jmp 0x50e074
cmp ch, 0xe0
jb 0x50e0d6
cmp ch, 0xf0
jb 0x50e0f1
movzx eax, byte [ebx + edi + 1]
mov esi, ebx
movzx esi, byte [ebx + edi + 2]
and ch, 0x1f
and eax, 0x3f
and esi, 0x3f
shl eax, 0xc
shl esi, 6
or esi, eax
test cl, cl
je 0x50e074
xor cl, 1
jne 0x50e06f
movzx ebx, byte [ebx + edi + 3]
movzx eax, ch
and eax, 7
shl eax, 0x12
and ebx, 0x3f
or ebx, esi
mov esi, edx
or ebx, eax
cmp ebx, 0x110000
jne 0x50e0fa
jmp 0x50e0fc
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x24]
jmp 0x50e0bc
push 0x60a654
push edi
push ecx
jmp 0x50e0cc
test cl, cl
je 0x50e0fa
mov eax, edx
xor al, 1
test dl, dl
mov edx, eax
jne 0x50e0ae
jmp 0x50e0fa
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x18]
cmp edi, eax
cmova eax, edi
push 0x60a634
push edi
push eax
call fcn.005b17d0
add esp, 0xc
ud2
test cl, cl
je 0x50e0fa
xor cl, 1
jne 0x50e0da
jmp 0x50e0fa
test cl, cl
je 0x50e0fa
mov eax, edx
xor al, 1
test dl, dl
mov edx, eax
jne 0x50e0e7
jmp 0x50e0fa
test cl, cl
je 0x50e0fa
xor cl, 1
jne 0x50e0f5
mov esi, edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add eax, esi
sub edx, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x60a664
mov eax, dword [esp + 0x10]
push eax
push edi
push eax
push ebx
call fcn.005b1ce0
add esp, 0x14
ud2