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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
xor eax, eax
cmp dword [ebp + 0x20], edi
mov dword [ebp - 0x10], edi
setne al
inc eax
imul eax, dword [0x4554a0]
test byte [ebp + 0x1f], 0x10
mov esi, eax
mov dword [ebp - 8], esi
je 0x403754
lea eax, [esi + esi]
mov dword [ebp - 8], eax
mov ecx, dword [0x444f34]
mov ebx, dword [ebp + 0x18]
mov eax, dword [0x444f30]
cmp ebx, ecx
jg 0x40376d
mov edx, dword [ebp - 8]
cmp dword [eax], edx
je 0x4037b4
cmp ebx, ecx
jle 0x403794
push eax
call fcn.00412224
add ebx, 0x10
pop ecx
mov eax, ebx
shl eax, 2
push eax
call fcn.004121ab
pop ecx
mov dword [0x444f30], eax
mov ecx, ebx
mov dword [0x444f34], ecx
xor ebx, ebx
xor edx, edx
cmp ecx, ebx
jle 0x4037b6
jmp 0x4037a3
mov eax, dword [0x444f30]
mov ecx, dword [ebp - 8]
mov dword [eax + edx*4], ecx
inc edx
cmp edx, dword [0x444f34]
jl 0x40379e
jmp 0x4037b6
xor ebx, ebx
mov ecx, dword [ebp + 0x10]
mov eax, dword [0x452edc]
imul esi, dword [ebp + 0xc]
imul ecx, eax
test byte [ebp + 0x1c], 4
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x10], ecx
je 0x403806
cmp dword [0x453b40], ebx
je 0x4037e1
cmp dword [0x452ee4], ebx
je 0x403806
mov ecx, dword [0x444bfc]
mov edx, 0x1000000
neg ecx
sbb ecx, ecx
and ecx, edx
or ecx, 0xf200ffff
and ecx, dword [ebp + 0x1c]
xor ecx, 0xba0000
mov dword [ebp + 0x1c], ecx
jmp 0x40380b
mov edx, 0x1000000
cmp dword [0x454134], 3
mov dword [ebp - 4], ebx
jne 0x403821
cmp dword [ebp + 0x20], ebx
je 0x403838
mov dword [ebp + 0x20], edx
jmp 0x403838
cmp dword [ebp + 0x20], ebx
je 0x403838
xor ecx, ecx
cmp dword [ebp + 0x20], edx
sete cl
dec ecx
and ecx, 8
add ecx, 4
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x1c]
mov esi, 0xff00
and ecx, esi
cmp ecx, 0x2300
jne 0x4038cf
cmp dword [0x45506c], ebx
jne 0x4038cf
mov ebx, dword [ebp + 0x14]
mov cl, byte [ebx]
cmp cl, 0xba
jl 0x4038d2
cmp cl, 0xbd
jg 0x4038d2
movzx ecx, cl
sub ecx, 0xba
je 0x403882
dec ecx
je 0x40387d
dec ecx
je 0x403886
dec ecx
jne 0x40388e
add eax, eax
jmp 0x403886
cdq
push 0xfffffffffffffffb
jmp 0x403889
neg eax
shl eax, 1
cdq
push 5
pop ecx
idiv ecx
mov edi, eax
mov eax, 0x2000000
cmp dword [ebp + 0x20], eax
je 0x4038a1
cmp dword [ebp + 0x20], 0x3000000
jne 0x4038a3
add edi, edi
mov cl, byte [0x454d02]
mov edx, dword [ebp + 0x1c]
mov byte [ebx], cl
mov ecx, dword [0x454d02]
and ecx, esi
and dh, 0
or ecx, edx
test eax, ecx
mov dword [ebp + 0x1c], ecx
je 0x4038d2
and byte [ebp + 0x1f], 0xfd
mov dword [ebp - 0x10], 1
jmp 0x4038d2
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x1c]
and eax, 0xfc00
cmp eax, 0xd800
jne 0x4038f5
push dword [ebp + 0x18]
or dword [ebp + 0x1c], esi
push 0xff
push ebx
call fcn.00428790
add esp, 0xc
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0xc], ebx
and dword [ebp - 0xc], esi
cmp dword [ebp - 0xc], 0xf000
jne 0x40390b
or dword [ebp - 4], 0x20
mov esi, dword [ebp + 0x1c]
shr ebx, 0x10
shr esi, 0x14
and ebx, 0xf
and esi, 0xf
shl ebx, 1
shl esi, 1
cmp dword [0x444bfc], 2
jne 0x403931
test byte [ebp + 0x1f], 1
je 0x403931
or dword [ebp - 4], 1
cmp dword [0x444984], 1
jne 0x403944
test byte [ebp + 0x1f], 2
je 0x403944
or dword [ebp - 4], 2
push dword [ebp - 4]
call fcn.00403cd7
mov eax, dword [ebp - 4]
pop ecx
cmp dword [eax*4 + 0x444c00], 0
jne 0x40396b
test byte [ebp - 4], 2
je 0x403967
mov dword [ebp - 0x10], 1
and dword [ebp - 4], 0xfffffffc
push dword [ebp - 4]
call fcn.00403cd7
mov eax, dword [ebp - 4]
pop ecx
cmp dword [eax*4 + 0x444c00], 0
jne 0x403985
and dword [ebp - 4], 0
test byte [ebp + 0x1f], 4
je 0x403991
mov eax, ebx
mov ebx, esi
mov esi, eax
mov eax, dword [0x444bfc]
test eax, eax
jne 0x4039ac
test byte [ebp + 0x1f], 1
je 0x4039a1
inc ebx
test eax, eax
jne 0x4039ac
test byte [ebp + 0x1f], 8
je 0x4039ac
inc esi
mov eax, dword [ebx*4 + 0x444e40]
mov ebx, dword [esi*4 + 0x444e40]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push dword [eax*4 + 0x444c00]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x14]
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ebx, dword [sym.imp.GDI32.dll_SetBkMode]
push 2
push esi
call ebx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
imul eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
add eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [0x452edc]
mov dword [ebp - 0x20], edx
add edx, eax
cmp dword [0x45506c], 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], edx
je 0x403ae9
cmp dword [ebp - 0xc], 0xf100
jne 0x403ae9
mov eax, dword [ebp + 0x18]
cmp eax, dword [0x444f3c]
jle 0x403a5a
push dword [0x444f38]
call fcn.00412224
mov eax, dword [ebp + 0x18]
pop ecx
mov dword [0x444f3c], eax
add eax, eax
push eax
call fcn.004121ab
pop ecx
mov dword [0x444f38], eax
push dword [0x444f3c]
push dword [0x444f38]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 4
push dword [0x454e24]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
mov dword [ebp + 0x18], eax
jle 0x403cd2
push 0
push eax
push dword [0x444f38]
xor ecx, ecx
cmp dword [ebp + 0x20], 0x3000000
lea eax, [ebp - 0x24]
push eax
mov eax, dword [0x452edc]
sete cl
imul eax, ecx
mov dword [ebp + 8], ecx
mov ecx, edi
sub ecx, eax
push 6
add ecx, dword [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
cmp dword [0x444bfc], 1
jne 0x403c59
test byte [ebp + 0x1f], 1
je 0x403c59
push 1
push esi
call ebx
push 0
push dword [ebp + 0x18]
push dword [0x444f38]
jmp 0x403c38
mov ecx, dword [ebp + 0x1c]
and ecx, 0xfe00
cmp ecx, 0xf000
jne 0x403b83
push dword [0x444f30]
xor ecx, ecx
cmp dword [ebp + 0x20], 0x3000000
push dword [ebp + 0x18]
sete cl
push dword [ebp + 0x14]
mov dword [ebp + 8], ecx
imul eax, dword [ebp + 8]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, edi
sub ecx, eax
push 6
add ecx, dword [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
cmp dword [0x444bfc], 1
jne 0x403c59
test byte [ebp + 0x1f], 1
je 0x403c59
push 1
push esi
call ebx
push dword [0x444f30]
lea eax, [ebp - 0x24]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
mov eax, dword [0x452edc]
imul eax, dword [ebp + 8]
sub edi, eax
mov eax, dword [ebp + 0xc]
add edi, dword [ebp + 0x10]
push 4
dec eax
push edi
push eax
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
jmp 0x403c59
mov ecx, dword [0x444f44]
cmp ecx, dword [ebp + 0x18]
jge 0x403bb5
push dword [0x444f40]
call fcn.00412224
mov eax, dword [ebp + 0x18]
pop ecx
mov dword [0x444f44], eax
add eax, eax
push eax
call fcn.004121ab
mov dword [0x444f40], eax
mov eax, dword [0x452edc]
pop ecx
xor ecx, ecx
cmp dword [ebp + 0x18], ecx
jle 0x403be1
mov eax, dword [ebp + 0x14]
mov edx, dword [0x444f40]
mov al, byte [ecx + eax]
xor al, byte [ebp + 0x1c]
and ax, 0xff
xor eax, dword [ebp + 0x1c]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, dword [ebp + 0x18]
jl 0x403bbc
mov eax, dword [0x452edc]
push dword [0x444f30]
xor ecx, ecx
cmp dword [ebp + 0x20], 0x3000000
push dword [ebp + 0x18]
sete cl
push dword [0x444f40]
mov dword [ebp + 8], ecx
imul eax, dword [ebp + 8]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, edi
sub ecx, eax
push 6
add ecx, dword [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
cmp dword [0x444bfc], 1
jne 0x403c59
push 1
push esi
call ebx
push dword [0x444f30]
push dword [ebp + 0x18]
push dword [0x444f40]
lea eax, [ebp - 0x24]
push eax
mov eax, dword [0x452edc]
imul eax, dword [ebp + 8]
sub edi, eax
mov eax, dword [ebp + 0xc]
add edi, dword [ebp + 0x10]
push 4
dec eax
push edi
push eax
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, 0x2000000
cmp dword [ebp + 0x20], eax
je 0x403cd2
cmp dword [ebp - 0x10], 0
jne 0x403c77
cmp dword [0x444984], 0
jne 0x403cd2
test dword [ebp + 0x1c], eax
je 0x403cd2
cmp dword [ebp + 0x20], 0x3000000
mov ebx, dword [0x444ee8]
jne 0x403c8e
add ebx, ebx
sub ebx, dword [0x452edc]
push dword [ebp - 0x14]
push 0
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call edi
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x10]
add ebx, eax
push 0
push ebx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
push ebx
push dword [ebp - 8]
push esi
call dword [sym.imp.GDI32.dll_LineTo]
push dword [ebp + 0x1c]
push esi
call edi
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebx
leave
ret