Function at 0x8292e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push esi
push edi
call fcn.0083e72c
cdq
mov ecx, 0x1a
idiv ecx
mov esi, edx
mov dword [ebp - 0x4c], esi
call fcn.0083e72c
cdq
mov ecx, 0x1a
idiv ecx
mov edi, edx
push edi
push esi
mov dword [ebp - 0x44], edi
call fcn.008292c0
fld qword [0x88f578]
fld qword [0x88f578]
add esp, 8
mov dword [ebp - 0x48], eax
fld st(0)
fmul st(1)
fld st(0)
fmul qword [0x8b07a8]
fsub st(1)
fxch st(1)
fmul qword [0x89da68]
fadd qword [0x8a01e8]
fdivp st(1)
faddp st(2)
fld st(1)
fcomp qword [0x8b07a0]
fnstsw ax
test ah, 0x41
jne 0x829361
fld st(0)
fmul qword [0x8b0798]
fsubp st(2)
fadd qword [0x896538]
fcom qword [0x8b0790]
fnstsw ax
test ah, 1
jne 0x829328
fxch st(1)
fst qword [ebp - 0x40]
fxch st(1)
fstp st(0)
fcomp qword [0x88f578]
fnstsw ax
test ah, 1
je 0x8293d5
das
inc esp
push ebp
das
popal
sub ecx, dword cs:[edx + 0x62]
outsd dx, dword [esi]
outsd dx, dword ss:[esi]
jge 0x82940e
je 0x8293e8
stosd dword es:[edi], eax
dec esp
movsb byte es:[edi], byte [esi]
dec ebp
cmpsb byte [esi], byte es:[edi]
dec esi
mov eax, dword [0xab4d9f51]
dec edi
movsd dword es:[edi], dword [esi]
dec esp
movsd dword es:[edi], dword [esi]
dec edi
lodsd eax, dword [esi]
push esp
stosd dword es:[edi], eax
dec ebp
stosd dword es:[edi], eax
push esi
mov al, byte [0xae50a451]
pop ecx
mov al, byte [0xa158a44e]
push esp
cmpsb byte [esi], byte es:[edi]
push esp
stosd dword es:[edi], eax
dec esp
lodsb al, byte [esi]
pop edx
movsd dword es:[edi], dword [esi]
dec ebp
cmpsd dword [esi], dword es:[edi]
dec edi
lodsd eax, dword [esi]
push esi
lodsd eax, dword [esi]
dec ebp
test eax, 0xac57a94e
push esp
jmp 0x829f83
mov dword [ebp - 0x34], 0x82939a
mov dword [ebp - 0x30], 0x82938a
xor eax, eax
mov byte [ebp + eax - 0x14c], al
inc eax
cmp eax, 0x100
jb 0x8293e5
mov ah, 0xfe
invalid
fld qword [ebp - 0x40]
mov byte [ebp - 0x10], 0
mov eax, 0xff
mov esi, dword [ebp - 0x10]
push ebx
xor edi, edi
mov dword [ebp - 0x18], eax
mov ebx, 1
mov dword [ebp - 0x1c], 0
cmp eax, ebx
jbe 0x829421
lea ebx, [ebx + ebx + 1]
cmp ebx, eax
jb 0x829419
cmp edi, 3
ja case.default.0x829426
jmp dword [edi*4 + 0x829fb8]
fld st(0)
and esi, 0xff
call fcn.0083dce4
mov cl, byte [ebp + esi - 0x14c]
jmp 0x8294a2
fld st(0)
and esi, 0xff
call fcn.0083dce4
mov cl, byte [ebp + esi - 0x14c]
shr eax, 8
jmp 0x8294a2
fld st(0)
and esi, 0xff
call fcn.0083dce4
mov cl, byte [ebp + esi - 0x14c]
shr eax, 0x10
jmp 0x8294a2
fld st(0)
and esi, 0xff
call fcn.0083dce4
mov cl, byte [ebp + esi - 0x14c]
shr eax, 0x18
jmp 0x8294a2
mov edx, dword [ebp - 0x30]
and esi, 0xff
mov cl, byte [edx + edi - 4]
mov al, byte [ebp + esi - 0x14c]
add cl, al
inc edi
cmp edi, 0x14
mov byte [ebp - 0x10], cl
jb 0x8294b5
xor edi, edi
add cl, 0x14
mov byte [ebp - 0x10], cl
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov edx, esi
and edx, 0xff
and edx, ebx
inc eax
cmp eax, 0xb
mov dword [ebp - 0x1c], eax
jbe 0x8294d5
mov eax, edx
xor edx, edx
div dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, edx
jb 0x829421
je 0x82950d
mov bl, byte [ebp + eax - 0x14c]
lea edx, [ebp + edx - 0x14c]
lea ecx, [ebp + eax - 0x14c]
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 0x829409
mov dl, byte [ebp - 0x145]
mov edi, dword [ebp - 0x34]
and esi, 0xff
mov byte [ebp - 0x28], dl
xor edx, edx
mov bl, byte [ebp - 0x149]
mov al, byte [ebp + esi - 0x14c]
mov dl, byte [edi + 1]
mov byte [ebp - 0x1c], al
xor eax, eax
mov al, byte [edi]
sub dl, 0x4c
inc al
mov cl, byte [ebp - 0x147]
shl al, 4
or al, dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov byte [ebp - 0x2c], al
fstp st(0)
mov al, byte [ebp + edx - 0x14c]
lea esi, [ebp + edx - 0x14c]
mov edx, dword [ebp - 0x14b]
mov byte [ebp - 0xc], al
mov eax, edx
and eax, 0xff
mov al, byte [ebp + eax - 0x14c]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x14c]
lea edx, [ebp + edx - 0x14c]
mov byte [esi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x14c]
mov dword [ebp - 8], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
and edx, 0xff
lea edx, [ebp + edx - 0x14c]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x14c]
add cl, bl
mov ebx, dword [ebp - 8]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x14c]
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 - 0x14c]
mov edx, dword [ebp - 0x20]
mov dl, byte [edx]
mov bl, byte [ebp + ebx - 0x14c]
add edx, esi
and edx, 0xff
xor bl, byte [ebp + edx - 0x14c]
mov dl, byte [ebp - 0x2c]
mov byte [ebp - 0x1c], dl
xor bl, dl
mov byte [ebp - 0x28], bl
mov dl, byte [edi + 3]
mov bl, byte [edi + 2]
sub dl, 0x4c
inc bl
shl bl, 4
or dl, bl
add edi, 4
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea esi, [ebp + edx - 0x14c]
mov dl, byte [ebp + edx - 0x14c]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x14c]
lea edx, [ebp + edx - 0x14c]
mov byte [esi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x14c]
mov dword [ebp - 8], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
and edx, 0xff
lea edx, [ebp + edx - 0x14c]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x14c]
add cl, bl
mov ebx, dword [ebp - 8]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x14c]
add edx, ebx
mov bl, byte [esi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x14c]
mov edx, dword [ebp - 0x20]
mov esi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x10]
add ebx, edx
mov dl, byte [ebp + esi - 0x14c]
and ebx, 0xff
mov esi, 2
xor dl, byte [ebp + ebx - 0x14c]
mov bl, byte [ebp - 0x2c]
mov byte [ebp - 0x1c], bl
xor dl, bl
mov bl, byte [edi]
mov byte [ebp - 0x28], dl
movsx dx, dl
mov word [ebp - 0x184], dx
mov dl, byte [edi + 1]
sub dl, 0x4c
inc bl
shl bl, 4
or dl, bl
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x38], 0xa
and edx, 0xff
lea edi, [ebp + edx - 0x14c]
mov dl, byte [ebp + edx - 0x14c]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x14c]
lea edx, [ebp + edx - 0x14c]
mov byte [edi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x14c]
mov dword [ebp - 8], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
and edx, 0xff
lea edx, [ebp + edx - 0x14c]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x14c]
add cl, bl
mov ebx, dword [ebp - 8]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x14c]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x14c]
mov edx, dword [ebp - 0x20]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x10]
add ebx, edx
mov dl, byte [ebp + edi - 0x14c]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x14c]
mov bl, byte [ebp - 0x2c]
mov byte [ebp - 0x1c], bl
xor dl, bl
mov byte [ebp - 0x28], dl
movsx dx, dl
mov word [ebp - 0x182], dx
mov edx, dword [ebp - 0x34]
lea edi, [edx + 4]
lea edx, [ebp - 0x182]
mov dword [ebp - 0x30], edx
jmp 0x82988c
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
mov bl, byte [edi + 2]
add edx, 2
add edi, 2
mov dword [ebp - 0x30], edx
inc esi
mov dl, byte [edi + 1]
mov dword [ebp - 0x3c], edi
sub dl, 0x4c
inc bl
shl bl, 4
or dl, bl
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea edi, [ebp + edx - 0x14c]
mov dl, byte [ebp + edx - 0x14c]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x14c]
lea edx, [ebp + edx - 0x14c]
mov byte [edi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x14c]
mov dword [ebp - 8], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
and edx, 0xff
lea edx, [ebp + edx - 0x14c]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x14c]
add cl, bl
mov ebx, dword [ebp - 8]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x14c]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x14c]
mov edx, dword [ebp - 0x20]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x10]
add ebx, edx
mov dl, byte [ebp + edi - 0x14c]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x14c]
mov bl, byte [ebp - 0x2c]
mov byte [ebp - 0x1c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x28], dl
jbe 0x8299ab
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 0x829889
mov edi, dword [ebp - 0x34]
inc esi
xor edx, edx
mov bl, byte [edi + esi*2 + 1]
mov dl, byte [edi + esi*2]
sub bl, 0x4c
inc dl
shl dl, 4
or bl, dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov byte [ebp - 0x2c], bl
lea edi, [ebp + edx - 0x14c]
mov dl, byte [ebp + edx - 0x14c]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov bl, byte [ebp + edx - 0x14c]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x14c]
lea edx, [ebp + edx - 0x14c]
mov byte [edi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x14c]
mov dword [ebp - 8], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
and edx, 0xff
lea edx, [ebp + edx - 0x14c]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x14c]
add cl, bl
mov ebx, dword [ebp - 8]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x14c]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x14c]
mov edx, dword [ebp - 0x20]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x10]
add ebx, edx
mov dl, byte [ebp + edi - 0x14c]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x14c]
mov bl, byte [ebp - 0x2c]
mov byte [ebp - 0x1c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x28], dl
jbe 0x829adb
movsx dx, dl
mov word [ebp + esi*2 - 0x186], dx
mov edx, dword [ebp - 0x34]
inc esi
mov bl, byte [edx + esi*2]
lea edi, [edx + esi*2]
mov dl, byte [edx + esi*2 + 1]
sub dl, 0x4c
inc bl
shl bl, 4
or dl, bl
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea edi, [ebp + edx - 0x14c]
mov dl, byte [ebp + edx - 0x14c]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x14c]
lea edx, [ebp + edx - 0x14c]
mov byte [edi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x14c]
mov dword [ebp - 8], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
and edx, 0xff
lea edx, [ebp + edx - 0x14c]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x14c]
add cl, bl
mov ebx, dword [ebp - 8]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x14c]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x14c]
mov edx, dword [ebp - 0x20]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x10]
add ebx, edx
mov dl, byte [ebp + edi - 0x14c]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x14c]
mov bl, byte [ebp - 0x2c]
mov byte [ebp - 0x1c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x28], dl
jbe 0x829bf4
movsx dx, dl
mov word [ebp + esi*2 - 0x186], dx
lea ebx, [esi + 1]
cmp ebx, 0x1a
jge 0x829d4a
mov edx, dword [ebp - 0x34]
lea edi, [edx + esi*2]
lea edx, [ebp + esi*2 - 0x186]
mov dword [ebp - 0x30], edx
mov edx, 0x1a
sub edx, ebx
mov dword [ebp - 0x38], edx
jmp 0x829c1f
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
mov bl, byte [edi + 3]
add edx, 2
add edi, 2
mov dword [ebp - 0x30], edx
inc esi
mov dl, byte [edi]
sub bl, 0x4c
inc dl
mov dword [ebp - 0x3c], edi
shl dl, 4
or dl, bl
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea edi, [ebp + edx - 0x14c]
mov dl, byte [ebp + edx - 0x14c]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x14c]
lea edx, [ebp + edx - 0x14c]
mov byte [edi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x14c]
mov dword [ebp - 8], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
and edx, 0xff
lea edx, [ebp + edx - 0x14c]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x14c]
add cl, bl
mov ebx, dword [ebp - 8]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x14c]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x14c]
mov edx, dword [ebp - 0x20]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x10]
add ebx, edx
mov dl, byte [ebp + edi - 0x14c]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x14c]
mov bl, byte [ebp - 0x2c]
mov byte [ebp - 0x1c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x28], dl
jbe 0x829d3d
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 0x829c1c
mov edi, dword [ebp - 0x34]
inc esi
xor ebx, ebx
mov bl, byte [edi + esi*2 + 1]
mov dl, byte [edi + esi*2]
sub ebx, 0x4c
inc dl
shl dl, 4
or dl, bl
mov byte [ebp - 0x2c], dl
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea edi, [ebp + edx - 0x14c]
mov dl, byte [ebp + edx - 0x14c]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov bl, byte [ebp + edx - 0x14c]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x14c]
lea edx, [ebp + edx - 0x14c]
mov byte [edi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0x20], edx
lea ebx, [ebp + ebx - 0x14c]
mov ah, 0xfe
invalid
dec dword [ecx + 0x1b8af85d]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
and edx, 0xff
lea edx, [ebp + edx - 0x14c]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x10], edx
mov bl, byte [ebp + edx - 0x14c]
add cl, bl
mov ebx, dword [ebp - 8]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x14c]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x14c]
mov edx, dword [ebp - 0x20]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x10]
add ebx, edx
mov dl, byte [ebp + edi - 0x14c]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x14c]
mov bl, byte [ebp - 0x2c]
xor dl, bl
test esi, esi
mov byte [ebp - 0x28], dl
jbe 0x829e6a
movsx dx, dl
mov word [ebp + esi*2 - 0x186], dx
mov edi, dword [ebp - 0x34]
inc esi
xor ebx, ebx
xor edx, edx
mov bl, byte [edi + esi*2 + 1]
mov dl, byte [edi + esi*2]
mov edi, ebx
sub edx, 0x9f
sub edi, 0x4c
mov dword [ebp - 0x3c], edi
mov edi, dword [ebp - 0x2c]
and edi, 0xff
mov bl, byte [ebp + edi - 0x14c]
lea edi, [ebp + edi - 0x14c]
mov byte [ebp - 0xc], bl
mov ebx, dword [ebp - 0x14]
add al, byte [ebx]
mov byte [ebp - 0x24], al
mov al, byte [ebp - 4]
inc al
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x24]
and eax, 0xff
mov bl, byte [ebp + eax - 0x14c]
lea eax, [ebp + eax - 0x14c]
mov byte [edi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0x20], eax
lea ebx, [ebp + ebx - 0x14c]
mov dword [ebp - 8], ebx
mov bl, byte [ebx]
mov byte [eax], bl
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 8]
and eax, 0xff
test esi, esi
lea eax, [ebp + eax - 0x14c]
mov dword [ebp - 0x14], eax
mov al, byte [eax]
mov byte [ebx], al
mov ebx, dword [ebp - 0x14]
mov al, byte [ebp - 0xc]
mov byte [ebx], al
jbe 0x829f73
mov eax, dword [ebp - 0xc]
and eax, 0xff
shl dl, 4
mov bl, byte [ebp + eax - 0x14c]
add bl, cl
and ebx, 0xff
mov cl, byte [ebp + ebx - 0x14c]
mov ebx, dword [ebp - 8]
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 - 0x14c]
mov ecx, dword [ebp - 0x20]
mov cl, byte [ecx]
add ecx, eax
mov al, byte [ebp + ebx - 0x14c]
and ecx, 0xff
mov bl, byte [ebp + ecx - 0x14c]
xor al, bl
mov bl, byte [ebp - 0x3c]
or dl, bl
xor al, dl
movsx cx, al
mov word [ebp + esi*2 - 0x186], cx
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x4c]
mov word [ebp - 0x150], 0
pop ebx
mov eax, dword [ebp + 8]
mov dx, word [ebp + esi*2 - 0x184]
mov ecx, dword [ebp - 0x48]
mov word [eax], dx
mov word [eax + 6], 0
mov dx, word [ebp + ecx*2 - 0x184]
mov cx, word [ebp + edi*2 - 0x184]
pop edi
mov word [eax + 4], dx
mov word [eax + 2], cx
pop esi
mov esp, ebp
pop ebp
ret