Function at 0x837660
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
fld qword [0x89a578]
fld qword [0x89a578]
mov dword [eax], eax
fld st(0)
fmul st(1)
fld st(0)
fmul qword [0x8bb830]
fsub st(1)
fxch st(1)
fmul qword [0x8a9ce8]
fadd qword [0x8a9a40]
fdivp st(1)
faddp st(2)
fld st(1)
fcomp qword [0x8bb828]
fnstsw ax
test ah, 0x41
jne 0x8376ae
fld st(0)
fmul qword [0x8bb820]
fsubp st(2)
fadd qword [0x8a1480]
add eax, 0x8a1480
fcom qword [0x8bb818]
fnstsw ax
mov eax, 0xe0df008b
test ah, 1
les eax, [ecx]
jne 0x837675
fxch st(1)
fst qword [ebp - 0x40]
fxch st(1)
push ebp
rcr cl, 0xc9
fstp st(0)
fcomp qword [0x89a578]
js 0x837673
mov dword [eax], eax
push ebx
push esi
push edi
fnstsw ax
test ah, 1
loopne 0x8376cc
les eax, [ecx]
add dword [edi], ecx
je 0x83777c
test byte [esi + 0x73000000], bl
aam 0x6c
add byte [eax], al
add byte [ebx - 0x2c], dh
jae 0x8376b4
insb byte es:[edi], dx
salc
jae 0x8376af
jo 0x8376bc
ja 0x8376b4
ja 0x8376b7
jp 0x8376c1
jno 0x8376c4
jne 0x8376bd
ja 0x8376bd
outsb dx, byte [esi]
int 0x6c
sal byte [eax - 0x33], 1
jp 0x8376c4
insd dword es:[edi], dx
sal byte [edi - 0x2e], cl
jae 0x8376d1
jo 0x8376d7
jns 0x8376d4
jno 0x8376d7
jb 0x8376d0
js 0x8376db
jbe 0x8376d9
jo 0x8376db
insd dword es:[edi], dx
enter 0xffffffffffffcc73, 0x75
shr dword [eax + ecx*8 + 0x78], cl
aad 0x70
iretd
mov dword [ebp - 0x34], 0x8376de
mov dword [ebp - 0x38], 0x83775c
xor eax, eax
mov byte [ebp + eax - 0x140], al
inc eax
cmp eax, 0x100
jb 0x83778c
fld qword [ebp - 0x40]
mov byte [ebp - 0x10], 0
mov eax, 0xff
mov esi, dword [ebp - 0x10]
xor edi, edi
mov dword [ebp - 0x18], eax
mov ebx, 1
mov dword [ebp - 0x30], 0
cmp eax, ebx
jbe 0x8377c7
lea ebx, [ebx + ebx + 1]
cmp ebx, eax
jb 0x8377bf
cmp edi, 3
ja case.default.0x8377cc
jmp dword [edi*4 + 0x838270]
fld st(0)
and esi, 0xff
call fcn.00848444
mov cl, byte [ebp + esi - 0x140]
jmp 0x837848
fld st(0)
and esi, 0xff
call fcn.00848444
mov cl, byte [ebp + esi - 0x140]
shr eax, 8
jmp 0x837848
fld st(0)
and esi, 0xff
call fcn.00848444
mov cl, byte [ebp + esi - 0x140]
shr eax, 0x10
jmp 0x837848
fld st(0)
and esi, 0xff
call fcn.00848444
mov cl, byte [ebp + esi - 0x140]
shr eax, 0x18
jmp 0x837848
mov eax, dword [ebp - 0x38]
and esi, 0xff
mov cl, byte [eax + edi - 4]
mov al, byte [ebp + esi - 0x140]
add cl, al
inc edi
cmp edi, 0x1f
mov byte [ebp - 0x10], cl
jb 0x83785b
xor edi, edi
add cl, 0x1f
mov byte [ebp - 0x10], cl
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x30]
mov edx, esi
and edx, 0xff
and edx, ebx
inc eax
cmp eax, 0xb
mov dword [ebp - 0x30], eax
jbe 0x83787b
mov eax, edx
xor edx, edx
div dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, edx
jb 0x8377c7
je 0x8378b3
mov bl, byte [ebp + eax - 0x140]
lea edx, [ebp + edx - 0x140]
lea ecx, [ebp + eax - 0x140]
mov al, byte [edx]
xor bl, al
mov byte [ecx], bl
mov al, bl
mov bl, byte [edx]
xor bl, al
mov byte [edx], bl
mov al, byte [ecx]
mov dl, bl
xor al, dl
mov byte [ecx], al
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
jne 0x8377af
mov edi, dword [ebp - 0x34]
mov dl, byte [ebp - 0x139]
and esi, 0xff
mov byte [ebp - 0x24], dl
mov dl, byte [edi + 1]
mov bl, byte [ebp - 0x13d]
mov al, byte [ebp + esi - 0x140]
add dl, 0x38
mov byte [ebp - 0x2c], al
mov al, byte [edi]
add al, 5
xor esi, esi
shl al, 4
or al, dl
mov cl, byte [ebp - 0x13b]
mov byte [ebp - 0x28], al
mov eax, dword [ebp - 0x2c]
and eax, 0xff
fstp st(0)
mov dl, byte [ebp + eax - 0x140]
lea edi, [ebp + eax - 0x140]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x13f]
mov eax, edx
and eax, 0xff
mov al, byte [ebp + eax - 0x140]
add al, bl
inc dl
mov byte [ebp - 0x20], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [edi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x140]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
mov edi, dword [ebp - 0x1c]
and edx, 0xff
xor ebx, ebx
mov bl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx]
mov bl, byte [ebp + ebx - 0x140]
add edx, edi
mov edi, dword [ebp - 0x34]
and edx, 0xff
xor bl, byte [ebp + edx - 0x140]
mov dl, byte [ebp - 0x28]
mov byte [ebp - 0x2c], dl
xor bl, dl
mov byte [ebp - 0x24], bl
lea edx, [ebp - 0x1c0]
mov dword [ebp - 0x38], 0x1c
sub edx, 2
jmp 0x837a0d
mov edi, dword [ebp - 0x3c]
mov bl, byte [edi + 2]
add edi, 2
add edx, 2
add bl, 5
mov dword [ebp - 0x30], edx
mov dl, byte [edi + 1]
add dl, 0x38
mov dword [ebp - 0x3c], edi
shl bl, 4
or dl, bl
inc esi
mov byte [ebp - 0x28], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x20], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [edi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x140]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0x10]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + edi - 0x140]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x140]
mov bl, byte [ebp - 0x28]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x24], dl
jbe 0x837b2c
movsx di, dl
mov edx, dword [ebp - 0x30]
mov word [edx], di
jmp 0x837b2f
mov edx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x38]
dec edi
mov dword [ebp - 0x38], edi
jne 0x837a0a
mov edi, dword [ebp - 0x34]
inc esi
mov bl, byte [edi + esi*2]
mov dl, byte [edi + esi*2 + 1]
add bl, 5
add dl, 0x38
shl bl, 4
or dl, bl
mov byte [ebp - 0x28], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x20], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [edi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x140]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0x10]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + edi - 0x140]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x140]
mov bl, byte [ebp - 0x28]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x24], dl
jbe 0x837c5e
movsx dx, dl
mov word [ebp + esi*2 - 0x1c2], dx
mov edi, dword [ebp - 0x34]
inc esi
mov bl, byte [edi + esi*2]
mov dl, byte [edi + esi*2 + 1]
add bl, 5
add dl, 0x38
shl bl, 4
or dl, bl
mov byte [ebp - 0x28], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x20], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [edi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x140]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0x10]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + edi - 0x140]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x140]
mov bl, byte [ebp - 0x28]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x24], dl
jbe 0x837d75
movsx dx, dl
mov word [ebp + esi*2 - 0x1c2], dx
mov edx, dword [ebp - 0x34]
inc esi
mov bl, byte [edx + esi*2]
lea edi, [edx + esi*2]
add bl, 5
mov dl, byte [edi + 1]
add dl, 0x38
shl bl, 4
or dl, bl
mov byte [ebp - 0x28], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x20], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [edi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x140]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0x10]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + edi - 0x140]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x140]
mov bl, byte [ebp - 0x28]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x24], dl
jbe 0x837e8e
movsx dx, dl
mov word [ebp + esi*2 - 0x1c2], dx
lea ebx, [esi + 1]
cmp ebx, 0x3e
jge 0x837fe6
mov edx, dword [ebp - 0x34]
lea edi, [edx + esi*2]
lea edx, [ebp + esi*2 - 0x1c2]
mov dword [ebp - 0x30], edx
mov edx, 0x3e
sub edx, ebx
mov dword [ebp - 0x38], edx
jmp 0x837eb9
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
mov bl, byte [edi + 2]
add edi, 2
add edx, 2
mov dword [ebp - 0x30], edx
add bl, 5
mov dl, byte [edi + 1]
mov dword [ebp - 0x3c], edi
add dl, 0x38
inc esi
shl bl, 4
or dl, bl
mov byte [ebp - 0x28], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x20], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [edi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x140]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0x10]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + edi - 0x140]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x140]
mov bl, byte [ebp - 0x28]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x24], dl
jbe 0x837fd9
mov edi, dword [ebp - 0x30]
movsx dx, dl
mov word [edi], dx
mov edx, dword [ebp - 0x38]
dec edx
mov dword [ebp - 0x38], edx
jne 0x837eb6
mov edi, dword [ebp - 0x34]
inc esi
mov bl, byte [edi + esi*2]
mov dl, byte [edi + esi*2 + 1]
add bl, 5
add dl, 0x38
shl bl, 4
or dl, bl
mov byte [ebp - 0x28], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x20], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [edi], bl
mov ebx, dword [ebp - 0x24]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0xc], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
and edx, 0xff
lea edx, [ebp + edx - 0x140]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
mov edx, dword [ebp - 8]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov bl, byte [ebp + edx - 0x140]
add cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x140]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0x10]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x1c]
add ebx, edx
mov dl, byte [ebp + edi - 0x140]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x140]
mov bl, byte [ebp - 0x28]
xor dl, bl
test esi, esi
mov byte [ebp - 0x24], dl
jbe 0x838105
movsx dx, dl
mov word [ebp + esi*2 - 0x1c2], dx
mov edx, dword [ebp - 0x28]
inc esi
and edx, 0xff
lea edi, [ebp + edx - 0x140]
mov dl, byte [ebp + edx - 0x140]
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
add al, bl
mov bl, byte [ebp - 4]
mov byte [ebp - 0x20], al
inc bl
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], bl
and eax, 0xff
mov dl, byte [ebp + eax - 0x140]
lea eax, [ebp + eax - 0x140]
mov byte [edi], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x140]
lea edx, [ebp + edx - 0x140]
mov byte [eax], bl
mov ebx, dword [ebp - 4]
and ebx, 0xff
mov dword [ebp - 0xc], edx
test esi, esi
lea ebx, [ebp + ebx - 0x140]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 8]
mov byte [ebx], dl
jbe 0x838207
mov edx, dword [ebp - 8]
mov al, byte [eax]
and edx, 0xff
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x34]
mov bl, byte [edx + esi*2 + 1]
mov dl, byte [edx + esi*2]
add dl, 5
add bl, 0x38
shl dl, 4
or bl, dl
mov edx, dword [ebp - 0x1c]
mov dl, byte [ebp + edx - 0x140]
add dl, cl
and edx, 0xff
mov cl, byte [ebp + edx - 0x140]
mov edx, dword [ebp - 0xc]
mov dl, byte [edx]
add ecx, edx
mov dl, byte [edi]
mov edi, dword [ebp - 0x1c]
add ecx, edx
and ecx, 0xff
xor edx, edx
add eax, edi
mov dl, byte [ebp + ecx - 0x140]
and eax, 0xff
mov cl, byte [ebp + edx - 0x140]
xor bl, cl
mov cl, byte [ebp + eax - 0x140]
xor bl, cl
movsx cx, bl
mov word [ebp + esi*2 - 0x1c2], cx
mov word [ebp - 0x144], 0
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jle 0x83825e
mov esi, dword [ebp + 8]
call fcn.00848e8c
lea edx, [ebp - 0x1c0]
mov edi, eax
push edx
call fcn.00848767
mov ecx, eax
add esp, 4
dec ecx
mov eax, edi
xor edx, edx
add esi, 2
div ecx
dec ebx
mov dx, word [ebp + edx*2 - 0x1c0]
mov word [esi - 2], dx
jne 0x83821a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
mov word [eax + ecx*2], 0
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
pop edi
pop esi
mov word [edx + ebx*2], 0
pop ebx
mov esp, ebp
pop ebp
ret