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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov ecx, 0x2796
mov edi, 0x7d
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0x7bec
mov dword [ebp - 0x14], 0x4c84
mov dword [ebp - 0x18], 0x3f92
mov dword [ebp - 0x1c], 0x3f9b
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x20], 0x5054
mov dword [ebp - 0x24], 0x3da4
cmp dword [ebp + 8], ebx
je 0x40237a
cmp dword [ebp + 0xc], ebx
je 0x40237a
mov eax, dword [ebp + 0x10]
lea edx, [eax + 0x344]
mov eax, dword [eax + 0x3c]
xor eax, dword [edx]
cmp dword [ebp + 0xc], eax
jl 0x40237a
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401de4
call fcn.00403450
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x28], 0xe
lea edx, [ecx + 0x344]
mov dword [ecx + 0x70], eax
mov eax, dword [edx]
xor dword [ecx + 0x2dc], eax
mov eax, 0x4e57
mov edi, edi
cmp edi, 0xe
cmovg edi, dword [ebp - 0x28]
dec eax
jne 0x401e20
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x284], edx
xor edx, edx
div dword [ecx + 0x2dc]
mov edi, dword [ebp + 0x10]
mov ebx, 0x56f3
mov ecx, eax
mov dword [edi + 0x280], ecx
jmp 0x401e50
mov eax, 0x4325c53f
imul ebx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401e50
imul ecx, dword [edi + 0x2dc]
mov dword [edi + 0x14c], ecx
xor edi, edi
test ecx, ecx
je 0x401ecb
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
lea esp, [esp]
mov eax, dword [ebx + 0x284]
inc edi
mov al, byte [eax]
xor byte [edi + esi - 1], al
movzx ecx, byte [edi + esi - 1]
mov eax, dword [ebx + 0x284]
mov dl, byte [eax + 1]
xor dl, cl
mov byte [edi + esi - 1], dl
mov eax, dword [ebx + 0x284]
mov cl, byte [eax + 2]
xor cl, dl
mov byte [edi + esi - 1], cl
mov eax, dword [ebx + 0x284]
mov al, byte [eax + 3]
xor al, cl
mov byte [edi + esi - 1], al
cmp edi, dword [ebx + 0x14c]
jb 0x401e80
xor ebx, ebx
xor esi, esi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 0x2dc]
dec eax
je 0x401fc7
xor ebx, ebx
lea ecx, [ecx]
mov eax, dword [edi + 0x2dc]
dec eax
push eax
push 1
push edi
call fcn.004032c0
mov cl, al
add esp, 0xc
mov byte [ebp - 1], cl
xor eax, eax
lea ebx, [ebx]
cmp cl, byte [eax + edi + 0x17c]
je 0x401f10
inc eax
cmp eax, ebx
jbe 0x401f00
jmp 0x401f14
mov byte [ebp - 1], 0
mov edx, dword [ebp - 8]
cmp edx, 0x44b9
jge 0x401f3f
mov ecx, 0x44b8
sub ecx, edx
mov eax, 0xcccccccd
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
mov edx, dword [ebp - 8]
lea edx, [edx + eax*2]
add edx, 0xa
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x401f5c
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401f46
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x401f79
mov eax, 0x6bca1af3
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401f63
mov dword [ebp - 0x14], ecx
mov al, byte [ebp - 1]
test al, al
je 0x401f88
mov byte [ebx + edi + 0x17c], al
inc ebx
cmp esi, 0x5cd2
jge 0x401fb6
inc esi
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
add ecx, ecx
mov eax, esi
sub eax, ecx
jne 0x401fae
inc esi
cmp esi, 0x5cd2
jl 0x401f90
mov eax, dword [edi + 0x2dc]
dec eax
cmp ebx, eax
jb 0x401ee0
xor ebx, ebx
xor esi, esi
lea esp, [esp]
inc esi
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
add ecx, ecx
mov eax, esi
sub eax, ecx
jne 0x401fee
inc esi
cmp esi, 0x2901
jl 0x401fd0
xorps xmm0, xmm0
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 0x78], 0
movq qword [ebp - 0x77], xmm0
movq qword [ebp - 0x6f], xmm0
movq qword [ebp - 0x67], xmm0
movq qword [ebp - 0x5f], xmm0
mov dword [ebp - 0x57], 0
call fcn.00402970
xorps xmm0, xmm0
lea ecx, [edi + 0x40]
movq qword [ebp - 0x34], xmm0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], 0x9ab21551
mov dword [ebp - 0x44], 0xc7c4cbde
movq xmm0, qword [ebp - 0x48]
movq qword [ecx], xmm0
mov dword [ebp - 0x40], 0x5226fac1
mov dword [ebp - 0x3c], 0xe08bec18
movq xmm0, qword [ebp - 0x40]
movq qword [ecx + 8], xmm0
mov dword [ebp - 0x38], 0x2fd6e8e2
movq xmm0, qword [ebp - 0x38]
xor dl, dl
movq qword [ecx + 0x10], xmm0
mov dword [ecx + 0x18], eax
add esp, 4
mov dword [ebp - 0x10], ecx
mov byte [ecx + 0x1c], dl
xor eax, eax
nop
xor byte [ebp + eax - 0x78], 4
inc eax
cmp eax, 0x23
jb 0x402080
mov ecx, 0x1baf
mov eax, 0xb60b60b7
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402090
mov ecx, 0x791
lea ebx, [ebx]
mov eax, 0xd62b80d7
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4020b0
mov edi, 0x34de
lea ebx, [ebx]
mov eax, 0x27932b49
imul edi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x4020d0
mov edi, dword [ebp + 0x10]
mov ebx, 0x2ddd
jmp 0x4020f0
mov eax, 0x15390949
imul ebx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x4020f0
xor esi, esi
mov dword [ebp - 0x14], esi
mov ebx, esi
cmp dword [edi + 0x2dc], esi
jbe 0x4022d0
add edi, 0x17c
mov dword [ebp - 0x28], edi
jmp 0x402124
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x402146
jmp 0x402130
mov eax, 0x4d4873ed
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402130
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x402168
lea ecx, [ecx]
mov eax, 0xb40b40b5
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402150
mov dword [ebp - 0x1c], ecx
movzx edi, byte [esi + edi]
mov esi, dword [ebp + 0x10]
xorps xmm0, xmm0
imul edi, dword [esi + 0x280]
add edi, dword [ebp + 8]
push 0x24
lea eax, [ebp - 0x50]
push edi
push eax
mov dword [esi + 0x340], edi
mov byte [ebp - 0x50], 0
movq qword [ebp - 0x4f], xmm0
movq qword [ebp - 0x47], xmm0
movq qword [ebp - 0x3f], xmm0
movq qword [ebp - 0x37], xmm0
mov dword [ebp - 0x2f], 0
call fcn.00403140
movq xmm0, qword [ebp - 0x78]
movq qword [edi], xmm0
movq xmm0, qword [ebp - 0x70]
movq qword [edi + 8], xmm0
movq xmm0, qword [ebp - 0x68]
movq qword [edi + 0x10], xmm0
movq xmm0, qword [ebp - 0x60]
movq qword [edi + 0x18], xmm0
mov ax, word [ebp - 0x58]
mov word [edi + 0x20], ax
mov al, byte [ebp - 0x56]
add esp, 0xc
mov byte [edi + 0x22], al
cmp ebx, 0x4ac4
jge 0x40220d
lea ecx, [ecx]
inc ebx
mov eax, ebx
and eax, 0x80000007
jns 0x4021ff
dec eax
or eax, 0xfffffff8
inc eax
jne 0x402202
inc ebx
cmp ebx, 0x4ac4
jl 0x4021f0
mov dword [ebp - 0xc], ebx
mov eax, dword [esi + 0x340]
call eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x402235
lea esp, [esp]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402220
mov dword [ebp - 0x20], ecx
push 0x24
lea eax, [ebp - 0x50]
push eax
push edi
call fcn.00403140
mov eax, dword [ebp + 0x10]
xor esi, esi
add esp, 0xc
cmp dword [eax + 0x280], esi
jbe 0x40229d
mov ebx, eax
mov eax, dword [ebx + 0x284]
inc esi
mov al, byte [eax + 3]
xor byte [esi + edi - 1], al
movzx ecx, byte [esi + edi - 1]
mov eax, dword [ebx + 0x284]
mov dl, byte [eax + 2]
xor dl, cl
mov byte [esi + edi - 1], dl
mov eax, dword [ebx + 0x284]
mov cl, byte [eax + 1]
xor cl, dl
mov byte [esi + edi - 1], cl
mov eax, dword [ebx + 0x284]
mov al, byte [eax]
xor al, cl
mov byte [esi + edi - 1], al
cmp esi, dword [ebx + 0x280]
jb 0x402253
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4022ba
mov eax, 0x1b4e81b5
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4022a4
mov dword [ebp - 0x24], ecx
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
inc esi
mov dword [ebp - 0x14], esi
cmp esi, dword [edi + 0x2dc]
jb 0x402121
mov eax, 0x608c
mov edx, 0x61
mov ecx, 0xeb
nop
cmp ecx, edx
cmovl ecx, edx
dec eax
jne 0x4022e0
call fcn.00403450
mov ecx, eax
mov dword [edi + 0x154], ecx
mov eax, 0x4d1f
mov esi, 0x11
mov edx, 0x30
cmp edx, esi
cmovg edx, esi
dec eax
jne 0x402304
lea eax, [ecx - 2]
push eax
push dword [edi + 0x70]
call fcn.00401190
add esp, 8
xor ecx, ecx
lea ecx, [ecx]
inc ecx
mov eax, ecx
and eax, 0x80000003
jns 0x40232f
dec eax
or eax, 0xfffffffc
inc eax
jne 0x402332
inc ecx
cmp ecx, 0x5d18
jl 0x402320
mov edi, dword [ebp - 0x10]
push 0x1bc95871
push edi
call fcn.00401c60
mov eax, dword [ebp + 0xc]
cdq
and edx, 0xff
add esp, 8
lea esi, [edx + eax]
sar esi, 8
test esi, esi
je 0x40237a
mov ebx, dword [ebp + 8]
push edi
push 0x100
push ebx
call fcn.004031a0
add esp, 0xc
add ebx, 0x100
dec esi
jne 0x402362
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret