Function at 0x401a60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
lea esi, [eax + 0x64]
push esi
mov dword [ebp - 0x54], esi
call fcn.0083dc08
mov ebx, eax
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x177]
mov byte [ebp - 0x178], 0
mov byte [ebp - 0x40], al
rep stosd dword es:[edi], eax
fld qword [0x88f578]
fld qword [0x88f578]
mov ecx, esi
mov edi, ebx
mov edx, ecx
mov byte [ebp - 0x3f], al
shr ecx, 2
mov byte [ebp - 0x3e], al
mov byte [ebp - 0x3d], al
mov byte [ebp - 0x3c], al
mov byte [ebp - 0x3b], al
mov byte [ebp - 0x3a], al
mov byte [ebp - 0x39], al
mov byte [ebp - 0x38], al
mov byte [ebp - 0x37], al
mov byte [ebp - 0x36], al
mov byte [ebp - 0x35], al
mov byte [ebp - 0x34], al
mov byte [ebp - 0x33], al
mov byte [ebp - 0x32], al
mov byte [ebp - 0x31], al
mov dword [ebp - 0x28], eax
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [ebp + 8]
and ecx, 3
mov esi, edx
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0xc]
mov edi, ebx
mov eax, ecx
mov dword [ebp - 0x50], ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, eax
mov edi, edx
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esi + 0xf]
shr edx, 4
and ecx, 3
shl edx, 4
rep stosb byte es:[edi], al
mov dword [ebp - 0x4c], edx
fld st(0)
fmul st(1)
fld st(0)
fmul qword [0x88f570]
fsub st(1)
fxch st(1)
fmul qword [0x88f568]
fadd qword [0x88f560]
fdivp st(1)
faddp st(2)
fld st(1)
fcomp qword [0x88f558]
fnstsw ax
test ah, 0x41
jne 0x401b5d
fld st(0)
fmul qword [0x88f550]
fsubp st(2)
fadd qword [0x88f548]
fcom qword [0x88f540]
fnstsw ax
test ah, 1
jne 0x401b24
fxch st(1)
fst qword [ebp - 0x48]
fxch st(1)
fstp st(0)
fcomp qword [0x88f578]
fnstsw ax
test ah, 1
je 0x401be5
dec ebp
mov dword [0xa74ea359], eax
pop esp
test al, 0x50
mov dword [0xa8529f51], eax
pop edx
mov al, byte [0xa54ea453]
push ecx
mov dword [0x9d59a95a], eax
push eax
cmpsd dword [esi], dword es:[edi]
pop eax
test al, 0x52
wait
dec edi
popfd
pop ebx
mov dword [0xa24da25c], eax
push edi
test al, 0x50
test al, 0x5c
test al, 0x51
mov al, byte [0x9e57a15a]
dec ebp
mov al, byte [0x9c4ea551]
push esi
pushfd
dec edi
popfd
push ecx
wait
push edx
stosb byte es:[edi], al
js 0x401bee
inc edi
cmp eax, 0x27375565
jnp 0x401c42
xor dh, byte [edx]
xor eax, 0x3b744677
popal
je 0x401c48
jae 0x401c5a
push eax
jmp 0x402631
mov dword [ebp - 0x30], 0x401b86
mov dword [ebp - 0x2c], 0x401bc8
aam 0xc8
sbb eax, dword [eax]
xor eax, eax
mov byte [ebp + eax - 0x154], al
inc eax
cmp eax, 0x100
jb 0x401bf5
fld qword [ebp - 0x48]
mov byte [ebp + 0xc], 0
mov eax, 0xff
mov esi, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp + 8], eax
mov ebx, 1
mov dword [ebp - 0x10], 0
cmp eax, ebx
jbe 0x401c30
lea ebx, [ebx + ebx + 1]
cmp ebx, eax
jb 0x401c28
cmp edi, 3
ja case.default.0x401c35
jmp dword [edi*4 + 0x40269c]
fld st(0)
and esi, 0xff
add byte [eax], al
call fcn.0083dce4
mov cl, byte [ebp + esi - 0x154]
jmp 0x401cb1
add byte [edx - 0x153ca74], cl
invalid
fld st(0)
and esi, 0xff
call fcn.0083dce4
mov cl, byte [ebp + esi - 0x154]
shr eax, 8
jmp 0x401cb1
fld st(0)
and esi, 0xff
call fcn.0083dce4
mov cl, byte [ebp + esi - 0x154]
shr eax, 0x10
jmp 0x401cb1
fld st(0)
and esi, 0xff
call fcn.0083dce4
mov cl, byte [ebp + esi - 0x154]
shr eax, 0x18
jmp 0x401cb1
mov eax, dword [ebp - 0x2c]
and esi, 0xff
mov cl, byte [eax + edi - 4]
mov al, byte [ebp + esi - 0x154]
add cl, al
inc edi
cmp edi, 0x1c
mov byte [ebp + 0xc], cl
jb 0x401cc4
xor edi, edi
add cl, 0x1c
mov byte [ebp + 0xc], cl
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov edx, esi
and edx, 0xff
and edx, ebx
inc eax
cmp eax, 0xb
mov dword [ebp - 0x10], eax
jbe 0x401ce4
mov eax, edx
xor edx, edx
div dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, edx
jb 0x401c30
je 0x401d1f
mov ecx, dword [ebp + 8]
lea eax, [ebp + edx - 0x154]
mov bl, byte [ebp + ecx - 0x154]
lea edx, [ebp + ecx - 0x154]
mov cl, byte [eax]
xor bl, cl
mov byte [edx], bl
mov cl, bl
mov bl, byte [eax]
xor bl, cl
mov byte [eax], bl
mov cl, byte [edx]
mov al, bl
xor cl, al
mov byte [edx], cl
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp + 8], eax
jne 0x401c18
mov edi, dword [ebp - 0x30]
mov dl, byte [ebp - 0x14d]
and esi, 0xff
mov byte [ebp - 0x20], dl
mov dl, byte [edi + 1]
mov bl, byte [ebp - 0x151]
mov al, byte [ebp + esi - 0x154]
add dl, 0x65
mov byte [ebp - 0x1c], al
xor eax, eax
mov al, byte [edi]
mov cl, byte [ebp - 0x14f]
add al, 3
shl al, 4
or al, dl
mov byte [ebp + 0xf], al
mov eax, dword [ebp - 0x1c]
and eax, 0xff
fstp st(0)
mov dl, byte [ebp + eax - 0x154]
lea esi, [ebp + eax - 0x154]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x153]
mov eax, edx
and eax, 0xff
mov al, byte [ebp + eax - 0x154]
add al, bl
inc dl
mov byte [ebp - 0x14], al
mov byte [ebp + 8], dl
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
lea edx, [ebp + edx - 0x154]
mov byte [esi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x18], edx
lea ebx, [ebp + ebx - 0x154]
mov dword [ebp - 4], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 4]
and edx, 0xff
lea edx, [ebp + edx - 0x154]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x154]
add cl, bl
mov ebx, dword [ebp - 4]
mov byte [ebp - 0x24], cl
mov edx, dword [ebp - 0x24]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x154]
add edx, ebx
mov bl, byte [esi]
add edx, ebx
mov esi, dword [ebp - 0x10]
and edx, 0xff
xor ebx, ebx
mov bl, byte [ebp + edx - 0x154]
mov edx, dword [ebp - 0x18]
mov dl, byte [edx]
mov bl, byte [ebp + ebx - 0x154]
add edx, esi
and edx, 0xff
xor bl, byte [ebp + edx - 0x154]
mov dl, byte [ebp + 0xf]
mov byte [ebp - 0x1c], dl
xor bl, dl
xor edx, edx
mov byte [ebp - 0x20], bl
mov dl, byte [edi + 2]
mov bl, byte [edi + 3]
add dl, 3
add bl, 0x65
shl dl, 4
or bl, dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov byte [ebp + 0xf], bl
add edi, 4
lea esi, [ebp + edx - 0x154]
mov dl, byte [ebp + edx - 0x154]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0xc]
mov bl, byte [edx]
mov dl, byte [ebp + 8]
add al, bl
inc dl
mov byte [ebp - 0x14], al
mov byte [ebp + 8], dl
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
lea edx, [ebp + edx - 0x154]
mov byte [esi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x18], edx
lea ebx, [ebp + ebx - 0x154]
mov dword [ebp - 4], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 4]
and edx, 0xff
lea edx, [ebp + edx - 0x154]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x154]
add cl, bl
mov ebx, dword [ebp - 4]
mov byte [ebp - 0x24], cl
mov edx, dword [ebp - 0x24]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x154]
add edx, ebx
mov bl, byte [esi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
mov edx, dword [ebp - 0x18]
mov esi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x10]
add ebx, edx
mov dl, byte [ebp + esi - 0x154]
and ebx, 0xff
mov esi, 2
xor dl, byte [ebp + ebx - 0x154]
mov bl, byte [ebp + 0xf]
mov byte [ebp - 0x1c], bl
xor dl, bl
xor ebx, ebx
mov bl, byte [edi]
mov byte [ebp - 0x20], dl
mov byte [ebp - 0x19c], dl
mov dl, byte [edi + 1]
add ebx, 0xffffffb3
add dl, 0x65
shl bl, 4
or dl, bl
mov byte [ebp + 0xf], dl
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], 0xd
and edx, 0xff
lea edi, [ebp + edx - 0x154]
mov dl, byte [ebp + edx - 0x154]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0xc]
mov bl, byte [edx]
mov dl, byte [ebp + 8]
add al, bl
inc dl
mov byte [ebp - 0x14], al
mov byte [ebp + 8], dl
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
lea edx, [ebp + edx - 0x154]
mov byte [edi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x18], edx
lea ebx, [ebp + ebx - 0x154]
mov dword [ebp - 4], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 4]
and edx, 0xff
lea edx, [ebp + edx - 0x154]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x154]
add cl, bl
mov ebx, dword [ebp - 4]
mov byte [ebp - 0x24], cl
mov edx, dword [ebp - 0x24]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x154]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
mov edx, dword [ebp - 0x18]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x10]
add ebx, edx
mov dl, byte [ebp + edi - 0x154]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x154]
mov bl, byte [ebp + 0xf]
mov byte [ebp - 0x1c], bl
xor dl, bl
mov byte [ebp - 0x20], dl
mov byte [ebp - 0x19b], dl
mov edx, dword [ebp - 0x30]
lea edi, [edx + 4]
jmp 0x40208e
mov edi, dword [ebp - 0x44]
add edi, 2
xor edx, edx
mov dword [ebp - 0x44], edi
inc esi
mov dl, byte [edi]
mov dword [ebp + 0xc], edx
xor edx, edx
mov dl, byte [edi + 1]
mov edi, dword [ebp + 0xc]
add dl, 0x65
lea ebx, [edi - 0x4d]
shl bl, 4
or dl, bl
mov byte [ebp + 0xf], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea edi, [ebp + edx - 0x154]
mov dl, byte [ebp + edx - 0x154]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0xc]
mov bl, byte [edx]
mov dl, byte [ebp + 8]
add al, bl
inc dl
mov byte [ebp - 0x14], al
mov byte [ebp + 8], dl
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
lea edx, [ebp + edx - 0x154]
mov byte [edi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x18], edx
lea ebx, [ebp + ebx - 0x154]
mov dword [ebp - 4], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 4]
and edx, 0xff
lea edx, [ebp + edx - 0x154]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x154]
add cl, bl
mov ebx, dword [ebp - 4]
mov byte [ebp - 0x24], cl
mov edx, dword [ebp - 0x24]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x154]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
mov edx, dword [ebp - 0x18]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x10]
add ebx, edx
mov dl, byte [ebp + edi - 0x154]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x154]
mov bl, byte [ebp + 0xf]
mov byte [ebp - 0x1c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x20], dl
jbe 0x4021ab
mov byte [ebp + esi - 0x19d], dl
mov edx, dword [ebp - 0x2c]
dec edx
mov dword [ebp - 0x2c], edx
jne 0x40208b
mov edx, dword [ebp - 0x30]
inc esi
mov bl, byte [edx + esi*2]
lea edi, [edx + esi*2]
add bl, 3
mov dl, byte [edi + 1]
add dl, 0x65
shl bl, 4
or dl, bl
mov byte [ebp + 0xf], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea edi, [ebp + edx - 0x154]
mov dl, byte [ebp + edx - 0x154]
mov byte [ebp - 8], dl
mov edx, dword [ebp + 8]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
mov dl, byte [ebp + 8]
add al, bl
inc dl
mov byte [ebp - 0x14], al
mov byte [ebp + 8], dl
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
lea edx, [ebp + edx - 0x154]
mov byte [edi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x18], edx
lea ebx, [ebp + ebx - 0x154]
mov dword [ebp - 4], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 4]
and edx, 0xff
lea edx, [ebp + edx - 0x154]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x154]
add cl, bl
mov ebx, dword [ebp - 4]
mov byte [ebp - 0x24], cl
mov edx, dword [ebp - 0x24]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x154]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
mov edx, dword [ebp - 0x18]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x10]
add ebx, edx
mov dl, byte [ebp + edi - 0x154]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x154]
mov bl, byte [ebp + 0xf]
mov byte [ebp - 0x1c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x20], dl
jbe 0x4022d7
mov byte [ebp + esi - 0x19d], dl
lea ebx, [esi + 1]
cmp ebx, 0x20
jge 0x402419
mov edx, dword [ebp - 0x30]
lea edi, [edx + esi*2]
mov edx, 0x20
sub edx, ebx
mov dword [ebp - 0x2c], edx
jmp 0x4022f8
mov edi, dword [ebp - 0x44]
mov bl, byte [edi + 2]
mov dl, byte [edi + 3]
add edi, 2
add bl, 3
add dl, 0x65
mov dword [ebp - 0x44], edi
shl bl, 4
or dl, bl
inc esi
mov byte [ebp + 0xf], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea edi, [ebp + edx - 0x154]
mov dl, byte [ebp + edx - 0x154]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0xc]
mov bl, byte [edx]
mov dl, byte [ebp + 8]
add al, bl
inc dl
mov byte [ebp - 0x14], al
mov byte [ebp + 8], dl
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
lea edx, [ebp + edx - 0x154]
mov byte [edi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x18], edx
lea ebx, [ebp + ebx - 0x154]
mov dword [ebp - 4], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 4]
and edx, 0xff
lea edx, [ebp + edx - 0x154]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x154]
add cl, bl
mov ebx, dword [ebp - 4]
mov byte [ebp - 0x24], cl
mov edx, dword [ebp - 0x24]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x154]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
mov edx, dword [ebp - 0x18]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x10]
add ebx, edx
mov dl, byte [ebp + edi - 0x154]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x154]
mov bl, byte [ebp + 0xf]
mov byte [ebp - 0x1c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x20], dl
jbe 0x40240c
mov byte [ebp + esi - 0x19d], dl
mov edx, dword [ebp - 0x2c]
dec edx
mov dword [ebp - 0x2c], edx
jne 0x4022f5
mov edi, dword [ebp - 0x30]
inc esi
mov bl, byte [edi + esi*2]
mov dl, byte [edi + esi*2 + 1]
add bl, 3
add dl, 0x65
shl bl, 4
or dl, bl
mov byte [ebp + 0xf], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea edi, [ebp + edx - 0x154]
mov dl, byte [ebp + edx - 0x154]
mov byte [ebp - 8], dl
mov edx, dword [ebp + 8]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
mov dl, byte [ebp + 8]
add al, bl
inc dl
mov byte [ebp - 0x14], al
mov byte [ebp + 8], dl
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
lea edx, [ebp + edx - 0x154]
mov byte [edi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x18], edx
lea ebx, [ebp + ebx - 0x154]
mov dword [ebp - 4], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 4]
and edx, 0xff
lea edx, [ebp + edx - 0x154]
mov dword [ebp - 0xc], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0xc]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x154]
add cl, bl
mov ebx, dword [ebp - 4]
mov byte [ebp - 0x24], cl
mov edx, dword [ebp - 0x24]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x154]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x154]
mov edx, dword [ebp - 0x18]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x10]
add ebx, edx
mov dl, byte [ebp + edi - 0x154]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x154]
mov bl, byte [ebp + 0xf]
mov byte [ebp - 0x1c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x20], dl
jbe 0x402536
mov byte [ebp + esi - 0x19d], dl
mov edi, dword [ebp - 0x30]
inc esi
mov dl, byte [edi + esi*2 + 1]
mov bl, byte [edi + esi*2]
mov edi, dword [ebp - 0x1c]
add bl, 3
and edi, 0xff
add dl, 0x65
shl bl, 4
lea edi, [ebp + edi - 0x154]
or dl, bl
mov bl, byte [edi]
mov byte [ebp - 8], bl
mov ebx, dword [ebp - 0xc]
add al, byte [ebx]
mov byte [ebp - 0x14], al
mov al, byte [ebp + 8]
inc al
mov byte [ebp + 8], al
mov eax, dword [ebp - 0x14]
and eax, 0xff
mov bl, byte [ebp + eax - 0x154]
lea eax, [ebp + eax - 0x154]
mov byte [edi], bl
mov ebx, dword [ebp - 0x20]
and ebx, 0xff
mov dword [ebp - 0x18], eax
lea ebx, [ebp + ebx - 0x154]
mov dword [ebp - 4], ebx
mov bl, byte [ebx]
mov byte [eax], bl
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 4]
and eax, 0xff
test esi, esi
lea eax, [ebp + eax - 0x154]
mov dword [ebp - 0xc], eax
mov al, byte [eax]
mov byte [ebx], al
mov ebx, dword [ebp - 0xc]
mov al, byte [ebp - 8]
mov byte [ebx], al
jbe 0x402624
mov eax, dword [ebp - 8]
and eax, 0xff
mov bl, byte [ebp + eax - 0x154]
add bl, cl
and ebx, 0xff
mov cl, byte [ebp + ebx - 0x154]
mov ebx, dword [ebp - 4]
mov bl, byte [ebx]
add ecx, ebx
mov bl, byte [edi]
add ecx, ebx
xor ebx, ebx
and ecx, 0xff
mov bl, byte [ebp + ecx - 0x154]
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx]
add ecx, eax
mov al, byte [ebp + ebx - 0x154]
and ecx, 0xff
xor al, byte [ebp + ecx - 0x154]
xor al, dl
mov byte [ebp + esi - 0x19d], al
mov ebx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov byte [ebp - 0x17c], 0
mov ecx, 8
lea esi, [ebp - 0x19c]
lea edi, [ebp - 0x178]
lea eax, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x10]
push ecx
push eax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x178]
push ecx
push eax
push edx
push ebx
movsb byte es:[edi], byte [esi]
call section..text
mov ecx, dword [ebp - 0x54]
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x28]
push eax
push esi
call fcn.00401870
push ebx
mov edi, eax
call fcn.0083dbc0
push esi
call fcn.0083dbc0
add esp, 0x28
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret