Function at 0x427370
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d939d
mov eax, dword fs:[0]
push eax
sub esp, 0x358
mov eax, dword [0x532d60]
xor eax, esp
mov dword [esp + 0x350], eax
push ebx
push esi
push edi
mov eax, dword [0x532d60]
xor eax, esp
push eax
lea eax, [esp + 0x368]
mov dword fs:[0], eax
mov dword [esp + 0x2c], ecx
and dword [esp + 0x334], 0xfffffe00
mov dword [esp + 0x338], 0
mov dword [esp + 0x370], 1
mov eax, dword [esp + 0x24]
and eax, 0xffffff04
or eax, 0x104
mov dword [esp + 0x24], eax
mov eax, dword [0x538390]
mov dword [esp + 0x28], 0
test al, 1
jne 0x427417
or eax, 1
push 0x4e75e0
mov dword [0x538390], eax
mov dword [0x538314], 0x51fae8
call fcn.004b8949
add esp, 4
mov ecx, dword [0x534374]
push 0xffffffffffffffff
mov eax, dword [ecx]
push str.success
call dword [eax + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push ecx
push str.error
lea ecx, [esp + 0x338]
mov byte [esp + 0x37c], 2
call fcn.0044d470
mov ecx, eax
call fcn.0044ca80
lea ecx, [esp + 0x1c]
mov byte [esp + 0x370], 1
call fcn.0044c9c0
lea ecx, [esp + 0x14]
call fcn.00434180
mov edx, eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x370], 3
call fcn.00433ad0
mov esi, eax
mov byte [esp + 0x370], 4
mov ecx, dword [esp + 0x3c]
mov eax, dword [0x538390]
and ecx, 0xffffff04
or ecx, 0x104
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], 0
test al, 1
jne 0x4274ce
or eax, 1
push 0x4e75e0
mov dword [0x538390], eax
mov dword [0x538314], 0x51fae8
call fcn.004b8949
add esp, 4
cmp dword [esi + 0x14], 0x10
mov edx, dword [esi + 0x10]
jb 0x4274d9
mov esi, dword [esi]
mov ecx, dword [0x534374]
push edx
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov dword [esp + 0x34], eax
push ecx
push str.path
lea ecx, [esp + 0x334]
mov byte [esp + 0x378], 5
call fcn.0044d470
mov esi, eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0
call fcn.0044c840
movsx ecx, byte [esi + 8]
mov ebx, dword [esp + 0x24]
mov byte [esi + 8], bl
mov edx, dword [esi + 4]
mov eax, ebx
xor eax, ecx
mov ecx, dword [esi]
and eax, 0xff
xor ebx, eax
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 8]
mov edx, ecx
shl edx, 0x17
sar edx, 0x1f
shl edx, 8
mov eax, ebx
xor eax, ecx
xor edx, ebx
and eax, 0x100
and edx, 0x100
xor eax, ecx
xor ebx, edx
lea ecx, [esp + 0x1c]
mov dword [esi + 8], eax
mov dword [esp + 0x24], ebx
call fcn.0044c9c0
lea ecx, [esp + 0x34]
mov byte [esp + 0x370], 4
call fcn.0044c9c0
cmp dword [esp + 0x58], 0x10
jb 0x4275a3
push dword [esp + 0x44]
call fcn.004b817c
add esp, 4
mov byte [esp + 0x370], 1
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4275e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x340], 0x51c0cc
mov dword [esp + 0x358], 0xf
mov dword [esp + 0x354], 0
mov byte [esp + 0x344], 0
mov byte [esp + 0x35c], 0
mov byte [esp + 0x370], 6
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
lea eax, [esp + 0x32c]
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x348]
mov byte [esp + 0x378], 7
call fcn.0044f670
mov edx, eax
mov byte [esp + 0x370], 8
cmp dword [edx + 0x14], 0x10
jb 0x427660
mov edx, dword [edx]
sub esp, 0x18
mov edi, esp
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [edx], 0
jne 0x42767f
xor ecx, ecx
jmp 0x427693
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x30], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427688
sub ecx, dword [esp + 0x30]
push ecx
push edx
mov ecx, edi
call fcn.004012e0
lea ecx, [esp + 0x48]
call fcn.00433a00
add esp, 0x18
mov byte [esp + 0x370], 9
mov edx, dword [eax]
lea edi, [esi - 0x10]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x427705
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4276f4
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4276f4
call fcn.00404b50
mov dword [esp + 0x18], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4276eb
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x18]
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
jmp 0x427705
push dword [edx - 0xc]
lea ecx, [esp + 0x18]
push edx
call fcn.00404a90
mov esi, dword [esp + 0x14]
mov byte [esp + 0x370], 8
mov edx, dword [esp + 0x30]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42772a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x370], 7
cmp dword [esp + 0x58], 0x10
jb 0x427745
push dword [esp + 0x44]
call fcn.004b817c
add esp, 4
mov edi, dword [0x537408]
mov eax, edi
imul eax, edi
cdq
mov ecx, 0xc
idiv ecx
cmp edx, 2
jne 0x427791
xor ecx, ecx
nop
mov eax, dword [esp + ecx*4 + 0x70]
add eax, dword [esp + ecx*4 + 0x6c]
add ecx, 6
add eax, dword [esp + ecx*4 + 0x50]
add eax, dword [esp + ecx*4 + 0x4c]
add eax, dword [esp + ecx*4 + 0x48]
add eax, dword [esp + ecx*4 + 0x44]
imul eax, eax, 0xe8
add edi, eax
cmp ecx, 0x2d0
jb 0x427760
mov dword [0x537408], edi
mov edi, dword [esp + 0x2c]
mov eax, 8
mov word [edi], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x4277b0
call fcn.0040caf0
mov dword [edi + 8], eax
mov edi, dword [0x537408]
mov eax, edi
imul eax, edi
cdq
mov ecx, 0x11
idiv ecx
cmp edx, 6
jne 0x427854
xor edx, edx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, edi
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edi
sar ecx, 1
xor eax, ecx
inc edx
add edi, eax
cmp edx, 0x100
jl 0x4277d1
mov dword [0x537408], edi
add esi, 0xfffffff0
mov byte [esp + 0x370], 6
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x427873
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esp + 0x358], 0x10
mov dword [esp + 0x340], 0x51c0cc
jb 0x427897
push dword [esp + 0x344]
call fcn.004b817c
add esp, 4
lea ecx, [esp + 0x32c]
mov dword [esp + 0x358], 0xf
mov dword [esp + 0x354], 0
mov byte [esp + 0x344], 0
mov dword [esp + 0x340], 0x51fca0
mov dword [esp + 0x370], 0xffffffff
call fcn.0044c9c0
mov ecx, dword [esp + 0x368]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x350]
xor ecx, esp
call fcn.004b8181
mov esp, ebp
pop ebp
ret