Function at 0x412810
Capabilities:
Create thread
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44d2d8
push eax
mov al, byte [0x46b9bc]
mov dword fs:[0], esp
sub esp, 0x3c
test al, 1
jne 0x412853
mov dl, al
mov ecx, 0x46b990
or dl, 1
mov byte [0x46b9bc], dl
call fcn.00406d20
push 0x413270
call fcn.00429423
add esp, 4
mov eax, dword [0x463b20]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov ebp, dword [esp + 0x60]
mov byte [esp + 0x54], 2
mov ecx, ebp
call fcn.00413c50
mov ecx, 0x46b990
call fcn.00407160
mov esi, dword [esp + 0x5c]
push 0
test esi, esi
mov ecx, 0x46b990
jne 0x4128ae
call fcn.00413c80
mov edi, 1
mov byte [eax], 0
mov dword [0x46b990], edi
jmp 0x4128f1
call fcn.00410500
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, 0x46b990
call fcn.00410500
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [0x46b998]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 1
mov ebx, dword [esp + 0x64]
mov ecx, ebx
and ecx, 0xff
mov dword [0x46b9a0], ecx
mov ecx, 0x46b990
call fcn.004074d0
mov ecx, ebp
call fcn.00413c70
mov edx, dword [0x46b998]
push ebx
push edx
call fcn.004122c0
mov eax, dword [0x46b998]
add esp, 8
lea ecx, [esp + 0x10]
push eax
call fcn.004347b3
lea ecx, [esp + 0x10]
call fcn.00432222
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00434763
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
je 0x41322d
cmp bl, 7
jne 0x4131bc
lea eax, [esp + 0x60]
push 4
push eax
lea ecx, [esp + 0x18]
call fcn.00431e0a
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 3
call fcn.00434763
lea ecx, [esp + 0x60]
mov byte [esp + 0x54], 2
call fcn.00434676
mov ecx, dword [esp + 0x14]
push 0x463134
push ecx
call fcn.00429196
add esp, 8
test eax, eax
je 0x412ecf
mov edx, dword [esp + 0x14]
push 0x46312c
push edx
call fcn.00429196
add esp, 8
test eax, eax
je 0x412ecf
mov eax, dword [esp + 0x14]
push 0x463124
push eax
call fcn.00429196
add esp, 8
test eax, eax
je 0x412ecf
mov ecx, dword [esp + 0x14]
push 0x46311c
push ecx
call fcn.00429196
add esp, 8
test eax, eax
jne 0x412c4f
mov edx, dword [esp + 0x10]
mov esi, dword [edx - 8]
cmp esi, 9
jl 0x412ab1
push 4
lea eax, [esp + 0x64]
push 4
push eax
lea ecx, [esp + 0x1c]
call fcn.00431cf8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 0xa
call fcn.00434763
lea ecx, [esp + 0x60]
mov byte [esp + 0x54], 2
call fcn.00434676
mov ecx, dword [esp + 0x14]
push 0x463124
push ecx
call fcn.00429196
add esp, 8
test eax, eax
jne 0x412ab1
add esi, 0xfffffff8
lea edx, [esp + 0x60]
push esi
push edx
lea ecx, [esp + 0x18]
call fcn.00431d8e
push eax
mov ecx, 0x46da20
mov byte [esp + 0x58], 0xb
call fcn.00434763
lea ecx, [esp + 0x60]
mov byte [esp + 0x54], 2
call fcn.00434676
mov eax, dword [0x46da2c]
test eax, eax
jne 0x412aa2
lea eax, [esp + 0x5c]
push eax
push 0
push 0
push 0x4127b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x46da2c], eax
mov dword [0x46da30], 0
jmp 0x41322d
lea ecx, [esp + 0x24]
call fcn.00439c28
mov ecx, dword [0x463b20]
mov dword [esp + 0x1c], ecx
push str.ScrollText.Txt
lea edx, [esp + 0x64]
push 0x467970
push edx
mov byte [esp + 0x60], 0xd
call fcn.004348bf
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 0xe
call fcn.00434763
lea ecx, [esp + 0x60]
mov byte [esp + 0x54], 0xd
call fcn.00434676
mov eax, dword [esp + 0x1c]
push 0
push 0x3002
push eax
lea ecx, [esp + 0x30]
call fcn.00439c9d
test eax, eax
je 0x412c2e
mov ecx, dword [0x463b20]
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x10]
mov bl, 0xf
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], bl
mov eax, dword [edx - 8]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00431d8e
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x58], 0x10
call fcn.00434763
lea ecx, [esp + 0x64]
mov byte [esp + 0x54], bl
call fcn.00434676
lea ecx, [esp + 0x5c]
call fcn.00432222
lea ecx, [esp + 0x5c]
call fcn.004321d6
mov ecx, dword [0x463b20]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x60]
mov byte [esp + 0x54], 0x11
call fcn.00434601
mov al, byte [esi]
mov byte [esp + 0x64], 0x55
test al, al
je 0x412bd9
mov edx, dword [esp + 0x64]
mov cl, byte [esp + 0x64]
and eax, 0xff
and edx, 0xff
xor eax, edx
inc cl
push eax
lea eax, [esp + 0x3c]
push str._02X
push eax
mov byte [esp + 0x70], cl
call fcn.00429cad
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x64]
call fcn.00434a06
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x412b95
push 0x462f1c
lea ecx, [esp + 0x64]
call fcn.00434a06
mov edx, dword [esp + 0x24]
push 2
push 0
lea ecx, [esp + 0x2c]
call dword [edx + 0x28]
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x24]
push eax
call fcn.00439e10
lea ecx, [esp + 0x24]
call fcn.00439fcd
lea ecx, [esp + 0x60]
mov dword [0x46da24], edi
mov byte [esp + 0x54], bl
call fcn.00434676
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 0xd
call fcn.00434676
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 0xc
call fcn.00434676
lea ecx, [esp + 0x24]
mov byte [esp + 0x54], 2
call fcn.00439c5a
jmp 0x41322d
mov ecx, dword [esp + 0x14]
push 0x463104
push ecx
call fcn.00429196
add esp, 8
test eax, eax
jne 0x412ebd
mov edx, dword [esp + 0x10]
mov esi, dword [edx - 8]
cmp esi, 9
jl 0x412d1f
push 4
lea eax, [esp + 0x64]
push 4
push eax
lea ecx, [esp + 0x1c]
call fcn.00431cf8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 0x12
call fcn.00434763
lea ecx, [esp + 0x60]
mov byte [esp + 0x54], 2
call fcn.00434676
mov ecx, dword [esp + 0x14]
push 0x463124
push ecx
call fcn.00429196
add esp, 8
test eax, eax
jne 0x412d1f
add esi, 0xfffffff8
lea edx, [esp + 0x60]
push esi
push edx
lea ecx, [esp + 0x18]
call fcn.00431d8e
push eax
mov ecx, 0x46da20
mov byte [esp + 0x58], 0x13
call fcn.00434763
lea ecx, [esp + 0x60]
mov byte [esp + 0x54], 2
call fcn.00434676
mov eax, dword [0x46da2c]
test eax, eax
jne 0x412d14
lea eax, [esp + 0x5c]
push eax
push 0
push 0
push 0x4127b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x46da2c], eax
mov dword [0x46da30], edi
jmp 0x41322d
lea ecx, [esp + 0x24]
call fcn.00439c28
mov ecx, dword [0x463b20]
mov dword [esp + 0x1c], ecx
push str.Advert.Txt
lea edx, [esp + 0x64]
push 0x467970
push edx
mov byte [esp + 0x60], 0x15
call fcn.004348bf
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 0x16
call fcn.00434763
lea ecx, [esp + 0x60]
mov byte [esp + 0x54], 0x15
call fcn.00434676
mov eax, dword [esp + 0x1c]
push 0
push 0x3002
push eax
lea ecx, [esp + 0x30]
call fcn.00439c9d
test eax, eax
je 0x412e9c
mov ecx, dword [0x463b20]
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x10]
mov bl, 0x17
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], bl
mov eax, dword [edx - 8]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00431d8e
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x58], 0x18
call fcn.00434763
lea ecx, [esp + 0x64]
mov byte [esp + 0x54], bl
call fcn.00434676
lea ecx, [esp + 0x5c]
call fcn.00432222
lea ecx, [esp + 0x5c]
call fcn.004321d6
mov ecx, dword [0x463b20]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x60]
mov byte [esp + 0x54], 0x19
call fcn.00434601
mov al, byte [esi]
mov byte [esp + 0x64], 0x55
test al, al
je 0x412e47
mov edx, dword [esp + 0x64]
mov cl, byte [esp + 0x64]
and eax, 0xff
and edx, 0xff
xor eax, edx
inc cl
push eax
lea eax, [esp + 0x3c]
push str._02X
push eax
mov byte [esp + 0x70], cl
call fcn.00429cad
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x64]
call fcn.00434a06
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x412e03
push 0x462f1c
lea ecx, [esp + 0x64]
call fcn.00434a06
mov edx, dword [esp + 0x24]
push 2
push 0
lea ecx, [esp + 0x2c]
call dword [edx + 0x28]
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x24]
push eax
call fcn.00439e10
lea ecx, [esp + 0x24]
call fcn.00439fcd
lea ecx, [esp + 0x60]
mov dword [0x46da28], edi
mov byte [esp + 0x54], bl
call fcn.00434676
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 0x15
call fcn.00434676
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 0x14
call fcn.00434676
lea ecx, [esp + 0x24]
mov byte [esp + 0x54], 2
call fcn.00439c5a
jmp 0x41322d
mov ecx, dword [esp + 0x10]
cmp byte [ecx], 0
jle 0x41321f
jmp 0x41322d
mov eax, dword [0x463b20]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov edx, dword [esp + 0x10]
mov bl, 6
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], bl
mov eax, dword [edx - 8]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00431d8e
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x58], 7
call fcn.00434763
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], bl
call fcn.00434676
lea ecx, [esp + 0x5c]
call fcn.00432222
push 0x3d
lea ecx, [esp + 0x60]
call fcn.00434af1
mov esi, eax
or ebp, 0xffffffff
cmp esi, ebp
jne 0x412f42
mov byte [esp + 0x54], 5
jmp 0x413172
lea ecx, [esp + 0x1c]
push esi
push ecx
lea ecx, [esp + 0x64]
call fcn.00431e0a
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x58], 8
call fcn.00434763
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], bl
call fcn.00434676
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
mov eax, dword [edx - 8]
sub eax, esi
dec eax
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00431d8e
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x58], 9
call fcn.00434763
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], bl
call fcn.00434676
lea ecx, [esp + 0x60]
call fcn.004321d6
mov ecx, dword [esp + 0x60]
mov ebx, 5
mov esi, dword [ecx - 8]
cmp esi, ebx
jg 0x41316e
push esi
lea ecx, [esp + 0x64]
call fcn.00434a5a
xor edx, edx
test esi, esi
jle 0x412fe9
mov cl, byte [eax]
cmp cl, 0x39
jg 0x41316e
cmp cl, 0x30
jl 0x41316e
inc eax
inc edx
cmp edx, esi
jl 0x412fcf
push ebp
lea ecx, [esp + 0x64]
call fcn.00434aa9
mov edx, dword [esp + 0x60]
push edx
call fcn.00429ca2
mov edi, eax
add esp, 4
test edi, edi
je 0x41316e
mov eax, dword [esp + 0x14]
push 0x463134
push eax
call fcn.00429196
add esp, 8
test eax, eax
je 0x4130f8
mov ecx, dword [esp + 0x14]
push 0x46312c
push ecx
call fcn.00429196
add esp, 8
test eax, eax
je 0x4130f8
mov esi, edi
xor edx, edx
shr esi, 4
mov eax, esi
div dword [0x46eac8]
mov eax, dword [0x46eac4]
test eax, eax
je 0x413164
mov eax, dword [eax + edx*4]
test eax, eax
je 0x413164
cmp dword [eax + 8], edi
je 0x413075
mov eax, dword [eax]
test eax, eax
jne 0x413065
jmp 0x413164
test eax, eax
je 0x413164
add eax, 0xc
lea ecx, [esp + 0x10]
push eax
call fcn.00434763
mov ecx, dword [0x46eac4]
test ecx, ecx
je 0x413164
mov eax, esi
xor edx, edx
div dword [0x46eac8]
mov esi, dword [ecx + edx*4]
test esi, esi
lea eax, [ecx + edx*4]
je 0x413164
cmp dword [esi + 8], edi
je 0x4130c2
mov eax, esi
mov esi, dword [esi]
test esi, esi
jne 0x4130b0
jmp 0x413164
mov edx, dword [esi]
push 1
mov dword [eax], edx
lea eax, [esi + 0xc]
push eax
call fcn.004322a2
mov ecx, dword [0x46ead0]
mov dword [esi], ecx
mov eax, dword [0x46eacc]
dec eax
mov dword [0x46ead0], esi
mov dword [0x46eacc], eax
jne 0x413164
mov ecx, 0x46eac0
call fcn.00413d70
jmp 0x413164
lea edx, [esp + 0x1c]
mov ecx, 0x46eac0
push edx
push edi
call fcn.00413dd0
test eax, eax
jne 0x413157
mov eax, dword [0x46eac4]
test eax, eax
jne 0x413127
mov eax, dword [0x46eac8]
push 1
push eax
mov ecx, 0x46eac0
call fcn.00413e40
mov ecx, 0x46eac0
call fcn.00413eb0
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], edi
mov dword [eax + 4], ecx
mov edx, dword [0x46eac4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edx + ecx*4]
mov dword [eax], edx
mov ecx, dword [0x46eac4]
mov edx, dword [esp + 0x1c]
mov dword [ecx + edx*4], eax
lea ecx, [esp + 0x64]
push ecx
lea ecx, [eax + 0xc]
call fcn.00434763
mov dword [0x467860], 1
mov byte [esp + 0x54], bl
lea ecx, [esp + 0x64]
call fcn.00434676
lea ecx, [esp + 0x60]
mov byte [esp + 0x54], 4
call fcn.00434676
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 2
call fcn.00434676
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 1
call fcn.00434676
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 0
call fcn.00434676
mov dword [esp + 0x54], ebp
jmp 0x413251
mov edx, dword [0x46b998]
lea ecx, [esp + 0x10]
push edx
call fcn.004347b3
lea eax, [esp + 0x20]
push 4
push eax
lea ecx, [esp + 0x18]
call fcn.00431e0a
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 0x1a
call fcn.00434763
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 2
call fcn.00434676
mov ecx, dword [esp + 0x10]
push 0x4630f0
push ecx
call fcn.00429196
add esp, 8
test eax, eax
jne 0x413218
mov byte [0x46789c], 0x11
jmp 0x41322d
mov byte [0x46789c], 0x12
push 0x46b990
push ebp
call fcn.00411ec0
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 1
call fcn.00434676
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 0
call fcn.00434676
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00434676
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret